16 GB RAM Server Keeps Crashing With Only 10 Players
Hello everyone, I have a purpur server running on 1.20. In the past few hours the server has crashed multiple times due to ram going too high. The spark profile and panel screenshot were both taken at the same time just moments before the server crashed. XMX is set to 14 GB and I have aikar flags enabled, and I also just brought the view distance down to 8 and installed a mob manager plugin. Can someone give me ideas of what I can do to stop my server from crashing again? Especially since its only a few players?
https://spark.lucko.me/hmCOACgTXO
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
7 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 kaludi#0
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 kaludi#0 • Page 1 of 2
These are the server specs btw:
Machine:
Location: NY
CPU: Ryzen 7900X
RAM: DDR4 @ 3200Mhz
DISK: NVMe
!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
!close
post closed!
The post/thread has been closed!
Requested by kaludi#0