# OutOfMemoryException:Client node

**URL:** <https://discuss.elastic.co/t/outofmemoryexception-client-node/79838>\
**Category:** Elasticsearch\
**Created:** [March 24, 2017, 5:57am UTC](https://discuss.elastic.co/t/outofmemoryexception-client-node/79838 "2017-03-24T05:57:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![famoss](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@famoss](https://discuss.elastic.co/u/famoss)\
**Post date:** [March 24, 2017, 5:57am UTC](https://discuss.elastic.co/t/outofmemoryexception-client-node/79838/1 "2017-03-24T05:57:48Z")

</div>

Elasticsearch version:5.2.2  
JVM version:1.8.0\_111  
Os version:centos7.2

I deploy 5 client nodes to transfer data,but when i update version to 5.2.2,i find the client node do `full gc` frequently.

```
[2017-03-24T11:38:07,458][WARN][o.e.m.j.JvmGcMonitorService] [es154.162.client2] [gc][816] overhead, spent [925ms] collecting in the last [1s]
[2017-03-24T11:38:12,327][WARN][o.e.m.j.JvmGcMonitorService] [es154.162.client2] [gc][820] overhead, spent [956ms] collecting in the last [1.8s]
[2017-03-24T11:38:14,482][WARN][o.e.m.j.JvmGcMonitorService] [es154.162.client2] [gc][822] overhead, spent [948ms] collecting in the last [1.1s]
[2017-03-24T11:38:16,924][WARN][o.e.m.j.JvmGcMonitorService] [es154.162.client2] [gc][823] overhead, spent [1.6s] collecting in the last [2.4s]
[2017-03-24T11:38:19,326][WARN][o.e.m.j.JvmGcMonitorService] [es154.162.client2] [gc][824] overhead, spent [2.2s] collecting in the last [2.4s]
[2017-03-24T11:38:28,141][WARN][o.e.m.j.JvmGcMonitorService] [es154.162.client2] [gc][825] overhead, spent [1s] collecting in the last [1.1s]
[2017-03-24T11:38:29,523][INFO][o.e.m.j.JvmGcMonitorService] [es154.162.client2] [gc][826] overhead, spent [3.5s] collecting in the last [9s]

```

Here are the gc log:

```
95.285: [Full GC (Allocation Failure) 9865206K->9014457K(10289856K), 1.7207554 secs]
97.775: [Full GC (Allocation Failure) 10275503K->8547170K(10289856K), 1.4681195 secs]
99.255: [GC (CMS Initial Mark) 8563628K(10289856K), 0.0027359 secs]
99.433: [GC (CMS Final Remark) 8643527K(10289856K), 0.0345294 secs]
100.573: [Full GC (Allocation Failure) 10128580K->8570911K(10289856K), 1.6069245 secs]
102.195: [GC (CMS Initial Mark) 8587295K(10289856K), 0.0021058 secs]
102.322: [GC (CMS Final Remark) 9797549K(10289856K), 0.0304902 secs]
102.412: [Full GC (Allocation Failure) 10159238K->10115353K(10289856K), 1.8626932 secs]
104.317: [Full GC (Allocation Failure) 10273358K->10263489K(10289856K), 0.8585131 secs]
105.202: [Full GC (Allocation Failure) 10263489K->10258863K(10289856K), 2.5438956 secs]
114.049: [GC (CMS Initial Mark) 10265142K(10289856K), 0.0105399 secs]
114.093: [Full GC (Allocation Failure) 10272675K->10148248K(10289856K), 2.3793751 secs]
116.528: [Full GC (Allocation Failure) 10287412K->9211888K(10289856K), 2.6253769 secs]
119.180: [GC (CMS Initial Mark) 9238939K(10289856K), 0.0060089 secs]

```

Here are the setting:

```
node.attr.host: es162
node.attr.box_type: hot
cluster.routing.allocation.awareness.attributes: host

node.master: false
node.data: false
node.name: es162.client

transport.tcp.compress: true

network.host: [_local_,_site_]

discovery.zen.ping.unicast.hosts: ["xxx"]

indices.queries.cache.size: 50%

indices.fielddata.cache.size: 20%

thread_pool.bulk.queue_size: 1000
```

---

<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:** [April 21, 2017, 5:57am UTC](https://discuss.elastic.co/t/outofmemoryexception-client-node/79838/2 "2017-04-21T05:57:53Z")

</div>

Closed on April 21, 2017, 5:57am UTC

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