All the Mods 7 - ATM7

All the Mods 7 - ATM7

3M Downloads

Memory Leak

XavierKarlReutzel opened this issue ยท 8 comments

commented

I recently started playing this modpack.

SPECS
2070 super Nivida
I7 9700K
32 gbs of RAM

So the issue I think is a memory leak. When I play random frame drops occur, I am unable to find the cause.
The frame drops occur randomly, I don't know how to explain the issue other than that.

commented

Check your settings in the launcher, the default has 2GB avaliable to minecraft, I upped it on my Framework laptop to 16GB avaliable to java(Minecraft) and on the newest version 0.2.45 i have had 0 issues with memory or framerate dropping. Previous versions have been very troublesome with random frame drops. I also have a fairly large minecolony running as well!

commented

https://paste.ee/p/4oeSa
here's my latest.log, also having a memory leak. it gets to the point where I can't relaunch a world once save and quitting, it locks up completely. I've been having to restart my game entirely whenever it builds up too much

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

commented

From a self-generated heap dump, it appears that when the game does finally crash with java.lang.OutOfMemoryError after exploring chunks and changing dimensions, a majority of the excess heap space is taken up by various ClientLevel objects that never get freed even when they aren't accessible anymore.

In other words, any chunks the client loads effectively stays in the heap indefinitely, which is a memory leak.

commented

@James103 running a test without it right now. Memory still seems to be leaking, as the server is getting closer and closer to 10GB but no crashes yet (almost 3h into the test). I've also enabled GC logging via Spark's /spark gcmonitor, this is the output I'm getting:

[21:50:57] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Is the server overloaded? Running 2095ms or 41 ticks behind
[21:51:08] [spark-worker-pool-1-thread-4/INFO] [minecraft/DedicatedServer]: [โšก] Young Gen GC lasting 127 ms. (cause = G1 Evacuation Pause)
  5.0 MB moved to G1 Old Gen
    2.6 GB โ†’ 2.6 GB
  108.0 MB moved to G1 Survivor Space
    56.0 MB โ†’ 164.0 MB
  3.7 GB freed from G1 Eden Space
    3.7 GB โ†’ 0 bytes (100%)
[21:51:21] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Is the server overloaded? Running 2002ms or 40 ticks behind
[21:51:32] [spark-worker-pool-1-thread-2/INFO] [minecraft/DedicatedServer]: [โšก] Young Gen GC lasting 110 ms. (cause = G1 Evacuation Pause)
  1.8 MB moved to G1 Old Gen
    2.6 GB โ†’ 2.6 GB
  12.0 MB moved to G1 Survivor Space
    164.0 MB โ†’ 176.0 MB
  3.5 GB freed from G1 Eden Space
    3.5 GB โ†’ 0 bytes (100%)
[21:51:46] [Server thread/INFO] [ne.bl.mo.ne.NetherPortalFix/]: Not storing return portal because it's from ResourceKey[minecraft:dimension / allthemodium:mining] to ResourceKey[minecraft:dimension / minecraft:overworld]
[21:51:50] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Is the server overloaded? Running 2008ms or 40 ticks behind
[21:51:53] [spark-worker-pool-1-thread-1/INFO] [minecraft/DedicatedServer]: [โšก] Young Gen GC lasting 148 ms. (cause = G1 Evacuation Pause)
  902.5 KB moved to G1 Old Gen
    2.6 GB โ†’ 2.6 GB
  60.0 MB moved to G1 Survivor Space
    176.0 MB โ†’ 236.0 MB
  3.5 GB freed from G1 Eden Space
    3.5 GB โ†’ 0 bytes (100%)

I don't know much about Java, but it feels odd is that even though it keeps freeing stuff from "G1 Eden Space" every few seconds, the RAM usage is still at full 8.45GB and no changes on the chart nonetheless.

I'll keep testing the server without Journey and will let you know if we have any issues though. We're in a few people and that issue only seems to happen when everyone is moving around a lot.

commented

Updating here, seems that the issue still happens after removing Journey, though it took way longer to happen. Server seems to have died without any message on debug.log or latest.log again, with full RAM. Any ideas on what might be going on? I've tried doing a dump via Spark and it was way smaller (around 3GB when 8GB of memory were in use), so I'm not sure if all data is there...

commented

Did this ever got addressed? I just installed ATM7 last week and RAM usage keeps growing on the server until it hangs, CPU usage drops to 0% and everything becomes non-responsive. Nothing gets output on the logs, either, which seems to be an Out-of-Memory error. Server currently set to 10GB of RAM.

commented

Have you tried running All the Mods 7 without Journeymap?