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
Admincraft Meta
Admincraft Meta•8mo ago
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
Torrent
Torrent•8mo ago
"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
Desolate Intention
Desolate IntentionOP•8mo ago
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?
Torrent
Torrent•8mo ago
you can't change your startup flags?
Desolate Intention
Desolate IntentionOP•8mo ago
i think i can actually
Harrison
Harrison•8mo ago
😭
1who¡ssus?
1who¡ssus?•8mo ago
Tune in akair flags
Skullians
Skullians•8mo ago
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
flags.sh
flags.sh
A simple script generator to start your Minecraft servers with optimal flags.
Snow Kit
Snow Kit•8mo ago
!spark
Carl-bot
Carl-bot•8mo ago
Spark Profiler
Spark can be used to see why your server or client is lagging. https://spark.lucko.me/
From An unknown user
Admincraft Canned Responses
Snow Kit
Snow Kit•8mo ago
it shows memory debug stuff we can look at
Arthurmeade12
Arthurmeade12•8mo ago
Also lower your view distance from 10
Desolate Intention
Desolate IntentionOP•7mo ago
Lowering my -Xmx to 5120 fixed the issue. It hasn't frozen in a week. No further adjustments were needed.

Did you find this page helpful?