TPS spike - possible memory leak
https://spark.lucko.me/ocXIlG1an9
Is it possible to find the cause of the leak from spark profiler? It's profile just before server crashed.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
37 Replies
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.

Look like "process unloads" is pretty resource intensive
!spark
Spark Profiler
Spark can be used to see why your server or client is lagging.
Users can share a spark report via
/spark profiler start --timeout 300
which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support.
Download | Website | Docs
Admincraft Canned Responses
/spark profiler start --timeout 300
yeah but it happens a bit randomly
Idk if it'll be during 5 min
then change the duration
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
There's realtime tbh

There's a spike there, same thing - process unload
But doesn't crash
Is your ferritecore up to date?
I'd try updating that first if possible
Its hard to pinpoint which mod is causing a memory leak (if any), but if you start seeing server memory usage increase even with inactivity and does not go down, its likely
https://github.com/Cubxity/UnifiedMetrics
I personally use this across my servers, you can probably diagnose a leak through this
GitHub
GitHub - Cubxity/UnifiedMetrics: Fully-featured metrics collection ...
Fully-featured metrics collection agent for Minecraft servers. Supports Prometheus and InfluxDB. Dashboard included out-of-box. - Cubxity/UnifiedMetrics
(although I think you have to build it yourself, and im also not sure about neoforge support)
Newest for 1.21.1 :C

so does your server OOM and crash?
Yeah
I will try to change args maybe it's something with garbage collector
avoid using
/spark profiler open
, as links expire on reboot or after 30 minutesYeah I know, that was by the way
Nope, changing args to Aikr didn't help.
What evidence do you have it's a memory leak
if I had to guess -- just from this image alone -- then I'd assume that you have your server on slow storage
but none of the spark reports you sent are valid anymore, so I can't really confirm anything
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
This one isn't?
it indeed is

Oh, that's interesting.
Give me 2 minutes
The best one I have for now tbh
It's hard to catch the crash because You know, spark has to be closed right before OOM
(uploading)
@Snow Kit
What's the error when the server crashes?
is it just a generic "tick took longer than 60 seconds"?
Tbh server provider kills the process
Because it starts to take too much ram
in the launch flags, manually specify your
-xmx
to be 2gb lower than what your server is allowd to have
so if you pay for 12gb of memory, add -Xmx10G
to the start of the launch flagsI pray for 8
Will set to 7
Xd
@Snow Kit https://spark.lucko.me/FxNpl1rAOQ
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Did it end up not crashing that time?
It was before I changed but I saw the spike again, this time it didn't crash apparently
I changed to 7 GB now
What server host is this with btw? Just curious, it doesn't really matter though
Modrinth
Not cheap
Mid tier i'd say