Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

zookeeper + java.lang.OutOfMemoryError

Highlighted

zookeeper + java.lang.OutOfMemoryError

hi all

we can see the zookeeper logs , complaining about - java.lang.OutOfMemoryError

2019-01-17 19:30:01,265 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@193] - Too many connections from /102.12.6.24 - max is 60
2019-01-17 19:30:02,058 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@193] - Too many connections from /102.11.6.24 - max is 60
2019-01-17 19:30:02,393 [myid:1] - WARN  [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@193] - Too many connections from /102.12.6.24 - max is 60




2019-01-17 19:30:03,708 [myid:1] - ERROR [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory$1@44] - Thread Thread[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181,5,main] died
java.lang.OutOfMemoryError: Java heap space
        at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57)
        at java.nio.ByteBuffer.allocate(ByteBuffer.java:335)
        at org.apache.zookeeper.server.NIOServerCnxn.readLength(NIOServerCnxn.java:934)
        at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:237)
        at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
        at java.lang.Thread.run(Thread.java:745)
2019-01-17 19:36:47,358 [myid:1] - WARN  [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:QuorumPeer@847] - QuorumPeer main thread exited
2019-01-17 19:36:48,530 [myid:1] - ERROR [QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181:NIOServerCnxnFactory$1@44] - Thread Thread[QuorumPeer[myid=1]/0:0:0:0:0:0:0:0:2181,5,main] died
java.lang.OutOfMemoryError: GC overhead limit exceeded
2019-01-17 19:36:50,608 [myid:1] - ERROR [main:NIOServerCnxnFactory$1@44] - Thread Thread[main,5,main] died
2019-01-18 14:02:26,109 [myid:1] - INFO  [PurgeTask:DatadirCleanupManager$PurgeTask@138] - Purge task started.
2019-01-18 14:02:30,358 [myid:1] - ERROR [PurgeTask:NIOServerCnxnFactory$1@44] - Thread Thread[PurgeTask,5,main] died
java.lang.OutOfMemoryError: GC overhead limit exceeded
You have mail in /var/spool/mail/root

is it mean that we need to increase the "Zookeeper Server Maximum Memory" ?

Michael-Bronson