Server keeps maxing out RAM and freezing.
Hello. I have a Fabric 1.19.2 server with around 50 mods on 6 GB of RAM. The server mostly has two or three people online at a time, and the view distance is set to 10.
The issue is that the RAM usage is constantly rising, leading to the server to freeze when hitting -Xmx. There could be a single player online, playing for an hour or so, and the server would still hit -Xmx.
Why is it freezing when it maxes out? I had a Forge server before with like 100 mods running on 6 GB of RAM as well, and I had the same issue, but when I downloaded the server and ran it on my phone on a mere 2 GB of RAM it never froze. It did hit 2 GB pretty quickly, but it never froze. So, what's the deal? Is my phone that OP? I use WitherHosting, by the way. Are they lying about their RAM?
13 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 desolateintention#0
"is my phone that OP" 💀
may be worth contacting witherhosting support, and asking them to allocate more overhead
hosts should give you more RAM for overhead and if they are overselling they will be allocating more RAM than you can actually use without running out of memory
if they refuse could i just ask them to lower my -Xmx?
i mean, if the forge server i had was struggling with 6 GB on WitherHosting but ran fine on 2 GB on my phone.. i could ask them to lower it to 4 GB or sum?
you can't change your startup flags?
i think i can actually
ðŸ˜
Tune in akair flags
yeah, use aikar flags (https://flags.sh/ - REMOVE THE ALWAYS PRE TOUCH FLAG FROM THE GENERATED FLAGS).
You could possibly have a memory leak problem
!spark
Spark Profiler
Spark can be used to see why your server or client is lagging.
https://spark.lucko.me/
Admincraft Canned Responses
it shows memory debug stuff we can look at
Also lower your view distance from 10
Lowering my -Xmx to 5120 fixed the issue. It hasn't frozen in a week. No further adjustments were needed.