在Debian 7 64位机器上运行Minecraft服务器。已安装Oracle Java 8_05 JRE 64位。自某段时间以来,该服务器每天会崩溃两次或更多次。
Java崩溃报告:
Java崩溃报告:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f0921139a9c, pid=25246, tid=139676902000384
#
# JRE version: Java(TM) SE Runtime Environment (8.0_05-b13) (build 1.8.0_05-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.5-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x555a9c] G1ParCopyClosure<false, (G1Barrier)2, false>::copy_to_survivor_space(oopDesc*)+0x3c
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
我该怎么解决?
忘记提到我使用的启动参数了:
SERVICE="spigot.jar"
MEMLOG="memory.log"
SCREEN="classic"
CPU_COUNT=4
INITMEM="2048M"
MAXMEM="12G"
INVOCATION="java -Xms$INITMEM -Xmx$MAXMEM -XX:+AggressiveOpts - XX:ParallelGCThreads=$CPU_COUNT -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -Xloggc:$MEMLOG -jar $SERVICE nogui -o false"
执行命令可以使用以下语法:screen -dmS $SCREEN $INVOCATION
有什么可能会导致问题的吗?也许是GC标志吗?