RelativityMC / C2ME-fabric

A Fabric mod designed to improve the chunk performance of Minecraft.
MIT License
513 stars 42 forks source link

TPS slow down followed by OOM crash #322

Open Rektroth opened 1 week ago

Rektroth commented 1 week ago

Describe the bug I run a dedicated server for my friends and I. For a few days, no one had been on the server, but the classic "Can't keep up! Is the server overloaded?" message started getting recorded in the logs every minutes... and then every few seconds... until finally C2ME crashed the server with an OOM error.

To Reproduce Steps to reproduce the behavior:

  1. Run the server
    • java -Xmx12288M -Xms12288M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+ParallelRefProcEnabled -XX:+PerfDisableSharedMem -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1HeapRegionSize=8M -XX:G1HeapWastePercent=5 -XX:G1MaxNewSizePercent=40 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1NewSizePercent=30 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:MaxGCPauseMillis=200 -XX:MaxTenuringThreshold=1 -XX:SurvivorRatio=32 -jar server.jar nogui
  2. Wait for a few days with no one online

Expected behavior No slow down or crash.

Runtime info (please complete the following information):

Crash reports / logs

It should be noted that everything past [17:43:39] did not get recorded in the latest.log file. I had to manually copy it from the Debian console and paste it into the file.

For privacy, player names, UUIDs, IP addresses, and chats have been redacted.

Other mods

Checklist

ishland commented 1 week ago

Try reproduce without C2ME. And add -XX:+HeapDumpOnOutOfMemoryError as a jvm flag to your server.