#Pterodactyl memory leak?
25 messages · Page 1 of 1 (latest)
my server only has 8gb of ram so this is a huge issue for me
I'm just standing still where I spawned in an empty world and it's using 6gb of ram
java will just gulp down as much memory as you give it. This doesn't seem out of ordinary
it goes up to where pterodactyl crashes, server freezes and I need to manually restart my computer
The minecraft server is limited to 7gb, the java process is only taking 1.5gb of memory according to Spark, the rest is coming from somewhere else
heapdump from spark
Try limiting the server itself to 7gb, not just the startup script. Also, check how much memory the host server is using and see if you're assigning too much
That's just how java works. It may only be using 1.5gb, but it will hold that full 7gb.
I limited the minecraft server to only use 4gb (xms and xmx 4g) yet the ram still goes up past 6gb
I'll screw around with ram allocations and see what happens, thank y ou so far
yeah actually limit the container
What are your startup parameters
limit the container to 7 and the server (in the startup command) to 6 gb. The memory setting in "Build Configuration" applies to the whole container, which needs to have some memory of its own aside from that used for the server. The defaults for whatever reason assign all of the container memory to the minecraft server, which causes the behaviour you are experiencing.
@glacial snow have you tried this, and has it worked?
still maxes out the ram and crashes unfortunately
java -Xms256m -Xmx6G -XX:MaxRAMPercentage=95.0 -jar server.jar
tbh i should just get some more ram on my server
some of the amazon employees might have to pee in bottles to deliver it today, but that is a sacrifice I'm willing to make
You are running it on a laptop, interesting
mac mini
This could be a wrong guess but I’m assuming your using a host with horrible ram or “fake” ram such as oracle cloud
If your running it on your own device idk
how much for that ram and have you seen any 32 kits in 2