setting up minecraft server in pterodactyl ram issues
hey, i switched my host and bought a kvm, i now installed pterodactyl and i uploaded my minecraft server to it and used the default minecraft paper egg, now the issue is while starting the server the ram rises drastically to the limit (18GB ram) and then crashes due to out of memory, i also allocated 1GB of swap, the other host i used before i only had 16gb of ram in total and the server actually only uses ~6gb of ram
6 Replies
whats your startup flags looking like?
java -Xms24576M -Xmx24576M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar nogui
thats why
get rid of the XMS
or change it to 128
Solution
Youre double setting xmx, also didnt you say the limit was 18?
95% is not enough overhead generally
is there a good script generator for this? ive currently tried papermcs script gen but if i include aikar flags the server also wouldnt start at all
somehow everything is a bit fcked up cpu is also going crazy
i added up to 24gb to see if it works
okay, i think i figured it out, ty