A
Admincraftโ€ข2mo ago
Ethonodon

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
Ethonodon
EthonodonOPโ€ข2mo ago
Also worth noting is that those spark profiles were taken while I was pregenerating the server
Torrent
Torrentโ€ข2mo ago
Using spark, take a heap dump and analyze it using a memory analyzer tool
Ethonodon
EthonodonOPโ€ข2mo ago
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
Ethonodon
EthonodonOPโ€ข2mo ago
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:
An internal error occurred during: "Parsing heap dump from 'C:\Users\Ethan\Downloads\heap-2025-02-18_17.21.33.hprof'".
Java heap space
An internal error occurred during: "Parsing heap dump from 'C:\Users\Ethan\Downloads\heap-2025-02-18_17.21.33.hprof'".
Java heap space
Chibi Bot Admincraft
Chibi Bot Admincraftโ€ข2mo ago
๐Ÿ“‹ Spark profile attached:
Ethonodon
EthonodonOPโ€ข2mo ago
finally got it working- it would seem it's almost certainly distant horizons
No description

Did you find this page helpful?