The longer I leave the server running, the more the RAM usage increases until it crashes

Even if nothing unordinary is happening, just the longer the server is up, the more the RAM usage increases until it crashes. It's peculiar because the server works perfectly fine the entire time, the TPS is always 20. I ran a Spark profiler and have the result. Give me advice on what I can do.
23 Replies
Admincraft Meta
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 kivory#0
ProGamingDk
ProGamingDk2y ago
where are u seeing memory usage
Kivory
KivoryOP2y ago
the server host's control panel thing. please excuse my naivety
ProGamingDk
ProGamingDk2y ago
yeah that will show reserved ram not actual usage ur server isnt using that much what are ur startup flags
Kivory
KivoryOP2y ago
i dont know what that is, how can i check
ProGamingDk
ProGamingDk2y ago
go to startup tab in ur host's panel (if they are using pterodactyl which they should be)
Kivory
KivoryOP2y ago
i dont see anything like that, if you're curious, i'm using Hostinger
ProGamingDk
ProGamingDk2y ago
not a very recommended host tbf
Kivory
KivoryOP2y ago
i mean yeah but like, can i get advice on how to fix my issue instead of that thats not very helpful
ProGamingDk
ProGamingDk2y ago
well u can only fix it by changing the startup flags ;D
Kivory
KivoryOP2y ago
can you tell me what "pterodactyl" is so i can figure out if my host is using it. or, can you tell me how i can figure out what my startup flags are.
ProGamingDk
ProGamingDk2y ago
ask ur host noone here uses hostinger
Discount Milk
Discount Milk2y ago
!oom
Carl-bot
Carl-bot2y ago
My server is using too much memory
My panel says my memory usage is high all the time. Your server runs in the Java Virtual Machine (JVM), which has significant overhead & tries to effectively use ALL of the memory assigned to it. Memory usage from "htop", Task Manager, or your server panel is the total consumption of the JVM, not just your server. My server is lagging & I think it's memory related. It's much more likely that you are bottlenecked by your CPU, disk, or some inefficient mod/plugin. Rule of thumb, servers should have anywhere from 4GB to 12GB of memory, with 8GB being the 'sweet spot'. If you're heavily modded, add 4GB to that. Too much memory can be a bad thing. Don't exceed these caps unless you really know why you're doing it. Troubleshoot your server the right way: use Spark & send us a report. My server is randomly terminated unexpectedly. Setting your server to use 8GB does not mean that Java won't exceed this amount. As a rule of thumb, allow your system/container about 1-2GB (possibly more) overhead outside of the server. If you're on Linux & can SSH into the system, check your kernel logs. They will report any incidents of OOM. I want to use swap to allocate more memory. Don't. Swap is not free memory and using it can negatively impact performance.
Admincraft Canned Responses
Kivory
KivoryOP2y ago
ive already read this. none of this was helpful my problem is very specific, the ram usage is fine when the server starts, but literally if i sit and do nothing it just magically keeps increasing until it goes from 1gb to 8gb and crashes the server without doing anything
Discount Milk
Discount Milk2y ago
Use spark and send us a report then
Kivory
KivoryOP2y ago
i got my report is it safe to send the link or will it contain private info?
Discount Milk
Discount Milk2y ago
It doesn't contain anything private, I wouldn't put anything in a canned message that would negatively impact anyone
Kivory
KivoryOP2y ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
✅ Your server isn't lagging
Your server is running fine with an average TPS of 20.
Requested by kivory#0 • Page 1 of 4
Kivory
KivoryOP2y ago
i hope this kind of advice isnt the standard of what this community considers helpful.
ProGamingDk
ProGamingDk2y ago
"or, can you tell me how i can figure out what my startup flags are."^ ask your host, as noone here uses hostinger thats literally the answer find the startup tab or place with startup flags or ask host is the only way /shrug/
Discount Milk
Discount Milk2y ago
Pterodactyl is a panel you use to control your server. You should have a tab that says "startup" or "launch" or whatever. That is where your startup flags should be. Lower your xmx

Did you find this page helpful?