Recent Discussions

Desperate for RAM usage help

Unanswered
West African Crocodile posted this in #questions
Messages37 messages
Views0 views
West African CrocodileOP
The server I run for friends (and a content creator) has suddenly spiked from booting up at ~1gb ram to ~1.6gb. I only have 6gb ram (I cannot purchase more, the server was gifted to me). I need all of my players to be able to be on and not have it crash, so I need to figure out:
A) why is it loading at such high ram usage now
B) why is there a memory leak

more information: this server started on 1.21.4 and I have been trying to keep it updated to current version. It seems like the 1.21.6 or 7 update might have had something to do with this new memory issue. The memory leak is clearly happening because it boots at ~1.64gb ram and then slowly climbs. I regularly wake up to it using over 4gb of ram with no console log entries stating that anyone has logged in. None of my players have been playing lately but I'm trying to gear up for events to bring people back, but with all these issues I'm too anxious about it crashing to move forward with any plans.

I have Java flags in place that reduce it from booting at 3gb to what it is now, but aikar flags no matter how little I tell it to reserve always uses all the memory on the server so they're no use. Spark keeps saying that the server is only using 300mb of RAM but clearly that isn't the case because I was told by the hosting company to believe the panel over Spark reports.

Picture included is spawn, with bobbymod installed clientside to show that we don't have crazy redstoner farms or anything.

MC 1.21.7
Fabric 0.16.14
Mods:
appleskin
architectuary
c2me
cloth config
kotlin
ferritecore
get it together drops
jamlib
ledger
lithium
clumps
modernfix
petprotect
rightclick harvest
scalablelux
servercore
serverside veinmine
skip server check
spark

Resourcepacks:
basically just vanillatweaks and a couple custom crafting recipes
2025-07-03_23.16.58.png
West African CrocodileOP
(in the time it took me to write this post the server went from 1.68gb to 1.77gb ram usage from whatever memory leak is going on)
Chum salmon
Spark keeps saying that the server is only using 300mb of RAM but clearly that isn't the case because I was told by the hosting company to believe the panel over Spark reports.
What host is this? @West African Crocodile
West African CrocodileOP
Kinetic
Chum salmon
Spark shows the real memory allocs
I'd suggest switching hosts if they're that unknowledgeable about mc servers
West African CrocodileOP
I can't
free server
(it was given to me as a raffle prize)
(I would like to apologize in advance, I am very new to adminning a server and I've asked for help with this in a few places and gotten back "it's not a problem" so I'm frustrated and desperate)
Chum salmon
raffle by who?
West African CrocodileOP
the hosting company
Kinetic seems to be a run-of-the-mill summerhost to me
Minecraft will use the RAM you give it
as long as the server isn't crashing due to OOM, then it's fine
West African CrocodileOP
people have said that but I don't want to find out in the middle of people logging on for an event
it is not a problem
this is literally how the software works
spark shows you what the server actually needs, the rest is just garbage awaiting collection
and since you have ram to spare, the server's not bothering to do many GC passes yet
West African CrocodileOP
right but the behavior recently changed, the ram usage didn't used to tick up like this and less than a month ago it was booting up at maybe 1.1gb usage which is why I'm worried about the sudden jump to 1.6gb when people haven't done anything crazy to spawn
West African CrocodileOP
I feel like I need to explain, this server's been up for 6-7mo. the memory leak and sudden increase of ram usage at boot weren't until the past week and a half to two weeks. I feel like I must have messed up by changing a setting or adding a mod, but I don't know what it could be.
Chum salmon
From what you've said, you don't have a memory leak at all
Again, look at the number spark gives you, not the panel
the panel's reading container ram allocation whereas spark reads the true ram usage
image.png
again, you're fundamentally misunderstanding how this software works
when your ram allocation reaches 4/4gb your server won't just crash
West African CrocodileOP
so what I think I'm understanding is that there's probably been a change on the host's end with the JVM which has messed with the overhead and garbage collection
and that this is something I can't fix even with java flags
alrighty, then I'll just keep praying it doesn't crash
@West African Crocodile and that this is something I can't fix even with java flags
yep, make a ticket and see if they can fix it for you :pepe_shrug:
Loading...