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
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
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?
leturmemoryrestI wouldn't use plugins like this, the Redstone stuff can be achieved by Insights but the rest doesn't actually seem beneficial
Well pterodactyl literally has no control over the Java process other than starting and stopping it…
Sooooo
4GB of RAM is simply not enough for paper FYI
They recommend 10
are there any other forks that use less? i cant afford to use more than 4 rn
Don’t use paper :)
How many players
Have you pregenerated your world
i have a set seed but not pregenerated. right now the most people i could have on at once is 9
Yeahh nine is pushing it
4 works fine for a small group of people
If you’re stretched for funds consider running an oracle free server
I think it’s fine for small servers
Maybe
But it’s close
And don’t use a memory “cleaning” plugin
Yeah all snake oil
i figured but i wanted to try since it seemed like the jvm commands i was using just didnt seem to help
Consider using oracle free tier if funds are an issue for you
rn im paying 6 euro monthly, which is kinda the limit. technically im not paying, but thats the limit of who is
Interesting
You could probs gamble on a contabo vps I think for that much
Are you using a vps with 4 gb ramM
Oof
Eh it was fine when DC started out
Obviously we then moved onto a bloom vps
And then a dedi 🙂
Their sg has 10% packetloss us/eu not good either and they oversell a ton
I'll try oracle and report back
How much ram does the free server have?
24 gb
Goddamn. What are the limitations?
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
so it's just like a lease or something? Sorry I've never used oracle
no it's just a permanent free tier access
setup.md
Oracle Cloud
A modified version of the guide produced by u/Belaboy1095969 on the Admincraft reddit using Ubuntu LTS.
I see
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
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