# \[WARN \]\[o.e.m.j.JvmGcMonitorService\] \[esm3\] \[gc\]\[475373\] overhead, spent \[658ms\] collecting in the last \[1.2s\]

**URL:** <https://discuss.elastic.co/t/warn-o-e-m-j-jvmgcmonitorservice-esm3-gc-475373-overhead-spent-658ms-collecting-in-the-last-1-2s/120987>\
**Category:** Elasticsearch\
**Created:** [February 22, 2018, 6:11am UTC](https://discuss.elastic.co/t/warn-o-e-m-j-jvmgcmonitorservice-esm3-gc-475373-overhead-spent-658ms-collecting-in-the-last-1-2s/120987 "2018-02-22T06:11:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [February 22, 2018, 6:11am UTC](https://discuss.elastic.co/t/warn-o-e-m-j-jvmgcmonitorservice-esm3-gc-475373-overhead-spent-658ms-collecting-in-the-last-1-2s/120987/1 "2018-02-22T06:11:10Z")

</div>

I just noticed, my master nodes all producing following in logs:

> esm3 | [2018-02-22T04:32:02,931][WARN][o.e.m.j.JvmGcMonitorService] [esm3] [gc][475373] overhead, spent [658ms] collecting in the last [1.2s]

there are 3 master-eligible nodes, bellow is actual master node:

```
# top -n 1 | head
top - 06:06:42 up 5 days, 13:42, 2 users, load average: 0.31, 0.40, 0.35
Tasks: 93 total, 1 running, 92 sleeping, 0 stopped, 0 zombie
%Cpu(s): 5.2 us, 0.4 sy, 0.0 ni, 94.0 id, 0.0 wa, 0.0 hi, 0.4 si, 0.0 st
KiB Mem : 7663592 total, 4881024 free, 1861236 used, 921332 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 5512280 avail Mem 

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND                             
 1376 alexus 20 0 3730832 1.479g 27460 S 13.3 20.2 891:58.28 java                                
  647 root 20 0 691908 116228 43416 S 6.7 1.5 40:21.04 dockerd                             
    1 root 20 0 56964 6656 5164 S 0.0 0.1 0:02.92 systemd                             
#

```

* * *

I used `ES_HEAP_SIZE=4g` for elasticsearch (master-eligible nodes).

Please advise.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [February 22, 2018, 5:06pm UTC](https://discuss.elastic.co/t/warn-o-e-m-j-jvmgcmonitorservice-esm3-gc-475373-overhead-spent-658ms-collecting-in-the-last-1-2s/120987/2 "2018-02-22T17:06:22Z")

</div>

master node (ES\_HEAP\_SIZE=4g):

```
esm1 | Feb 22, 2018 5:05:33 PM com.google.api.client.http.HttpRequest execute
esm1 | WARNING: exception thrown while executing request
esm1 | java.net.SocketTimeoutException: Read timed out

```

ingest node (ES\_HEAP\_SIZE=16g):

```
elasticsearch | Caused by: java.lang.OutOfMemoryError: Java heap space
elasticsearch | [2018-02-22T00:36:53,662][ERROR][i.n.u.ResourceLeakDetector] LEAK: ByteBuf.release() was not called before it's garbage-collected. Enable advanced leak reporting to find out where the leak
+occurred. To enable advanced leak reporting, specify the JVM option '-Dio.netty.leakDetection.level=advanced' or call ResourceLeakDetector.setLevel() See http://netty.io/wiki/reference-counted-objects.html for
+more information.
elasticsearch | [2018-02-22T00:36:53,641][WARN][o.e.x.s.t.n.SecurityNetty4ServerTransport] [elasticsearch] exception caught on transport layer [NettyTcpChannel{localAddress=/10.0.0.15:9300,
+remoteAddress=/10.0.0.11:42982}], closing connection
elasticsearch | java.lang.IllegalArgumentException: Self-suppression not permitted
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 22, 2018, 5:06pm UTC](https://discuss.elastic.co/t/warn-o-e-m-j-jvmgcmonitorservice-esm3-gc-475373-overhead-spent-658ms-collecting-in-the-last-1-2s/120987/3 "2018-03-22T17:06:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
