org.elasticsearch.transport.ReceiveTimeoutTransportException[cluster:monitor/nodes/liveness] request_id [31] timed out after [5000ms]


ES連接超時,異常信息

2017-09-07 10:42:45.042 [elasticsearch[Bantam][transport_client_worker][T#17]{New I/O worker #1073}] WARN  o.e.n.c.s.nio.AbstractNioSelector  - Unexpected exception in the selector loop. java.lang.OutOfMemoryError: Direct buffer memory at java.nio.Bits.reserveMemory(Bits.java:693) at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311) at org.jboss.netty.channel.socket.nio.SocketReceiveBufferAllocator.newBuffer(SocketReceiveBufferAllocator.java:64) at org.jboss.netty.channel.socket.nio.SocketReceiveBufferAllocator.get(SocketReceiveBufferAllocator.java:41) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:62) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2017-09-07 10:42:45.042 [elasticsearch[Battletide][generic][T#36]] INFO  org.elasticsearch.client.transport  - [Battletide] failed to get node info for {#transport#-1}{192.168.1.100}{192.168.1.100:9300}, disconnecting... org.elasticsearch.transport.ReceiveTimeoutTransportException: [][192.168.1.100:9300][cluster:monitor/nodes/liveness] request_id [2379] timed out after [12187ms] at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2017-09-07 10:42:45.042 [elasticsearch[Luna][generic][T#1]] INFO  org.elasticsearch.client.transport  - [Luna] failed to get node info for {#transport#-1}{192.168.1.100}{192.168.1.100:9300}, disconnecting... org.elasticsearch.transport.ReceiveTimeoutTransportException: [][192.168.1.100:9300][cluster:monitor/nodes/liveness] request_id [31] timed out after [5000ms] at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2017-09-07 10:42:46.105 [elasticsearch[Digitek][generic][T#1]] INFO  org.elasticsearch.client.transport  - [Digitek] failed to get node info for {#transport#-1}{192.168.1.100}{192.168.1.100:9300}, disconnecting... org.elasticsearch.transport.ReceiveTimeoutTransportException: [][192.168.1.100:9300][cluster:monitor/nodes/liveness] request_id [13] timed out after [5000ms] at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:698) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

查看服務器的內存 free -h  發現內存不足

 改了一台內存大的服務器,ES連接的地方改成了單利,全局就建立一個連接ES對象。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM