Pterodactyl server ignoring garbage collection (memory leak?)

I started up a paper server using pterodactyl for the first time. Until now I've self-hosted and never had an issue with memory (admittedly because I allocated like 64GB). Everything is great so far, but it just refuses to do garbage collection. This just makes the RAM slowly fill up until the server eventually crashes. The server has 4GB of RAM to work with. Here's what I've tried so far: -allocating less ram than I have available. This kind of works, but setting the allocated ram or max ram percentage just makes it crash earlier. -garbage collection JVM flags. Completely ignored for some reason -restarting the server every 6 hours. This works but the server will crash well before it can restart. Also it's not at all ideal. -leturmemoryrest plugin. Straight up doesn't do anything from what I've noticed. The manual clean does nothing. Any ideas?
31 Replies
Admincraft Meta
Admincraft Meta2mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by roxifellian#0
Technofied
Technofied2mo ago
I don't think it's 'ignoring garbage collection' You might be right in suggesting its a memory leak Do you have a spark, and could you provide us with a list of plugins?
leturmemoryrest
I wouldn't use plugins like this, the Redstone stuff can be achieved by Insights but the rest doesn't actually seem beneficial
Loudbook
Loudbook2mo ago
Well pterodactyl literally has no control over the Java process other than starting and stopping it…
Xi Jripping
Xi JrippingOP2mo ago
No description
Loudbook
Loudbook2mo ago
Sooooo 4GB of RAM is simply not enough for paper FYI They recommend 10
Xi Jripping
Xi JrippingOP2mo ago
are there any other forks that use less? i cant afford to use more than 4 rn
Loudbook
Loudbook2mo ago
Don’t use paper :)
Technofied
Technofied2mo ago
How many players Have you pregenerated your world
Xi Jripping
Xi JrippingOP2mo ago
i have a set seed but not pregenerated. right now the most people i could have on at once is 9
Technofied
Technofied2mo ago
Yeahh nine is pushing it
ProGamingDk
ProGamingDk2mo ago
4 works fine for a small group of people
Technofied
Technofied2mo ago
If you’re stretched for funds consider running an oracle free server I think it’s fine for small servers
Loudbook
Loudbook2mo ago
Maybe But it’s close And don’t use a memory “cleaning” plugin
Technofied
Technofied2mo ago
Yeah all snake oil
Xi Jripping
Xi JrippingOP2mo ago
i figured but i wanted to try since it seemed like the jvm commands i was using just didnt seem to help
Technofied
Technofied2mo ago
Consider using oracle free tier if funds are an issue for you
Xi Jripping
Xi JrippingOP2mo ago
rn im paying 6 euro monthly, which is kinda the limit. technically im not paying, but thats the limit of who is
Technofied
Technofied2mo ago
Interesting You could probs gamble on a contabo vps I think for that much
ProGamingDk
ProGamingDk2mo ago
Are you using a vps with 4 gb ramM Oof
Technofied
Technofied2mo ago
Eh it was fine when DC started out Obviously we then moved onto a bloom vps And then a dedi 🙂
ProGamingDk
ProGamingDk2mo ago
Their sg has 10% packetloss us/eu not good either and they oversell a ton
Xi Jripping
Xi JrippingOP2mo ago
I'll try oracle and report back How much ram does the free server have?
ProGamingDk
ProGamingDk2mo ago
24 gb
Xi Jripping
Xi JrippingOP2mo ago
Goddamn. What are the limitations?
Torrent
Torrent2mo ago
4 OCPU, 200GB boot volume storage, ampere arm image/shape Upgrade your account to pay as you go or else you won’t be able to claim an instance without insane luck
Xi Jripping
Xi JrippingOP2mo ago
so it's just like a lease or something? Sorry I've never used oracle
Torrent
Torrent2mo ago
no it's just a permanent free tier access
Torrent
Torrent2mo ago
setup.md
Oracle Cloud
A modified version of the guide produced by u/Belaboy1095969 on the Admincraft reddit using Ubuntu LTS.
Xi Jripping
Xi JrippingOP2mo ago
I see
Torrent
Torrent2mo ago
would recommend installing a panel though or at least using docker but on oracle cloud you could have a 12-16GB heap size with plenty of overhead left over so your server won't crash due to OOM won't exactly be top tier perf but for 9 players, pregenned, and optimized, you'll be fine
Greg'
Greg'2mo ago
Fun fact I have exactly the same Problem since I transfered my servers on Pterodactyl :Kappa: Have you found any solution ? My server is running with 30/40 people and the RAM keep going up

Did you find this page helpful?