A
Admincraftβ€’2mo ago
Pitersonix

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
Pitersonix
PitersonixOPβ€’2mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Pitersonix
PitersonixOPβ€’2mo ago
No description
Pitersonix
PitersonixOPβ€’2mo ago
Look like "process unloads" is pretty resource intensive
Carl-bot
Carl-botβ€’2mo ago
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
From An unknown user
Admincraft Canned Responses
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
/spark profiler start --timeout 300
Pitersonix
PitersonixOPβ€’2mo ago
yeah but it happens a bit randomly Idk if it'll be during 5 min
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
then change the duration
Pitersonix
PitersonixOPβ€’2mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Pitersonix
PitersonixOPβ€’2mo ago
There's realtime tbh
Pitersonix
PitersonixOPβ€’2mo ago
No description
Pitersonix
PitersonixOPβ€’2mo ago
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)
Pitersonix
PitersonixOPβ€’2mo ago
Newest for 1.21.1 :C
No description
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
so does your server OOM and crash?
Pitersonix
PitersonixOPβ€’2mo ago
Yeah I will try to change args maybe it's something with garbage collector
Snow Kit
Snow Kitβ€’2mo ago
avoid using /spark profiler open, as links expire on reboot or after 30 minutes
Pitersonix
PitersonixOPβ€’2mo ago
Yeah I know, that was by the way Nope, changing args to Aikr didn't help.
Discount Milk
Discount Milkβ€’2mo ago
What evidence do you have it's a memory leak
Snow Kit
Snow Kitβ€’2mo ago
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
Pitersonix
PitersonixOPβ€’2mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Pitersonix
PitersonixOPβ€’2mo ago
This one isn't?
Snow Kit
Snow Kitβ€’2mo ago
it indeed is
No description
Pitersonix
PitersonixOPβ€’2mo ago
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)
Pitersonix
PitersonixOPβ€’2mo ago
@Snow Kit
Snow Kit
Snow Kitβ€’2mo ago
What's the error when the server crashes? is it just a generic "tick took longer than 60 seconds"?
Pitersonix
PitersonixOPβ€’2mo ago
Tbh server provider kills the process Because it starts to take too much ram
Snow Kit
Snow Kitβ€’2mo ago
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 flags
Pitersonix
PitersonixOPβ€’2mo ago
I pray for 8 Will set to 7 Xd
Pitersonix
PitersonixOPβ€’2mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Snow Kit
Snow Kitβ€’2mo ago
Did it end up not crashing that time?
Pitersonix
PitersonixOPβ€’2mo ago
It was before I changed but I saw the spike again, this time it didn't crash apparently I changed to 7 GB now
Snow Kit
Snow Kitβ€’2mo ago
What server host is this with btw? Just curious, it doesn't really matter though
Pitersonix
PitersonixOPβ€’2mo ago
Modrinth Not cheap Mid tier i'd say

Did you find this page helpful?