Problem Memory Leaks in loaded chunks

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Lotheron

New Member
Jul 29, 2019
2
0
0
Is there anyway to determine the source of a memory leak? My dedicated server was getting to the point where it would run out of memory (6GB dedicated to Minecraft) that it would run out of memory after about an hour of uptime. It also results it the CPU becoming maxed out every 10 seconds or so.

Restarting the server would reset the issue, but the memory usage graph in McMyAdmin would slowly rise without ever falling even with no one online until it reached about an hour when it would rise fast and the server would be unplayable.

I removed chickenchunks from the server and the issue cleared up somewhat giving the server more uptime until the chunks became loaded by a player obviously. I'm now restarting the server every 12 hours and its more playable but still has issues.

I have used opis (even the new version that supports entities) and I do not see anything that appears cause lag in even the laggiest chunks.

Any help would be appreciated!
Thanks!
Lotheron
 

Lotheron

New Member
Jul 29, 2019
2
0
0
Here you go,http://lophnk.servegame.com/logs.zip

I do know of one error that I hven't found an answer for that shows up int he logs, however, it happens even without the chunkloaders and no one is online so I do not believe that it's part of the issue. It might be however. I do know that I have since removed the chunkloaders and went to a 12h restart cycle and everything is running much better.

Error I know about:

Code:
2013-12-28 14:30:19 [INFO] [STDERR] java.util.ConcurrentModificationException
2013-12-28 14:30:19 [INFO] [STDERR]    at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
2013-12-28 14:30:19 [INFO] [STDERR]    at java.util.HashMap$ValueIterator.next(HashMap.java:954)
2013-12-28 14:30:19 [INFO] [STDERR]    at net.minecraft.nbt.NBTTagCompound.func_74734_a(SourceFile:25)
2013-12-28 14:30:19 [INFO] [STDERR]    at net.minecraft.nbt.NBTBase.func_74731_a(SourceFile:119)
2013-12-28 14:30:19 [INFO] [STDERR]    at net.minecraft.nbt.CompressedStreamTools.func_74800_a(CompressedStreamTools.java:140)
2013-12-28 14:30:19 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75821_a(AnvilChunkLoader.java:198)
2013-12-28 14:30:19 [INFO] [STDERR]    at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75814_c(AnvilChunkLoader.java:184)
2013-12-28 14:30:19 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.func_75736_b(SourceFile:30)
2013-12-28 14:30:19 [INFO] [STDERR]    at net.minecraft.world.storage.ThreadedFileIOBase.run(SourceFile:23)
2013-12-28 14:30:19 [INFO] [STDERR]    at java.lang.Thread.run(Thread.java:744)

I've also tried many of the recommended java switches that does not seem to fix the issue and in fact sometimes have made it worse. It seems it runs best with just setting PermSize and MaxPermsize.