Recent Discussions

Survival server crashing out of nowhere.

Unanswered
Chinese Chongqing Dog posted this in #questions
Messages44 messages
Views0 views
Chinese Chongqing DogOP
hey, im running multiple minecraft servers on a vps using pterodactyl, everyting seems to work fine except my Survival servers crashes 1-2 times a day without any errors or info.

im running paper 1.21.4 on java 21

my startup flags are:
java -Xms128M -XX:MaxRAMPercentage=90.0 --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -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 -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar
where a total of 16gb ram are allocated (server actively only uses ~6gb in /spark healthreport)

im not able to find out why the server crashes, also before i hosted on a vps i was using a gameserver as host where there were no crashes at all. since then there were no big server changes.
Chinese Chongqing DogOP
spark report if needed: https://spark.lucko.me/xlAdGgpgKK
@Pixiebob what is the maximum possible RAM that you can use on your VPS/ptero container?
Chinese Chongqing DogOP
the vps itself has 48gb in total
Pixiebob
what is allowed on the ptero instance?
You should remove the reference of -XX:MaxRAMPercentage=90.0 on your JVM flag and set the proper Xmx

For example, if you have a maximum allowed RAM usage of 12 GB on the ptero instance, your Xmx should be somewhere around 9GB.
@Pixiebob what is allowed on the ptero instance?
Chinese Chongqing DogOP
16gb
Pixiebob
Set the Xmx to no more than 12GB and see. :yesyes:
-XX:MaxRAMPercentage=90.0 of 16G leaves around 1.6G for the jvm, I usually leave atleast 2GB empty personally. but yeah I would just remove that flag and set the Xmx and see. If you still have issue, come back :paperOhhh:
playing with percents stinky
hardcoded amounts > percents
@Pixiebob Set the Xmx to no more than 12GB and see. :yesyes:
Chinese Chongqing DogOP
is this normal? in total i now gave the panel 16gb minus 4gb for the panel. so minecraft server has 12gb to use (screen 1)

now the panel shows me there is a total usage of 14.5GB, does this mean the panel is currently taking the other 2,5gb? (screen 2)
image.png
image.png
its slowly climbing but not getting less thats why im a bit scared that the panel doesent let the ram go if it doesent need it, will probbably cancel the daily restart to see if the server actually survives longer as usual with this setup
Chinese Chongqing DogOP
it just crashed...
i dont know how it gets out of memory tho... the server only uses 3-5gb of the ram and the panel has 4gb to use
this is the total ram usage of my vps it only uses like half the ram the vps has in total
image.png
@Chinese Chongqing Dog this is the total ram usage of my vps it only uses like half the ram the vps has in total
Connecticut Warbler
ok, sounds like setting memory usage to unlimited would work fine for you
dont change xmx
only on ptero
@Connecticut Warbler ok, sounds like setting memory usage to unlimited would work fine for you
Chinese Chongqing DogOP
where exactly do i do that?
@Chinese Chongqing Dog where exactly do i do that?
Connecticut Warbler
in the build configuration, just remove the memory number
Chinese Chongqing DogOP
okay, so ive changed this to 0, lets see how this goes, also isnt that a bad fix for it since now the ram is kinda out of control?
image.png
Loading...