cassandra堆内存异常

时间:2015-12-12 05:08:44

标签: cassandra

我主要在我的cassandra种子服务器中获取此堆异常。我有一个由多个数据中心创建的cassandra集群。

HEre是例外

ERROR [MessagingService-Outgoing-/10.0.1.188] 2015-10-17 15:53:59,807 CassandraDaemon.java:223 - Exception in thread Thread[MessagingService-Outgoing-/10.0.1.188,5,main]
java.lang.OutOfMemoryError: Java heap space
WARN  [PERIODIC-COMMIT-LOG-SYNCER] 2015-10-17 15:53:59,807 AbstractCommitLogService.java:105 - Out of 4 commit log syncs over the past 1356s with average duration of 20691.50ms, 2 have exceeded the configured commit interval by an average of 31383.00ms
ERROR [Thread-2] 2015-10-17 15:54:25,876 CassandraDaemon.java:223 - Exception in thread Thread[Thread-2,5,main]
java.lang.OutOfMemoryError: Java heap space
        at java.lang.Throwable.toString(Throwable.java:481) ~[na:1.7.0_79]
        at java.lang.Throwable.<init>(Throwable.java:311) ~[na:1.7.0_79]
        at java.lang.Exception.<init>(Exception.java:102) ~[na:1.7.0_79]
        at org.apache.thrift.TException.<init>(TException.java:39) ~[libthrift-0.9.2.jar:0.9.2]
        at org.apache.thrift.transport.TTransportException.<init>(TTransportException.java:64) ~[libthrift-0.9.2.jar:0.9.2]
        at org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomServerSocket.java:108) ~[apache-cassandra-2.1.8.jar:2.1.8]
        at org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl(TCustomServerSocket.java:36) ~[apache-cassandra-2.1.8.jar:2.1.8]
        at org.apache.thrift.transport.TServerTransport.accept(TServerTransport.java:60) ~[libthrift-0.9.2.jar:0.9.2]
        at org.apache.cassandra.thrift.CustomTThreadPoolServer.serve(CustomTThreadPoolServer.java:110) ~[apache-cassandra-2.1.8.jar:2.1.8]
        at org.apache.cassandra.thrift.ThriftServer$ThriftServerThread.run(ThriftServer.java:137) ~[apache-cassandra-2.1.8.jar:2.1.8]
ERROR [SharedPool-Worker-36] 2015-10-17 15:55:02,461 JVMStabilityInspector.java:94 - JVM state determined to be unstable.  Exiting forcefully due to:
java.lang.OutOfMemoryError: Java heap space
ERROR [SharedPool-Worker-35] 2015-10-17 15:55:02,461 CassandraDaemon.java:223 - Exception in thread Thread[SharedPool-Worker-35,5,main]

请帮助

我的cassandra-env.sh文件中有16 gb机器具有这些设置

MAX_HEAP_SIZE="10G"
HEAP_NEWSIZE="800M"

我的cassandra版本是2.1.8,我使用nodejs客户端写入cassandra和spark来处理数据

0 个答案:

没有答案