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
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
where are u seeing memory usage
the server host's control panel thing. please excuse my naivety
yeah that will show reserved ram
not actual usage
ur server isnt using that much
what are ur startup flags
i dont know what that is, how can i check
go to startup tab
in ur host's panel
(if they are using pterodactyl which they should be)
i dont see anything like that, if you're curious, i'm using Hostinger
not a very recommended host
tbf
i mean yeah but like, can i get advice on how to fix my issue
instead of that
thats not very helpful
well u can only fix it by changing the startup flags
;D
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.
ask ur host
noone here uses hostinger
!oom
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
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
Use spark and send us a report then
i got my report
is it safe to send the link or will it contain private info?
It doesn't contain anything private, I wouldn't put anything in a canned message that would negatively impact anyone
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
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
i hope this kind of advice isnt the standard of what this community considers helpful.
"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/
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