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?
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?