# ERROR org.elasticsearch.transport.netty4.Netty4Utils - fatal error on the network layer

**URL:** <https://discuss.elastic.co/t/error-org-elasticsearch-transport-netty4-netty4utils-fatal-error-on-the-network-layer/111693>\
**Category:** Elasticsearch\
**Created:** [December 14, 2017, 7:08am UTC](https://discuss.elastic.co/t/error-org-elasticsearch-transport-netty4-netty4utils-fatal-error-on-the-network-layer/111693 "2017-12-14T07:08:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ent\_1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ent_1/32/25549_2.png) [@ent\_1](https://discuss.elastic.co/u/ent_1)\
**Post date:** [December 14, 2017, 7:08am UTC](https://discuss.elastic.co/t/error-org-elasticsearch-transport-netty4-netty4utils-fatal-error-on-the-network-layer/111693/1 "2017-12-14T07:08:39Z")

</div>

Hi  
I am facing "[elasticsearch[_client_][transport\_client\_boss][T#2]] ERROR org.elasticsearch.transport.netty4.Netty4Utils - fatal error on the network layer" while loading 1.5 Million bulk data into elastic search . but 1Miliion data loaded successfuly without errors.  
already tried below options , but no use .

1. JVM heap size change default to -Xms4g -Xmx4g
2. commented recyler #-Dio.netty.recycler.maxCapacityPerThread=0  
Elastic search version : 5.6.4 .  
Error details :

[quote="moznion, post:1, topic:105882, full:true"]  
I faced "fatal error on the network layer" and "fatal error in thread" error and Elasticsearch process is die.

Error log :  
06:38:07.791 [elasticsearch[_client_][transport\_client\_boss][T#2]] ERROR org.elasticsearch.transport.netty4.Netty4Utils - fatal error on the network layer  
at org.elasticsearch.transport.netty4.Netty4Utils.maybeDie(Netty4Utils.java:179)  
at org.elasticsearch.transport.netty4.Netty4MessageChannelHandler.exceptionCaught(Netty4MessageChannelHandler.java:83)  
at io.netty.channel.AbstractChannelHandlerContext.invokeExceptionCaught(AbstractChannelHandlerContext.java:285)  
at io.netty.channel.AbstractChannelHandlerContext.notifyHandlerException(AbstractChannelHandlerContext.java:850)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:364)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)  
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)  
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)  
at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297)  
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413)  
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)  
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)  
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)  
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)  
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)  
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)  
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)  
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)  
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)  
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)  
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)  
at java.lang.Thread.run(Thread.java:748)

---

<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:** [January 11, 2018, 7:09am UTC](https://discuss.elastic.co/t/error-org-elasticsearch-transport-netty4-netty4utils-fatal-error-on-the-network-layer/111693/2 "2018-01-11T07:09:01Z")

</div>

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