We had weird symptoms before , both servers on the same machine just crash at the same time , we solved the problem, it turned out java used too much memory despite xmx xms. Now they crash independently. I recreated server from scratch , but it still crashes but with different problem now.
Error log
Server log
FlightRecording output
We run server as root , and current java vesrion is
Server crashes randomly , there is 10-12 people at max , CPU and RAM capacities is 50% free most of the time.
Im sorry for my bad English , second language. Please help me , im a bit new in the field and i struggle a lot to understand whats even happening in those logs.
used too much memory
java -Xms10G -Xmx10G -Xmn5G -XX:MaxMetaspaceSize=256M -XX:+HeapDumpOnOutOfMemoryError -XX:StartFlightRecording:filename=${JFR_FILE},maxsize=256MB -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper-1.17.1-408.jar nogui
java -Xms10G -Xmx10G -XX:+HeapDumpOnOutOfMemoryError -XX:StartFlightRecording:filename=${JFR_FILE},maxsize=256MB -jar paper-1.17.1-408.jar nogui
Error log
Server log
FlightRecording output
We run server as root , and current java vesrion is
openjdk 16.0.2 2021-07-20
OpenJDK Runtime Environment Temurin-16.0.2+7 (build 16.0.2+7)
OpenJDK 64-Bit Server VM Temurin-16.0.2+7 (build 16.0.2+7, mixed mode, sharing)
Server crashes randomly , there is 10-12 people at max , CPU and RAM capacities is 50% free most of the time.
Im sorry for my bad English , second language. Please help me , im a bit new in the field and i struggle a lot to understand whats even happening in those logs.
- Version Output
-
This server is running Paper version git-Paper-408 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: cc43ba7 on ver/1.17.1)
You are running the latest version