Memory leak source?
I believe I'm dealing with a memory leak on my server. Running 1.18.2-40.2.18 Forge (Java 21). Here's the modlist, some spark profiles, and a crash report as well from when it runs out of memory. This is an 8gb server (6.5gb allocated) through Witherhosting.
Spark profiles:
1 - https://spark.lucko.me/00d8iElZDB
2 - https://spark.lucko.me/qqa1NcyWfP
3- https://spark.lucko.me/GnHR5SaEU0
Modlist is also attached, the highlighted mods are the ones that are present in the server, the unhighlighted ones are just on my client. Distant Horizons is on the server because that is a functional serverside fork of the mod.
7 Replies
Also worth noting is that those spark profiles were taken while I was pregenerating the server
Using spark, take a heap dump and analyze it using a memory analyzer tool
What would I be looking for in the analyzer?
The object that allocates the most memory
Do another spark profiler with --alloc flag first, if thereโs not enough info there then you do the heapdump
this is what that gave me: https://spark.lucko.me/ay30j8es5v
not sure what to make of it.
as of the heap dump, I grabbed one, but am unable to open it in Eclipse. Whenever I try to, it just says:
๐ Spark profile attached:
finally got it working- it would seem it's almost certainly distant horizons
