Server crashing infrequently due to 'out of memory' warning

Spark profiler thinks the server is using 8gb, but the server panel thinks it is using nearly 20. Which is correct? Trying to ID why the ram usage is so high.
No description
No description
No description
27 Replies
Admincraft Meta
Thanks for asking your question!
Once you have finished, please close your thread. Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close !close !solved
Requested by ohsogamer#0
OhSoGamer
OhSoGamerOP2y ago
More ram = better, surely
ProGamingDk
ProGamingDk2y ago
no more ram = usually worse
MrMcyeet
MrMcyeet2y ago
how many players
OhSoGamer
OhSoGamerOP2y ago
around 15
MrMcyeet
MrMcyeet2y ago
and how many plugins and worlds do you have loaded
OhSoGamer
OhSoGamerOP2y ago
oh I have a ton of plugins
MrMcyeet
MrMcyeet2y ago
in your startup args, set xms and xmx to 8g
Discount Milk
Discount Milk2y ago
:HOPIUM: Contrary to popular belief, less is more What's better, eating just enough that you're happy, or so much that you're sick?
MarijnIsN00B
MarijnIsN00B2y ago
Doesn't pterodactyl show how much is allocated instead of how much is being used? Thats just smth I heard somewhere, could be completely wrong
Zaid
Zaid2y ago
I wouldn't rely on it usd tps command instead I believe it was
ProGamingDk
ProGamingDk2y ago
essentials has /memory and spark has a method aswell
Discount Milk
Discount Milk2y ago
Sorta. All system reporting shows what is reserved by the JVM. What's reserved is marked as in use to the system, but that doesn't mean the minecraft server is using it. System reporting = task manager, pterodactyl panel, top command, etc.
1who¡ssus?
1who¡ssus?2y ago
My server is constantly at max ram usage according to the panel Don't worry Buut
ProGamingDk
ProGamingDk2y ago
fish
1who¡ssus?
1who¡ssus?2y ago
It should not crash We forgot to tell him to remove alwayspretouch
ProGamingDk
ProGamingDk2y ago
meh im hearing that it just changes when the crash comes and doesnt prevent it
1who¡ssus?
1who¡ssus?2y ago
I'm blind He's not using that flag
ProGamingDk
ProGamingDk2y ago
wc
1who¡ssus?
1who¡ssus?2y ago
What's the crash report?
Discount Milk
Discount Milk2y ago
Well, I think that's debatable. Generally has been shown to be effective in helping though.
ProGamingDk
ProGamingDk2y ago
tell that to kevin
Discount Milk
Discount Milk2y ago
¯\_(ツ)_/¯ Not my place, idc that much.
snowznz.bak
snowznz.bak2y ago
Use aikar flags
java -Xms8G -Xmx8G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -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=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar nogui
java -Xms8G -Xmx8G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -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=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar nogui
(AlwaysPreTouch has been removed)
MarijnIsN00B
MarijnIsN00B2y ago
I did have it, removed it and it was still happening
Discount Milk
Discount Milk2y ago
Didn't say that it removes it entirely, just that it is effective to help 👀
MarijnIsN00B
MarijnIsN00B2y ago
I just spent a few hours downloading the entire server to my own pc and reinstalled the server, now Imma try again and hope it finally works like normal Yeah just the thing is, before upgrading my server I never had this crash happen I used the same flags and after the upgrade this shitshow just constantly happened

Did you find this page helpful?