# java.lang.OutOfMemoryError: Java heap space on ES 6.4.0

**URL:** https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-on-es-6-4-0/167423
**Category:** Elasticsearch
**Created:** [February 7, 2019, 10:44am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-on-es-6-4-0/167423 "2019-02-07T10:44:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![afashaffu08](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@afashaffu08](https://discuss.elastic.co/u/afashaffu08)
#### Post date: [February 7, 2019, 10:44am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-on-es-6-4-0/167423/1 "2019-02-07T10:44:52Z")

</div>

Hi Everyone,

Host was getting down when performing indexing,  
Cluster having 5 nodes in that three nodes going down ,When we restarted Es againcluster will be healthy and same issue will reflect if we do indexing on it.

Please find the below error what am facing here.

at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359) ~[?:?]

at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[?:?]

[2019-02-07T00:58:34,589][WARN][o.e.x.s.t.n.SecurityNetty4ServerTransport] [[rn-atpd-lapp86.rno.apple.com](http://rn-atpd-lapp86.rno.apple.com)] exception caught on transport layer [NettyTcpChannel{localAddress=/10.203.87.230:9300, remoteAddress=/10.203.87.41:50398}], closing connection

io.netty.handler.codec.DecoderException: java.lang.OutOfMemoryError: Java heap space

 ![11%20PM](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f93d0f66e0a007dce19628c5490fa4847ac4bc51.png)

---

<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 7, 2019, 10:44am UTC](https://discuss.elastic.co/t/java-lang-outofmemoryerror-java-heap-space-on-es-6-4-0/167423/2 "2019-03-07T10:44:52Z")

</div>

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