webbukkit/dynmap — Issue #479: Memory leak
Author: dogbig
Created: 2011-11-03 13:30:29+00:00
State: open

When running dynmap (also latest build) with 50+ players and 5GB RAM, the memory leak cause issues...

2011-11-03 09:34:21 [INFO] <[34mAdmin [37mDweight[37m> w8[0m
2011-11-03 09:34:27 [WARNING] Task of 'dynmap' generated an exception
java.lang.OutOfMemoryError: Java heap space
at org.bukkit.craftbukkit.CraftChunk.getChunkSnapshot(CraftChunk.java:133)
at org.dynmap.utils.NewMapChunkCache.loadChunks(NewMapChunkCache.java:481)
at org.dynmap.MapManager$2.call(MapManager.java:1084)
at org.dynmap.MapManager$2.call(MapManager.java:1079)
at org.bukkit.craftbukkit.scheduler.CraftFuture.run(CraftFuture.java:34)
at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
2011-11-03 09:35:41 [SEVERE] Exception in thread "Thread-24334"
2011-11-03 09:36:06 [INFO] Read timed out
2011-11-03 09:46:37 [SEVERE] Exception in thread "Thread-19"
2011-11-03 09:47:43 [SEVERE] Exception in thread "Thread-24335"
2011-11-03 09:48:45 [SEVERE] Exception in thread "Thread-18111"
2011-11-03 09:49:01 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:49:16 [SEVERE] Exception in thread "Connection #233 read thread"
2011-11-03 09:49:32 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:49:47 [SEVERE] Exception in thread "Connection #294 read thread"
2011-11-03 09:50:02 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:50:18 [SEVERE] Exception in thread "Thread-18"
2011-11-03 09:50:28 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:50:38 [SEVERE] java.lang.reflect.InvocationTargetException
2011-11-03 09:50:47 [SEVERE]	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
2011-11-03 09:51:08 [SEVERE]	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
2011-11-03 09:51:31 [SEVERE]	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
2011-11-03 09:51:51 [SEVERE]	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
2011-11-03 09:52:10 [SEVERE]	at net.minecraft.server.SpawnerCreature.spawnEntities(SpawnerCreature.java:107)
2011-11-03 09:52:29 [SEVERE]	at net.minecraft.server.World.doTick(World.java:1620)
2011-11-03 09:52:49 [SEVERE]	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:461)
2011-11-03 09:53:09 [SEVERE]	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
2011-11-03 09:53:27 [SEVERE]	at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
2011-11-03 09:53:46 [SEVERE] Caused by: java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:54:09 [SEVERE] Exception in thread "Connection #328 read thread"
2011-11-03 09:54:54 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:55:42 [SEVERE] Exception in thread "Thread-24345"
2011-11-03 09:56:34 [SEVERE] Exception in thread "Thread-24344"
2011-11-03 09:56:59 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:57:59 [SEVERE] Exception in thread "Thread-24343"
2011-11-03 09:58:37 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 09:59:07 [SEVERE] Exception in thread "Thread-24342"
2011-11-03 09:59:40 [SEVERE] Exception in thread "Thread-24341"
2011-11-03 10:00:04 [SEVERE] java.lang.OutOfMemoryError: Java heap space
2011-11-03 10:00:35 [SEVERE] Exception in thread "Thread-24339"
2011-11-03 10:00:46 [SEVERE] Exception in thread "Thread-17915"
2011-11-03 10:01:06 [SEVERE] Exception in thread "Thread-24338"
2011-11-03 10:01:31 [SEVERE] java.lang.OutOfMemoryError: Java heap space