# ElasticsearchIllegalStateException: Maximum number of bytes allocated exceeded

**URL:** <https://discuss.elastic.co/t/elasticsearchillegalstateexception-maximum-number-of-bytes-allocated-exceeded/18143>\
**Category:** Elasticsearch\
**Created:** [June 16, 2014, 9:18pm UTC](https://discuss.elastic.co/t/elasticsearchillegalstateexception-maximum-number-of-bytes-allocated-exceeded/18143 "2014-06-16T21:18:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stang07](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@stang07](https://discuss.elastic.co/u/stang07)\
**Post date:** [June 16, 2014, 9:18pm UTC](https://discuss.elastic.co/t/elasticsearchillegalstateexception-maximum-number-of-bytes-allocated-exceeded/18143/1 "2014-06-16T21:18:29Z")

</div>

I am getting this error constantly and the 5 nodes in the cluster goes down  
one by one. Is there a way to fix the issue? Could it be a corrupt data  
issue?

[2014-06-16 13:13:34,422][WARN][discovery.zen.ping.multicast] [nw-es-201]  
failed to receive confirmation on sent ping response to  
[[nw-es-202][xOi0MSQBQ4OoQjpuIDUjtA][[nw-es-202.prod.pcln.com](http://nw-es-202.prod.pcln.com)][inet[/172.21.88.113:9320]]{master=true}]  
org.elasticsearch.transport.SendRequestTransportException:  
[nw-es-202][inet[/172.21.88.113:9320]][discovery/zen/multicast]  
at  
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:219)  
at  
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:190)  
at  
org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.handleNodePingRequest(MulticastZenPing.java:462)  
at  
org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.onMessage(MulticastZenPing.java:334)  
at  
org.elasticsearch.common.network.MulticastChannel$Plain$Receiver.run(MulticastChannel.java:363)  
at java.lang.Thread.run(Unknown Source)  
Caused by: org.elasticsearch.ElasticsearchIllegalStateException: Maximum  
number of bytes allocated exceeded: [836334432] (\> 836318003)  
at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:384)  
at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:398)  
at  
org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:423)  
at  
org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:431)  
at  
org.elasticsearch.common.io.stream.BytesStreamOutput.(BytesStreamOutput.java:60)  
at  
org.elasticsearch.common.io.stream.ReleasableBytesStreamOutput.(ReleasableBytesStreamOutput.java:37)  
at  
org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:558)  
at  
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:206)  
... 5 more  
[2014-06-16 13:13:34,601][WARN][discovery.zen.ping.multicast] [nw-es-201]  
failed to receive confirmation on sent ping response to  
[[nw-es-205][p9b19RfCT1uF7Ry2\_eQXQw][[nw-es-205.prod.pcln.com](http://nw-es-205.prod.pcln.com)][inet[/172.21.88.116:9320]]{master=true}]  
org.elasticsearch.transport.SendRequestTransportException:  
[nw-es-205][inet[/172.21.88.116:9320]][discovery/zen/multicast]  
at  
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:219)  
at  
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:190)  
at  
org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.handleNodePingRequest(MulticastZenPing.java:462)  
at  
org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.onMessage(MulticastZenPing.java:334)  
at  
org.elasticsearch.common.network.MulticastChannel$Plain$Receiver.run(MulticastChannel.java:363)  
at java.lang.Thread.run(Unknown Source)  
Caused by: org.elasticsearch.ElasticsearchIllegalStateException: Maximum  
number of bytes allocated exceeded: [836334432] (\> 836318003)  
at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:384)  
at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:398)  
at  
org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:423)  
at  
org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:431)  
at  
org.elasticsearch.common.io.stream.BytesStreamOutput.(BytesStreamOutput.java:60)  
at  
org.elasticsearch.common.io.stream.ReleasableBytesStreamOutput.(ReleasableBytesStreamOutput.java:37)  
at  
org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:558)  
at  
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:206)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3769ecc9-1119-4f3e-8131-76d4cfef24bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3769ecc9-1119-4f3e-8131-76d4cfef24bb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 17, 2014, 6:08am UTC](https://discuss.elastic.co/t/elasticsearchillegalstateexception-maximum-number-of-bytes-allocated-exceeded/18143/2 "2014-06-17T06:08:32Z")

</div>

Hey,

do you have a full stack trace in one of your log files? Also, are you  
creating lots of new connections all the time and then stop them abruptly  
(just a wild guess here)?

--Alex

On Mon, Jun 16, 2014 at 11:18 PM, Sriram Kannan [kesri8@gmail.com](mailto:kesri8@gmail.com) wrote:

> I am getting this error constantly and the 5 nodes in the cluster goes  
> down one by one. Is there a way to fix the issue? Could it be a corrupt  
> data issue?
> 
> [2014-06-16 13:13:34,422][WARN][discovery.zen.ping.multicast] [nw-es-201]  
> failed to receive confirmation on sent ping response to  
> [[nw-es-202][xOi0MSQBQ4OoQjpuIDUjtA][[nw-es-202.prod.pcln.com](http://nw-es-202.prod.pcln.com)  
> ][inet[/172.21.88.113:9320]]{master=true}]  
> org.elasticsearch.transport.SendRequestTransportException:  
> [nw-es-202][inet[/172.21.88.113:9320]][discovery/zen/multicast]  
> at  
> org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:219)  
> at  
> org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:190)  
> at  
> org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.handleNodePingRequest(MulticastZenPing.java:462)  
> at  
> org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.onMessage(MulticastZenPing.java:334)  
> at  
> org.elasticsearch.common.network.MulticastChannel$Plain$Receiver.run(MulticastChannel.java:363)  
> at java.lang.Thread.run(Unknown Source)  
> Caused by: org.elasticsearch.ElasticsearchIllegalStateException: Maximum  
> number of bytes allocated exceeded: [836334432] (\> 836318003)  
> at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:384)  
> at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:398)  
> at  
> org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:423)  
> at  
> org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:431)  
> at  
> org.elasticsearch.common.io.stream.BytesStreamOutput.(BytesStreamOutput.java:60)  
> at  
> org.elasticsearch.common.io.stream.ReleasableBytesStreamOutput.(ReleasableBytesStreamOutput.java:37)  
> at  
> org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:558)  
> at  
> org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:206)  
> ... 5 more  
> [2014-06-16 13:13:34,601][WARN][discovery.zen.ping.multicast] [nw-es-201]  
> failed to receive confirmation on sent ping response to  
> [[nw-es-205][p9b19RfCT1uF7Ry2\_eQXQw][[nw-es-205.prod.pcln.com](http://nw-es-205.prod.pcln.com)  
> ][inet[/172.21.88.116:9320]]{master=true}]  
> org.elasticsearch.transport.SendRequestTransportException:  
> [nw-es-205][inet[/172.21.88.116:9320]][discovery/zen/multicast]  
> at  
> org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:219)  
> at  
> org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:190)  
> at  
> org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.handleNodePingRequest(MulticastZenPing.java:462)  
> at  
> org.elasticsearch.discovery.zen.ping.multicast.MulticastZenPing$Receiver.onMessage(MulticastZenPing.java:334)  
> at  
> org.elasticsearch.common.network.MulticastChannel$Plain$Receiver.run(MulticastChannel.java:363)  
> at java.lang.Thread.run(Unknown Source)  
> Caused by: org.elasticsearch.ElasticsearchIllegalStateException: Maximum  
> number of bytes allocated exceeded: [836334432] (\> 836318003)  
> at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:384)  
> at org.elasticsearch.common.util.BigArrays.validate(BigArrays.java:398)  
> at  
> org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:423)  
> at  
> org.elasticsearch.common.util.BigArrays.newByteArray(BigArrays.java:431)  
> at  
> org.elasticsearch.common.io.stream.BytesStreamOutput.(BytesStreamOutput.java:60)  
> at  
> org.elasticsearch.common.io.stream.ReleasableBytesStreamOutput.(ReleasableBytesStreamOutput.java:37)  
> at  
> org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:558)  
> at  
> org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:206)
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/3769ecc9-1119-4f3e-8131-76d4cfef24bb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3769ecc9-1119-4f3e-8131-76d4cfef24bb%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3769ecc9-1119-4f3e-8131-76d4cfef24bb%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3769ecc9-1119-4f3e-8131-76d4cfef24bb%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9Uv3EOij7HwHMJRBSLBzkMgAP2pQN6CHo\_gzJF-zWfbQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM9Uv3EOij7HwHMJRBSLBzkMgAP2pQN6CHo_gzJF-zWfbQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:21am UTC](https://discuss.elastic.co/t/elasticsearchillegalstateexception-maximum-number-of-bytes-allocated-exceeded/18143/3 "2017-07-06T01:21:57Z")

</div>


