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
Solution:
Youre double setting xmx, also didnt you say the limit was 18?
Jump to solution
6 Replies
Tamz
Tamz3w ago
whats your startup flags looking like?
Tizo
TizoOP3w ago
java -Xms24576M -Xmx24576M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar nogui
Tamz
Tamz3w ago
thats why get rid of the XMS or change it to 128
Solution
ProGamingDk
ProGamingDk3w ago
Youre double setting xmx, also didnt you say the limit was 18?
ProGamingDk
ProGamingDk3w ago
95% is not enough overhead generally
Tizo
TizoOP3w ago
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

Did you find this page helpful?