LunaPixelStudios / Better-MC

https://lunapixel.studio/discord
https://lunapixel.studio/discord
85 stars 15 forks source link

server doesn't unload chunks #769

Closed khris190 closed 2 years ago

khris190 commented 2 years ago

Describe the Bug

server doesn't seem to unload chunks and crashed after a while of exploration

my args are : java -Xms1G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -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 -Duser.timezone="Europe/Warsaw" -jar forge-wrapper.jar nogui

Reproduction Steps

1. 2. 3. ...

Screenshots and Videos

No response

Crash Report or Log

https://logs.panel.gg/2daa368ba6652cbccdd345f10111dc86

Operating System

some docker img on winternode

Minecraft Version

1.18

Modloader

Forge

Modpack Version

R Server Pack PLUS 1.18 v14 HF

Optifine

No

Other Mods

No response

chorbintime commented 2 years ago

Can you try preloading chunks using the Chunk Pregenerator mod?

khris190 commented 2 years ago

Can you try preloading chunks using the Chunk Pregenerator mod?

How would that help with chunks not being freed from memory?

khris190 commented 2 years ago

Maybe i didn't write the problem well enough My server crashes from OOM exception because it doesn't unload chunks so every time i move to "new" pregenerated or new chunk it doesn't matter it takes memory untill restart or crash

chorbintime commented 2 years ago

Could you send a spark profiler? Run this command ingame: /spark profiler --interval 100

khris190 commented 2 years ago

Could you send a spark profiler? Run this command ingame: /spark profiler --interval 100

https://spark.lucko.me/6CpegYwsNq during this the server went from 5GB of usage to about 6.4 GB and sits at 6.4 even after i disconnect

khris190 commented 2 years ago

unknown ngl, something is really wrong but it might be a problem with hosting i'll try to resolve it with them if noone has any idea

chorbintime commented 2 years ago

This is likely to do with your server host.