Cassandra 2.x连续崩溃(每3 3分钟),没有 任何错误消息。
启动参数
INFO [main] 2019-04-11 10:17:21,648 CassandraDaemon.java:489-JVM参数:[-Xloggc:/var/log/cassandra/gc.log,-ea,-XX:+ UseThreadPriorities, -XX:ThreadPriorityPolicy = 42,-XX:+ HeapDumpOnOutOfMemoryError,-Xss256k,-XX:StringTableSize = 1000003,-XX:+ AlwaysPreTouch,-XX:-UseBiasedLocking,-XX:+ UseTLAB,-XX:+ ResizeTLAB,-XX: + UseNUMA,-XX:+ PerfDisableSharedMem,-Djava.net.preferIPv4Stack = true,-XX:+ UseParNewGC,-XX:+ UseConcMarkSweepGC,-XX:+ CMSParallelRemarkEnabled,-XX:SurvivorRatio = 8,-XX:MaxTenuringThreshold = 1, -XX:CMSInitiatingOccupancyFraction = 75,-XX:+ UseCMSInitiatingOccupancyOnly,-XX:CMSWaitDuration = 10000,-XX:+ CMSParallelInitialMarkEnabled,-XX:+ CMSEdenChunksRecordAlways,-XX:+ CMSClassUnloadingEnabled,-XX:+ PrintGCDetails,-XX:+ amp -XX:+ PrintHeapAtGC,-XX:+ PrintTenuringDistribution,-XX:+ PrintGCApplicationStoppedTime,-XX:+ PrintPromotionFailure,-XX:+ UseGCLogFileRotation,-XX:NumberOfGCLogFiles = 10,-XX:GCLogFileSize = 10M,-Xms8192M,-Xmx8192M, -Xmn1600M,-XX:Co mpileCommandFile = / etc / cassandra / hotspot_compiler,-javaagent:/usr/share/cassandra/lib/jamm-0.3.0.jar,-Dcassandra.jmx.local.port = 7198,-Dcom.sun.management.jmxremote.authenticate = false,-Dcom.sun.management.jmxremote.password.file = / etc / cassandra / jmxremote.password,-Djava.library.path = / usr / share / cassandra / lib / sigar-bin,-Dcassandra.libjemalloc = /usr/lib/x86_64-linux-gnu/libjemalloc.so.1,-Dlogback.configurationFile = logback.xml,-Dcassandra.logdir = / var / log / cassandra,-Dcassandra.storagedir = / var / lib / cassandra, -Dcassandra-pidfile = / var / lib / cassandra / cassandra.pid,-XX:HeapDumpPath = / var / lib / cassandra / java.hprof,-XX:ErrorFile = / var / lib / cassandra / hs_err.log] >
system.log /gc.log/ debug.log没有提供任何失败原因。
以下是gc.log输出中的摘录。
2018-11-02T15:46:36.546 + 0000:249556.882:应用程序线程停止的总时间:0.0370247秒,停止线程花费的时间:0.0002449秒 {GC调用之前的堆= 267(完整1): par新一代总1474560K,二手1317229K [0x00000005c0000000、0x0000000624000000、0x0000000624000000) 伊甸园空间1310720K,已使用100%[0x00000005c0000000、0x0000000610000000、0x0000000610000000) 来自空间163840K,已使用3%[0x000000061a000000、0x000000061a65b4e0、0x0000000624000000) 到空间163840K,已使用0%[0x0000000610000000、0x0000000610000000、0x000000061a000000) 并发标记清除生成总计6750208K,已使用574714K [0x0000000624000000、0x00000007c0000000、0x00000007c0000000) 已使用元空间44858K,容量46145K,已承诺46364K,保留1089536K 类空间使用了5581K,容量5897K,已承诺5948K,已预留1048576K 2018-11-02T15:54:48.165 + 0000:250048.501:[GC(分配失败)2018-11-02T15:54:48.165 + 0000:250048.502:[ParNew 所需的幸存者大小83886080字节,新阈值1(最大1) -年龄1:3333032字节,共3333032 :1317229K-> 4589K(1474560K),0.0588395秒] 1891943K-> 580369K(8224768K),0.0590781秒] [时间:用户= 0.37 sys = 0.03,真实= 0.06秒] GC调用后的堆= 268(全1): 参数新一代总计1474560K,已用4589K [0x00000005c0000000、0x0000000624000000、0x0000000624000000) 伊甸园空间1310720K,已使用0%[0x00000005c0000000,0x00000005c0000000,0x0000000610000000) 来自空间163840K,已使用2%[0x0000000610000000,0x000000061047b6c0,0x000000061a000000) 到空间163840K,已使用0%[0x000000061a000000、0x000000061a000000、0x0000000624000000) 并发标记清除生成总计6750208K,已使用575779K [0x0000000624000000,0x00000007c0000000,0x00000007c0000000) 已使用元空间44858K,容量46145K,已承诺46364K,保留1089536K 类空间使用了5581K,容量5897K,已承诺5948K,已预留1048576K } 2018-11-02T15:54:48.224 + 0000:250048.561:停止应用程序线程的总时间:0.0603948秒,停止线程花费的时间:0.0001843秒 2018-11-02T15:56:58.257 + 0000:250178.593:停止应用程序线程的总时间:0.0122517秒,停止线程花费的时间:0.0115583秒 {GC调用之前的堆= 268(完整1): par新一代总1474560K,二手1315309K [0x00000005c0000000、0x0000000624000000、0x0000000624000000) 伊甸园空间1310720K,已使用100%[0x00000005c0000000、0x0000000610000000、0x0000000610000000) 来自空间163840K,已使用2%[0x0000000610000000,0x000000061047b6c0,0x000000061a000000) 到空间163840K,已使用0%[0x000000061a000000、0x000000061a000000、0x0000000624000000) 并发标记清除生成总计6750208K,已使用575779K [0x0000000624000000,0x00000007c0000000,0x00000007c0000000) 已使用元空间44858K,容量46145K,已承诺46364K,保留1089536K 类空间使用了5581K,容量5897K,已承诺5948K,已预留1048576K 2018-11-02T16:02:34.392 + 0000:250514.729:[GC(分配失败)2018-11-02T16:02:34.392 + 0000:250514.729:[ParNew 所需的幸存者大小83886080字节,新阈值1(最大1) -年龄1:17990136字节,共17990136 :1315309K-> 19090K(1474560K),0.0394727秒] 1891089K-> 594901K(8224768K),0.0397609秒] [时间:user = 0.25 sys = 0.13,real = 0.04秒] GC调用后的堆= 269(全1): 参数新一代总计1474560K,已用19090K [0x00000005c0000000、0x0000000624000000、0x0000000624000000) 伊甸园空间1310720K,已使用0%[0x00000005c0000000,0x00000005c0000000,0x0000000610000000) 来自空间163840K,已使用11%[0x000000061a000000、0x000000061b2a48d0、0x0000000624000000) 到空间163840K,已使用0%[0x0000000610000000、0x0000000610000000、0x000000061a000000) 并发标记清除生成总计6750208K,已使用575811K [0x0000000624000000、0x00000007c0000000、0x00000007c0000000) 已使用元空间44858K,容量46145K,已承诺46364K,保留1089536K 类空间使用了5581K,容量5897K,已承诺5948K,已预留1048576K }