webbukkit / dynmap

A set of Minecraft mods that provide a real time web-based map system for various Minecraft server implementations.
https://www.reddit.com/r/Dynmap/
Apache License 2.0
2.05k stars 419 forks source link

Memory leak with Dynmap 1.5 (Bukkit) when used with MCPC+ 1.4.7-R1.1 b245 and FTB/Ultimate 1.01 #1191

Closed WebMaka closed 11 years ago

WebMaka commented 11 years ago

Greetings Dynmap crew!

I'm running a test server to make sure all is well on Feed The Beast, Ultimate 1.01 running on MCPC+ 1.4.7-R1.1 build 245, and discovered a memory leak that ultimately crashes out the server with "out of heap space" errors. Removing only Dynmap (by adding ".disabled" to the filename so MCPC won't "see" it) resolved the issue, so it was pretty easy to narrow down.

Here's how MCPC reported its shutdown after its deadlock detector fired...

2013-03-13 18:26:59 [INFO] Stopping server 2013-03-13 18:26:12 [SEVERE] The server has stopped responding! 2013-03-13 18:29:02 [SEVERE] Please report this to http://www.mcportcentral.co.za/ 2013-03-13 18:28:43 [INFO] [EssentialsAntiBuild] Disabling EssentialsAntiBuild v2.10.1 2013-03-13 18:29:48 [SEVERE] Spigot version: 1.4.7-R1.1-SNAPSHOT 2013-03-13 18:29:48 [SEVERE] Begin Exception Trace For All Threads: 2013-03-13 18:29:41 [SEVERE] Exception in thread "Spigot Metrics Gatheri 2013-03-13 18:29:52 [SEVERE] ng Thread" Exception in thread "Listen thread" 2013-03-13 18:30:00 [SEVERE] Exception in thread "Immibis Core background task" 2013-03-13 18:30:00 [SEVERE] java.lang.OutOfMemoryError: Java heap space 2013-03-13 18:30:00 [SEVERE] java.lang.OutOfMemoryError: Java heap space 2013-03-13 18:30:03 [INFO] [EssentialsSpawn] Disabling EssentialsSpawn v2.10.1 2013-03-13 18:30:03 [INFO] [EssentialsChat] Disabling EssentialsChat v2.10.1 2013-03-13 18:30:24 [SEVERE] ------------------------------ 2013-03-13 18:30:41 [SEVERE] Current Thread: Server thread 2013-03-13 18:30:41 [SEVERE] PID: 18 | Alive: true | State: RUNNABLE 2013-03-13 18:30:45 [SEVERE] Stack: 2013-03-13 18:30:51 [INFO] [dynmap] Disabling dynmap v1.5-612 2013-03-13 18:31:09 [SEVERE] java.util.LinkedHashMap.createEntry(LinkedHashMap.java:421) 2013-03-13 18:31:12 [SEVERE] java.util.LinkedHashMap.addEntry(LinkedHashMap.java:403) 2013-03-13 18:31:12 [SEVERE] java.util.HashMap.put(HashMap.java:412) 2013-03-13 18:31:12 [SEVERE] org.anjocaido.groupmanager.permissions.BukkitPermissions.collectPermissions(Unknown Source) 2013-03-13 18:31:12 [SEVERE] org.anjocaido.groupmanager.permissions.BukkitPermissions$BukkitEvents.onPluginDisable(Unknown Source) 2013-03-13 18:31:12 [SEVERE] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2013-03-13 18:31:12 [SEVERE] sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2013-03-13 18:31:12 [SEVERE] sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2013-03-13 18:31:12 [SEVERE] java.lang.reflect.Method.invoke(Unknown Source) 2013-03-13 18:31:12 [SEVERE] org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:361) 2013-03-13 18:31:12 [SEVERE] org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 2013-03-13 18:31:12 [SEVERE] org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 2013-03-13 18:31:12 [SEVERE] org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 2013-03-13 18:31:12 [SEVERE] org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:416) 2013-03-13 18:31:12 [SEVERE] org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400) 2013-03-13 18:31:12 [SEVERE] org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393) 2013-03-13 18:31:12 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.CraftServer.disablePlugins(CraftServer.java:286) 2013-03-13 18:31:12 [SEVERE] net.minecraft.server.MinecraftServer.k(MinecraftServer.java:641) 2013-03-13 18:31:12 [SEVERE] net.minecraft.server.MinecraftServer.run(MinecraftServer.java:799) 2013-03-13 18:31:12 [SEVERE] fy.run(ThreadMinecraftServer.java:16) 2013-03-13 18:31:12 [SEVERE] ------------------------------ 2013-03-13 18:31:12 [SEVERE] Current Thread: pool-4-thread-1 Selector0 2013-03-13 18:31:12 [SEVERE] PID: 53 | Alive: true | State: RUNNABLE 2013-03-13 18:31:12 [SEVERE] Stack: 2013-03-13 18:31:12 [SEVERE] sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method) 2013-03-13 18:31:16 [SEVERE] sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source) 2013-03-13 18:31:20 [SEVERE] sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source) 2013-03-13 18:31:20 [SEVERE] sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source) 2013-03-13 18:31:20 [SEVERE] sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source) 2013-03-13 18:31:20 [SEVERE] sun.nio.ch.SelectorImpl.select(Unknown Source) 2013-03-13 18:31:20 [SEVERE] org.dynmap.jetty.io.nio.SelectorManager$SelectSet.doSelect(Unknown Source) 2013-03-13 18:31:20 [SEVERE] org.dynmap.jetty.io.nio.SelectorManager$1.run(Unknown Source) 2013-03-13 18:31:20 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:31:20 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:31:20 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:31:20 [SEVERE] ------------------------------ 2013-03-13 18:31:20 [SEVERE] Current Thread: RMI TCP Accept-0 2013-03-13 18:31:20 [SEVERE] PID: 11 | Alive: true | State: RUNNABLE 2013-03-13 18:31:20 [SEVERE] Stack: 2013-03-13 18:31:20 [SEVERE] java.net.DualStackPlainSocketImpl.accept0(Native Method) 2013-03-13 18:31:20 [SEVERE] java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source) 2013-03-13 18:31:20 [SEVERE] java.net.AbstractPlainSocketImpl.accept(Unknown Source) 2013-03-13 18:31:20 [SEVERE] java.net.PlainSocketImpl.accept(Unknown Source) 2013-03-13 18:31:20 [SEVERE] java.net.ServerSocket.implAccept(Unknown Source) 2013-03-13 18:31:37 [SEVERE] java.net.ServerSocket.accept(Unknown Source) 2013-03-13 18:31:37 [SEVERE] sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(Unknown Source) 2013-03-13 18:31:40 [SEVERE] sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(Unknown Source) 2013-03-13 18:32:03 [SEVERE] Error occurred while disabling dynmap v1.5-612 (Is it up to date?) java.lang.NoClassDefFoundError: org/dynmap/snakeyaml/serializer/Serializer at org.dynmap.snakeyaml.Yaml.dumpAll(Unknown Source) at org.dynmap.snakeyaml.Yaml.dumpAll(Unknown Source) at org.dynmap.snakeyaml.Yaml.dump(Unknown Source) at org.dynmap.ConfigurationNode.save(Unknown Source) at org.dynmap.DynmapCore.saveIDsByIP(Unknown Source) at org.dynmap.DynmapCore.disableCore(Unknown Source) at org.dynmap.bukkit.DynmapPlugin.onDisable(Unknown Source) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:219) at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:422) at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:400) at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:393) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.disablePlugins(CraftServer.java:286) at net.minecraft.server.MinecraftServer.k(MinecraftServer.java:641) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:799) at fy.run(ThreadMinecraftServer.java:16) Caused by: java.lang.ClassNotFoundException: Failed to remap class org.dynmap.snakeyaml.serializer.Serializer at org.bukkit.plugin.java.PluginClassLoader.remappedFindClass(PluginClassLoader.java:344) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:265) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:243) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 15 more Caused by: java.lang.OutOfMemoryError: Java heap space 2013-03-13 18:32:09 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:32:59 [SEVERE] ------------------------------ 2013-03-13 18:32:59 [INFO] [Essentials] Disabling Essentials v2.10.1 2013-03-13 18:33:04 [SEVERE] Current Thread: RMI TCP Accept-12323 2013-03-13 18:33:21 [SEVERE] PID: 12 | Alive: true | State: RUNNABLE 2013-03-13 18:33:21 [SEVERE] Stack: 2013-03-13 18:33:21 [SEVERE] java.net.DualStackPlainSocketImpl.accept0(Native Method) 2013-03-13 18:33:21 [SEVERE] java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source) 2013-03-13 18:33:21 [SEVERE] java.net.AbstractPlainSocketImpl.accept(Unknown Source) 2013-03-13 18:33:21 [SEVERE] java.net.PlainSocketImpl.accept(Unknown Source) 2013-03-13 18:33:21 [SEVERE] java.net.ServerSocket.implAccept(Unknown Source) 2013-03-13 18:33:21 [SEVERE] java.net.ServerSocket.accept(Unknown Source) 2013-03-13 18:33:21 [SEVERE] sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(Unknown Source) 2013-03-13 18:33:21 [SEVERE] sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(Unknown Source) 2013-03-13 18:33:21 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:21 [SEVERE] ------------------------------ 2013-03-13 18:33:21 [SEVERE] Current Thread: Signal Dispatcher 2013-03-13 18:33:21 [SEVERE] PID: 5 | Alive: true | State: RUNNABLE 2013-03-13 18:33:21 [SEVERE] Stack: 2013-03-13 18:33:21 [SEVERE] ------------------------------ 2013-03-13 18:33:21 [SEVERE] Current Thread: DestroyJavaVM 2013-03-13 18:33:21 [SEVERE] PID: 20 | Alive: true | State: RUNNABLE 2013-03-13 18:33:21 [SEVERE] Stack: 2013-03-13 18:33:21 [SEVERE] ------------------------------ 2013-03-13 18:33:21 [SEVERE] Current Thread: Dynmap Render Thread 2013-03-13 18:33:21 [SEVERE] PID: 48 | Alive: true | State: RUNNABLE 2013-03-13 18:33:21 [SEVERE] Stack: 2013-03-13 18:33:21 [SEVERE] sun.misc.Unsafe.park(Native Method) 2013-03-13 18:33:25 [SEVERE] java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) 2013-03-13 18:33:25 [SEVERE] java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source) 2013-03-13 18:33:25 [SEVERE] java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source) 2013-03-13 18:33:25 [SEVERE] java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source) 2013-03-13 18:33:30 [INFO] [Permissions] Disabling Permissions v3.1.6 2013-03-13 18:33:30 [SEVERE] java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) 2013-03-13 18:33:33 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:33:33 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:33:33 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:33 [SEVERE] ------------------------------ 2013-03-13 18:33:33 [INFO] WEPIF: GroupManager detected! Using GroupManager for permissions. 2013-03-13 18:33:33 [SEVERE] Current Thread: File IO Thread 2013-03-13 18:33:33 [INFO] Fake Permissions version 3.1.6 is disabled! 2013-03-13 18:33:33 [SEVERE] PID: 69 | Alive: true | State: RUNNABLE 2013-03-13 18:33:33 [SEVERE] Stack: 2013-03-13 18:33:33 [SEVERE] java.util.zip.DeflaterOutputStream.write(Unknown Source) 2013-03-13 18:33:33 [SEVERE] java.io.DataOutputStream.writeByte(Unknown Source) 2013-03-13 18:33:33 [SEVERE] cd.a(NBTBase.java:107) 2013-03-13 18:33:37 [INFO] [WorldEdit] Disabling WorldEdit v1372-48c3c3e 2013-03-13 18:33:38 [SEVERE] bq.a(NBTTagCompound.java:41) 2013-03-13 18:33:43 [SEVERE] by.a(NBTTagList.java:51) 2013-03-13 18:33:50 [SEVERE] cd.a(NBTBase.java:112) 2013-03-13 18:33:50 [SEVERE] bq.a(NBTTagCompound.java:41) 2013-03-13 18:33:50 [SEVERE] cd.a(NBTBase.java:112) 2013-03-13 18:33:50 [SEVERE] bq.a(NBTTagCompound.java:41) 2013-03-13 18:33:50 [SEVERE] cd.a(NBTBase.java:112) 2013-03-13 18:33:50 [SEVERE] ca.a(CompressedStreamTools.java:140) 2013-03-13 18:33:50 [SEVERE] aam.a(AnvilChunkLoader.java:274) 2013-03-13 18:33:50 [SEVERE] aam.c(AnvilChunkLoader.java:260) 2013-03-13 18:33:50 [SEVERE] aiw.b(ThreadedFileIOBase.java:39) 2013-03-13 18:33:50 [SEVERE] aiw.run(ThreadedFileIOBase.java:27) 2013-03-13 18:33:50 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:50 [SEVERE] ------------------------------ 2013-03-13 18:33:50 [SEVERE] Current Thread: RMI TCP Accept-0 2013-03-13 18:33:50 [SEVERE] PID: 13 | Alive: true | State: RUNNABLE 2013-03-13 18:33:50 [SEVERE] Stack: 2013-03-13 18:33:50 [SEVERE] java.net.DualStackPlainSocketImpl.accept0(Native Method) 2013-03-13 18:33:50 [SEVERE] java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source) 2013-03-13 18:33:50 [SEVERE] java.net.AbstractPlainSocketImpl.accept(Unknown Source) 2013-03-13 18:33:50 [SEVERE] java.net.PlainSocketImpl.accept(Unknown Source) 2013-03-13 18:33:50 [SEVERE] java.net.ServerSocket.implAccept(Unknown Source) 2013-03-13 18:33:50 [SEVERE] java.net.ServerSocket.accept(Unknown Source) 2013-03-13 18:33:50 [INFO] [GroupManager] Disabling GroupManager v2.0 (2.10.1) (Phoenix) 2013-03-13 18:33:50 [SEVERE] sun.management.jmxremote.LocalRMIServerSocketFactory$1.accept(Unknown Source) 2013-03-13 18:33:50 [SEVERE] sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(Unknown Source) 2013-03-13 18:33:50 [SEVERE] sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(Unknown Source) 2013-03-13 18:33:50 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:50 [SEVERE] ------------------------------ 2013-03-13 18:33:50 [SEVERE] Current Thread: Attach Listener 2013-03-13 18:33:50 [SEVERE] PID: 6 | Alive: true | State: RUNNABLE 2013-03-13 18:33:50 [SEVERE] Stack: 2013-03-13 18:33:50 [SEVERE] ------------------------------ 2013-03-13 18:33:50 [SEVERE] Current Thread: pool-2-thread-1 2013-03-13 18:33:50 [SEVERE] PID: 44 | Alive: true | State: TIMED_WAITING 2013-03-13 18:33:50 [SEVERE] Stack: 2013-03-13 18:33:50 [SEVERE] sun.misc.Unsafe.park(Native Method) 2013-03-13 18:33:50 [SEVERE] java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) 2013-03-13 18:33:50 [SEVERE] java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source) 2013-03-13 18:33:54 [INFO] GroupManager version 2.0 (2.10.1) (Phoenix) is disabled! 2013-03-13 18:33:54 [SEVERE] java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:54 [SEVERE] ------------------------------ 2013-03-13 18:33:54 [SEVERE] Current Thread: Snooper Timer 2013-03-13 18:33:54 [SEVERE] PID: 15 | Alive: true | State: TIMED_WAITING 2013-03-13 18:33:54 [SEVERE] Stack: 2013-03-13 18:33:54 [SEVERE] java.lang.Object.wait(Native Method) 2013-03-13 18:33:54 [SEVERE] java.util.TimerThread.mainLoop(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.util.TimerThread.run(Unknown Source) 2013-03-13 18:33:54 [SEVERE] ------------------------------ 2013-03-13 18:33:54 [INFO] [PerformanceMonitor] Disabling PerformanceMonitor v1.7.0 2013-03-13 18:33:54 [SEVERE] Current Thread: Thread-5 2013-03-13 18:33:54 [SEVERE] PID: 19 | Alive: true | State: TIMED_WAITING 2013-03-13 18:33:54 [INFO] [PerformanceMonitor 1.7.0] Plugin disabled! 2013-03-13 18:33:54 [SEVERE] Stack: 2013-03-13 18:33:54 [SEVERE] java.lang.Thread.sleep(Native Method) 2013-03-13 18:33:54 [SEVERE] hp.run(DedicatedServerSleepThread.java:23) 2013-03-13 18:33:54 [SEVERE] ------------------------------ 2013-03-13 18:33:54 [SEVERE] Current Thread: pool-4-thread-4 2013-03-13 18:33:54 [SEVERE] PID: 80 | Alive: true | State: TIMED_WAITING 2013-03-13 18:33:54 [SEVERE] Stack: 2013-03-13 18:33:54 [SEVERE] java.util.Arrays.copyOfRange(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.lang.String.(Unknown Source) 2013-03-13 18:33:54 [SEVERE] java.lang.String.substring(Unknown Source) 2013-03-13 18:33:54 [SEVERE] org.dynmap.web.HandlerRouter.handle(Unknown Source) 2013-03-13 18:33:54 [SEVERE] org.dynmap.web.FilterHandler$1.doFilter(Unknown Source) 2013-03-13 18:33:55 [SEVERE] org.dynmap.web.CustomHeaderFilter.doFilter(Unknown Source) 2013-03-13 18:33:55 [SEVERE] org.dynmap.web.FilterHandler$1.doFilter(Unknown Source) 2013-03-13 18:33:55 [INFO] Saving players 2013-03-13 18:33:59 [SEVERE] org.dynmap.web.BanIPFilter.doFilter(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.web.FilterHandler$1.doFilter(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.web.FilterHandler.handle(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.handler.HandlerList.handle(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.handler.HandlerWrapper.handle(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.Server.handle(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.AbstractHttpConnection.handleRequest(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.AbstractHttpConnection.headerComplete(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.http.HttpParser.parseNext(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.http.HttpParser.parseAvailable(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.AsyncHttpConnection.handle(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.io.nio.SelectChannelEndPoint.handle(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.io.nio.SelectChannelEndPoint$1.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] ------------------------------ 2013-03-13 18:33:59 [SEVERE] Current Thread: pool-4-thread-6 2013-03-13 18:33:59 [SEVERE] PID: 82 | Alive: true | State: RUNNABLE 2013-03-13 18:33:59 [SEVERE] Stack: 2013-03-13 18:33:59 [SEVERE] sun.misc.Unsafe.park(Native Method) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.LinkedBlockingQueue.poll(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] ------------------------------ 2013-03-13 18:33:59 [SEVERE] Current Thread: Immibis Core background task 2013-03-13 18:33:59 [SEVERE] PID: 22 | Alive: false | State: TERMINATED 2013-03-13 18:33:59 [SEVERE] Stack: 2013-03-13 18:33:59 [SEVERE] java.io.PrintStream.write(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.io.PrintStream.print(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.lang.ThreadGroup.uncaughtException(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.lang.ThreadGroup.uncaughtException(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.dispatchUncaughtException(Unknown Source) 2013-03-13 18:33:59 [SEVERE] ------------------------------ 2013-03-13 18:33:59 [SEVERE] Current Thread: Thread-11 2013-03-13 18:33:59 [SEVERE] PID: 29 | Alive: true | State: TIMED_WAITING 2013-03-13 18:33:59 [SEVERE] Stack: 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.sleep(Native Method) 2013-03-13 18:33:59 [SEVERE] appeng.common.VersionChecker.run(VersionChecker.java:37) 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] ------------------------------ 2013-03-13 18:33:59 [SEVERE] Current Thread: Spigot Watchdog Thread 2013-03-13 18:33:59 [SEVERE] PID: 35 | Alive: true | State: RUNNABLE 2013-03-13 18:33:59 [SEVERE] Stack: 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.dumpThreads(Native Method) 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.getAllStackTraces(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.util.WatchdogThread.run(WatchdogThread.java:60) 2013-03-13 18:33:59 [SEVERE] ------------------------------ 2013-03-13 18:33:59 [SEVERE] Current Thread: pool-4-thread-2 Acceptor0 SelectChannelConnector@0.0.0.0:8125 2013-03-13 18:33:59 [SEVERE] PID: 54 | Alive: true | State: RUNNABLE 2013-03-13 18:33:59 [SEVERE] Stack: 2013-03-13 18:33:59 [SEVERE] sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) 2013-03-13 18:33:59 [SEVERE] sun.nio.ch.ServerSocketChannelImpl.accept(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.nio.SelectChannelConnector.accept(Unknown Source) 2013-03-13 18:33:59 [SEVERE] org.dynmap.jetty.server.AbstractConnector$Acceptor.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:33:59 [SEVERE] ------------------------------ 2013-03-13 18:33:59 [SEVERE] Current Thread: Thread-6 2013-03-13 18:33:59 [SEVERE] PID: 21 | Alive: true | State: RUNNABLE 2013-03-13 18:33:59 [SEVERE] Stack: 2013-03-13 18:33:59 [SEVERE] java.io.FileInputStream.readBytes(Native Method) 2013-03-13 18:33:59 [SEVERE] java.io.FileInputStream.read(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.io.BufferedInputStream.fill(Unknown Source) 2013-03-13 18:33:59 [SEVERE] java.io.BufferedInputStream.read(Unknown Source) 2013-03-13 18:34:03 [SEVERE] java.io.FilterInputStream.read(Unknown Source) 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.console.ConsoleReader$1.read(ConsoleReader.java:167) 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267) 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204) 2013-03-13 18:34:03 [INFO] Unloading Player: Xathras420 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:995) 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLineSimple(ConsoleReader.java:1506) 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1153) 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1117) 2013-03-13 18:34:03 [SEVERE] org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1105) 2013-03-13 18:34:03 [SEVERE] hq.run(DedicatedServerCommandThread.java:41) 2013-03-13 18:34:03 [SEVERE] ------------------------------ 2013-03-13 18:34:03 [SEVERE] Current Thread: pool-4-thread-3 2013-03-13 18:34:03 [SEVERE] PID: 79 | Alive: true | State: TIMED_WAITING 2013-03-13 18:34:03 [SEVERE] Stack: 2013-03-13 18:34:03 [SEVERE] sun.misc.Unsafe.park(Native Method) 2013-03-13 18:34:03 [SEVERE] java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) 2013-03-13 18:34:03 [SEVERE] java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source) 2013-03-13 18:34:03 [SEVERE] java.util.concurrent.LinkedBlockingQueue.poll(Unknown Source) 2013-03-13 18:34:08 [INFO] Saving worlds 2013-03-13 18:34:08 [SEVERE] java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source) 2013-03-13 18:34:08 [INFO] Saving chunks for level 'world'/Overworld 2013-03-13 18:34:08 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:34:08 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:34:12 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:34:12 [SEVERE] ------------------------------ 2013-03-13 18:34:12 [SEVERE] Current Thread: HashSessionScavenger-0 2013-03-13 18:34:12 [SEVERE] PID: 52 | Alive: true | State: TIMED_WAITING 2013-03-13 18:34:12 [SEVERE] Stack: 2013-03-13 18:34:12 [SEVERE] java.lang.Object.wait(Native Method) 2013-03-13 18:34:12 [SEVERE] java.util.TimerThread.mainLoop(Unknown Source) 2013-03-13 18:34:12 [SEVERE] java.util.TimerThread.run(Unknown Source) 2013-03-13 18:34:12 [SEVERE] ------------------------------ 2013-03-13 18:34:12 [SEVERE] Current Thread: Chunk I/O Executor Thread-1 2013-03-13 18:34:12 [SEVERE] PID: 78 | Alive: true | State: RUNNABLE 2013-03-13 18:34:12 [SEVERE] Stack: 2013-03-13 18:34:12 [SEVERE] cd.a(NBTBase.java:128) 2013-03-13 18:34:12 [SEVERE] cd.b(NBTBase.java:83) 2013-03-13 18:34:12 [SEVERE] bq.a(NBTTagCompound.java:55) 2013-03-13 18:34:12 [SEVERE] by.a(NBTTagList.java:67) 2013-03-13 18:34:12 [SEVERE] cd.b(NBTBase.java:87) 2013-03-13 18:34:12 [SEVERE] bq.a(NBTTagCompound.java:55) 2013-03-13 18:34:12 [SEVERE] cd.b(NBTBase.java:87) 2013-03-13 18:34:12 [SEVERE] bq.a(NBTTagCompound.java:55) 2013-03-13 18:34:12 [SEVERE] by.a(NBTTagList.java:67) 2013-03-13 18:34:12 [SEVERE] cd.b(NBTBase.java:87) 2013-03-13 18:34:12 [SEVERE] bq.a(NBTTagCompound.java:55) 2013-03-13 18:34:12 [SEVERE] by.a(NBTTagList.java:67) 2013-03-13 18:34:12 [SEVERE] cd.b(NBTBase.java:87) 2013-03-13 18:34:12 [SEVERE] bq.a(NBTTagCompound.java:55) 2013-03-13 18:34:12 [SEVERE] cd.b(NBTBase.java:87) 2013-03-13 18:34:12 [SEVERE] bq.a(NBTTagCompound.java:55) 2013-03-13 18:34:12 [SEVERE] cd.b(NBTBase.java:87) 2013-03-13 18:34:12 [SEVERE] ca.a(CompressedStreamTools.java:126) 2013-03-13 18:34:15 [SEVERE] aam.loadChunk__Async_CB(AnvilChunkLoader.java:124) 2013-03-13 18:34:15 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage1(ChunkIOProvider.java:16) 2013-03-13 18:34:15 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage1(ChunkIOProvider.java:10) 2013-03-13 18:34:18 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.init(AsynchronousExecutor.java:150) 2013-03-13 18:35:04 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.initAsync(AsynchronousExecutor.java:95) 2013-03-13 18:35:04 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.run(AsynchronousExecutor.java:85) 2013-03-13 18:35:04 [SEVERE] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2013-03-13 18:35:00 [SEVERE] java.lang.OutOfMemoryError: Java heap space 2013-03-13 18:35:04 [SEVERE] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2013-03-13 18:35:12 [SEVERE] java.lang.Thread.run(Unknown Source) 2013-03-13 18:35:12 [SEVERE] ------------------------------ 2013-03-13 18:35:12 [SEVERE] Current Thread: Listen thread 2013-03-13 18:35:17 [SEVERE] PID: 34 | Alive: false | State: TERMINATED 2013-03-13 18:35:24 [SEVERE] Stack: 2013-03-13 18:35:24 [SEVERE] java.util.logging.StreamHandler.publish(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.util.logging.ConsoleHandler.publish(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.util.logging.Logger.log(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.util.logging.Logger.doLog(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.util.logging.Logger.logp(Unknown Source) 2013-03-13 18:35:24 [SEVERE] org.bukkit.craftbukkit.v1_4_R1.LoggerOutputStream.flush(LoggerOutputStream.java:27) 2013-03-13 18:35:24 [SEVERE] java.io.PrintStream.write(Unknown Source) 2013-03-13 18:35:24 [SEVERE] sun.nio.cs.StreamEncoder.writeBytes(Unknown Source) 2013-03-13 18:35:24 [SEVERE] sun.nio.cs.StreamEncoder.implWrite(Unknown Source) 2013-03-13 18:35:24 [SEVERE] sun.nio.cs.StreamEncoder.write(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.io.OutputStreamWriter.write(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.io.BufferedWriter.flushBuffer(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.io.PrintStream.write(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.io.PrintStream.print(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.lang.ThreadGroup.uncaughtException(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.lang.ThreadGroup.uncaughtException(Unknown Source) 2013-03-13 18:35:24 [SEVERE] java.lang.Thread.dispatchUncaughtException(Unknown Source) 2013-03-13 18:35:24 [SEVERE] ------------------------------ 2013-03-13 18:35:24 [SEVERE] Current Thread: Connection #14 read thread 2013-03-13 18:35:24 [SEVERE] PID: 307 | Alive: true | State: TIMED_WAITING 2013-03-13 18:35:24 [SEVERE] Stack: 2013-03-13 18:35:24 [SEVERE] java.lang.Thread.sleep(Native Method) 2013-03-13 18:35:24 [SEVERE] ch.run(TcpReaderThread.java:27) 2013-03-13 18:35:24 [SEVERE] ------------------------------ 2013-03-13 18:35:20 [INFO] Stopping server

ThatDorkyGuy commented 11 years ago

Ok goodluck, I doubt it's worldborder, cause it still did it for us and while I did have the folder in the plugins (I previously had the .jar), that's all we had.

kencinder commented 11 years ago

Yeah it's not appearing to be the case...mem usage wound up pegged right at 1024MB, but it completed the entire flat render with WorldBorder.

9:23:34 PM CONSOLE: [INFO] Full render of map 'flat' of 'world' completed - 32188 tiles rendered (67.23 msec/map-tile, 24.50 msec per render) 9:23:34 PM CONSOLE: [INFO] Full render of 'world' finished.

I've noticed even still, that each render gets slower and slower, even before I put WB back in - http://pastebin.com/1quiEsP4 Not sure if that has any bearing on anything, just something I noticed.

I'm confused at what is causing it, without WorldEdit it was still crashing, and we don't have any other plugins in common.

ThatDorkyGuy commented 11 years ago

Then would it be a mod? Because it worked before the upgrade I did to Mindcrack 8.2, so possibly one of the updates in the mods could have done it? I have xycraft still on my server, but just disabled their machines. What do you think?

kencinder commented 11 years ago

All of my mods are still present when I added WB back and did a fullrender flat. I just started a fullrender surface and it now appears to be stalled for the last 10+ minutes, but I haven't crashed(yet). Console is still spitting out the odd message like

10:09:55 PM CONSOLE: [INFO] Full render of map 'surface' of 'world' in progress - 4900 tiles rendered (281.48 msec/tile, 69.82 msec per render) 10:15:19 PM CONSOLE: [INFO] There are 0/10 players online: 10:21:13 PM CONSOLE: [INFO] There are 0/10 players online:

kencinder commented 11 years ago

Almost 40 minutes later...still stalled, but hasn't crashed.

10:09:55 PM CONSOLE: [INFO] Full render of map 'surface' of 'world' in progress - 4900 tiles rendered (281.48 msec/tile, 69.82 msec per render) 10:15:19 PM CONSOLE: [INFO] There are 0/10 players online: 10:21:13 PM CONSOLE: [INFO] There are 0/10 players online: 10:27:15 PM CONSOLE: [INFO] There are 0/10 players online: 10:33:14 PM CONSOLE: [INFO] There are 0/10 players online: 10:39:12 PM CONSOLE: [INFO] There are 0/10 players online: 10:45:12 PM CONSOLE: [INFO] There are 0/10 players online:

Any input here mikeprimm? Need a heap dump dontcha?

mikeprimm commented 11 years ago

Trying to reproduce SOMETHING here - have yet to get an OOM with FTB Ultimate v1.0.1 and MCPC+ #248 and DynampForge 1.6-alpha-2. Added WE 5.5.5, but no luck there. Going to try WB now.

kencinder commented 11 years ago

No OOM here since I cut all the plugins except WB, but that surface render stalled(died? Can't tell, nothing in the log whatsoever) completely, and the server just continued on as if nothing happened.

Was using latest Bukkit Dev build, as Forge build provided no different results and I want the features of Towny etc. It has to be related to some other plugin(or it's interaction with MCPC+) somehow, if leaving all my mods in place doesn't cause an OOM.

Xavura commented 11 years ago

It's happened to me twice now (crash with OOM) and the second time it crashed the JVM too.

Here is some information, let me know if you want more...

Crash: https://gist.github.com/Xavura/5263486 Mods: https://gist.github.com/Xavura/5263568 Plugins: BorderGuard, NeoSmite, WorldEdit, uHome, PlgSetspawn, CommandBook, PluginManager, PermissionsEx, LWC, WorldGuard, dynmap, Lift, ColorMe Version: git-MCPC-Plus-jenkins-MCPC-Plus-244

Oh, and is there some way to resume the fullrender after a crash? Getting tired of starting it again now.

mikeprimm commented 11 years ago

Guys - please switch to using the DynmapForge v1.6-alpha-2 on MCPC-Plus. I've thrown in the towel on trying to support the Bukkit version on MCPC - better to just realize that MCPC-Plus is "Forge with Bukkit support" and be a Forge mod: I've create the DynmapCBBridge mod to 'gift' support for the Dynmap API on Bukkit to that configuration, so that things like Dynmap-Essentials or Dynmap-WorldGuard will work on MCPC-Plus with the Forge version of Dynmap.

Xavura commented 11 years ago

Will give it a shot, thanks.

kencinder commented 11 years ago

Ok switched and dropped the bridge jar into the mods folder, but it isn't and can't work as Dynmap-Towny is loaded(and fails) before Dynmap Forge gets loaded. 1.6-alpha-2 appears to working ok though, 30 minutes into a render with mem maxxed, and I can still hop on the server albeit it's a little laggy.

mikeprimm commented 11 years ago

DynampCBBridge is a plugin (bukkit) not mod (forge) - its like a wrapper that make DynmapForge look like Dynmap-for-Bukkit for the bukkit plugins.

kencinder commented 11 years ago

Ah, you said "mod" in your previous post here about it, so I assumed it was indeed a mod and not a plugin.

Working great now, but I spotted this in the console "[SEVERE] Error loading dynmap marker API!", I don't use markers(yet?) so I have no idea if it's actually causing a problem.

ThatDorkyGuy commented 11 years ago

@kencinder So how are things going now? If it's all working well, no crash and all that, can you go back over what exactly you've done. I've gotten confused after these last few responses with trying to keep up, lol.

kencinder commented 11 years ago

I just got home from work after firing up a HiRes surface render on my Creative world, it's still running...server has been up for over 10 hours. Awesome-sauce! I just dropped Dynmap Bukkit, put in Dynmap Forge 1.6 alpha 2 and the Bridge plugin. WorldEdit is still out, I'll have to add that back. Just make sure you copy over your configuration.txt if you aren't using the defaults. For instance I'm not using the built in webserver.

Xavura commented 11 years ago

I'm uploading the Forge version as we speak and will report back.

Awesome news @kencinder, I hope it works well for me too.

ThatDorkyGuy commented 11 years ago

@kencinder Ok so the version of Dynmap you are using is the Dynmap Forge 1.6 Alpha 2 AND the Bridge Plugin, Correct? So for Dynmap Forge, that goes in Mod Folder and the regular Dynmap folder goes in your root directory while the Bridge Plugin goes in the Plugins folder right? Just trying to make sure. I'm just curious if adding the bridge was the problem because I could have sworn I used the Dynmap Forge 1.6 Alpha 2 (just that) and my server crashed due to OOM.

And to clarify once more, Alpha 2, not the Dev Alpha 3?

Xavura commented 11 years ago

@mikeprimm

So I tried with DynmapForge v1.6-alpha-2 and DynmapCBBridge and after a while the server just dies with no errors anywhere... this has happened twice now.

[minecraft@txrmc ~]$ tail -10 server.log
2013-03-29 10:35:32 [INFO] Full render of map 'surface' of 'world' in progress - 39600 tiles rendered (91.23 msec/tile, 53.09 msec per render)
2013-03-29 10:35:41 [INFO] Full render of map 'surface' of 'world' in progress - 39700 tiles rendered (91.23 msec/tile, 53.09 msec per render)
2013-03-29 10:35:49 [INFO] Full render of map 'surface' of 'world' in progress - 39800 tiles rendered (91.21 msec/tile, 53.08 msec per render)
2013-03-29 10:36:00 [INFO] Full render of map 'surface' of 'world' in progress - 39900 tiles rendered (91.25 msec/tile, 53.13 msec per render)
2013-03-29 10:36:10 [INFO] Full render of map 'surface' of 'world' in progress - 40000 tiles rendered (91.28 msec/tile, 53.17 msec per render)
2013-03-29 10:36:19 [INFO] Full render of map 'surface' of 'world' in progress - 40100 tiles rendered (91.26 msec/tile, 53.15 msec per render)
2013-03-29 10:36:28 [INFO] Full render of map 'surface' of 'world' in progress - 40200 tiles rendered (91.27 msec/tile, 53.16 msec per render)
2013-03-29 10:36:38 [INFO] Full render of map 'surface' of 'world' in progress - 40300 tiles rendered (91.28 msec/tile, 53.18 msec per render)
2013-03-29 10:36:45 [INFO] Full render of map 'surface' of 'world' in progress - 40400 tiles rendered (91.24 msec/tile, 53.15 msec per render)
2013-03-29 10:36:56 [INFO] Full render of map 'surface' of 'world' in progress - 40500 tiles rendered (91.29 msec/tile, 53.17 msec per render)
[minecraft@txrmc ~]$ tail -10 ForgeModLoader-server-0.log
2013-03-29 09:32:18 [FINEST] [woolTweaks] Sending event FMLServerStartedEvent to mod woolTweaks
2013-03-29 09:32:18 [FINEST] [woolTweaks] Sent event FMLServerStartedEvent to mod woolTweaks
2013-03-29 09:32:18 [FINEST] [ThaumicBees] Sending event FMLServerStartedEvent to mod ThaumicBees
2013-03-29 09:32:18 [FINEST] [ThaumicBees] Sent event FMLServerStartedEvent to mod ThaumicBees
2013-03-29 09:32:18 [FINEST] [Tubestuff] Sending event FMLServerStartedEvent to mod Tubestuff
2013-03-29 09:32:18 [FINEST] [Tubestuff] Sent event FMLServerStartedEvent to mod Tubestuff
2013-03-29 09:32:18 [FINEST] [CustomOreGen] Sending event FMLServerStartedEvent to mod CustomOreGen
2013-03-29 09:32:18 [FINEST] [CustomOreGen] Sent event FMLServerStartedEvent to mod CustomOreGen
2013-03-29 09:32:18 [FINEST] [mod_CustomOreGen] Sending event FMLServerStartedEvent to mod mod_CustomOreGen
2013-03-29 09:32:18 [FINEST] [mod_CustomOreGen] Sent event FMLServerStartedEvent to mod mod_CustomOreGen
kencinder commented 11 years ago

@ThatDorkyGuy Yes to all of the above.

@Xavura Did you remove the bukkit plugin? I had that very same issue earlier with the Bukkit plugin after I pulled all my other plugins.

Xavura commented 11 years ago

Of course.

ThatDorkyGuy commented 11 years ago

@kencinder Any other news? I have been a bit weary to test myself, but will most likely give it a go here soon. Just trying to see how things are going for you all.

kencinder commented 11 years ago

It's working great, the only thing I have noticed is that the map isn't updating itself when I place/remove blocks. I have to do a manual updaterender, whereas with the Bukkit plugin it would update itself.

And permissions support via the bridge would be nice...

ThatDorkyGuy commented 11 years ago

That kind of sucks. I'm sure the default config would have it on, but for a certain amount of time after. I know for the bukkit it was like a few minute delay or something. That'd suck to have to full render everything over to see changes.

kencinder commented 11 years ago

I believe this is it in the config...but it's certainly not working. I made large changes to a solar array I have on my workshop roof yesterday and it was still the same today.

Default delay on processing of updated tiles, in seconds. This can reduce potentially expensive re-rendering of frequently updated tiles (such as due to machines, pistons, quarries or other automation). Values can also be set on individual worlds and individual maps. tileupdatedelay: 30

ThatDorkyGuy commented 11 years ago

Ah, well maybe Mike will jump back in to say anything about that. I hope that gets worked out.

ThatDorkyGuy commented 11 years ago

No luck on my end, I finally went ahead to test it and after 3 hours (of a paused render due to me having 5 or more players), it slowly...slowly....slowly....dropped my TPS to below 4 and the server just finally gave in and rebooted. So with it just installed on my server, it did that, without even running a fullrender.

mikeprimm commented 11 years ago

Still not having luck with a reproduce - I've been running a FTB Ultimate with MCPC-Plus for a couple days of continuous rendering without issues.

ThatDorkyGuy commented 11 years ago

Can you try Mindcrack? I use Mindcrack 8.2 with MCPC-Plus build 244 (since it has grass growing whereas 245-248 do not).

mikeprimm commented 11 years ago

Sure - might be helpful to get someones world data, in case it matters. PM me with a link if you're willing to share :)

Edit: I've actually got a pretty good sized MindCrack world someone shared previously - running 244 with 8.2 with it now.

ThatDorkyGuy commented 11 years ago

Ok, we'll see how it goes. Thanks a lot Mike for testing. After about 3 hours that's when our TPS started to drop. Weirdest thing.

mikeprimm commented 11 years ago

OK - cool - got an OOM reproduce (might have been having a decent set of world data, but we'll see). I'm at work now, but I've had it do a heap dump on the OOM condition, so I'll try to do some analysis on it tonight and see what is being leaked and why.

snake2332 commented 11 years ago

I am still having no problems and haven't tried adding WB into the mix. I even went in and set DynMap to use 4 threads. A full render was getting java.exe memory usage up to around 5.5GB. Prior to setting it to use all 4 cores, the mem usage would usually stay under 1.5GB during long render sessions. I don't think this is a leak though, right? This is just me allowing DynMap to use more resources...I think. I have my server set to 8GB max.

Anyway, good luck guys! If anyone wants to know my plugins & mods, let me know and I can compile a complete list with versions.

On Wed, Apr 3, 2013 at 8:12 AM, mikeprimm notifications@github.com wrote:

OK - cool - got an OOM reproduce (might have been having a decent set of world data, but we'll see). I'm at work now, but I've had it do a heap dump on the OOM condition, so I'll try to do some analysis on it tonight and see what is being leaked and why.

— Reply to this email directly or view it on GitHubhttps://github.com/webbukkit/dynmap/issues/1191#issuecomment-15838886 .

agaricusb commented 11 years ago

Can you try Mindcrack? I use Mindcrack 8.2 with MCPC-Plus build 244 (since it has grass growing whereas 245-248 do not).

Off topic (sorry) but the grass growth MCPC+ issue (along with a handful of other issues) has been fixed in the latest 1.4.7 recommended build, available here: http://mcportcentral.co.za/wiki/index.php?title=Mods_and_Plugins_for_1.4.7 @ThatDorkyGuy

ThatDorkyGuy commented 11 years ago

Yea thanks, I know of the legacy, I helped test for that as well as the ve3pool fix from Nallar. Thank you though. Just working on Dynmap now.

@mikeprimm - glad to hear you were able to reproduce. Can't wait to hear your thoughts. Thanks again for personally addressing this and working with me.

On Apr 3, 2013, at 11:33 AM, agaricusb notifications@github.com wrote:

Can you try Mindcrack? I use Mindcrack 8.2 with MCPC-Plus build 244 (since it has grass growing whereas 245-248 do not).

Off topic (sorry) but the grass growth MCPC+ issue (along with a handful kf other issues) has been fixed in the latest 1.4.7 recommended build, available here: http://mcportcentral.co.za/wiki/index.php?title=Mods_and_Plugins_for_1.4.7 @ThatDorkyGuy

— Reply to this email directly or view it on GitHub.

mikeprimm commented 11 years ago

OK, guys - give the latest development build of DynmapForge for v1.4.6/v1.4.7 a try (also update to latest DynmapCBBridge, if you're using that). Was able to get to root cause on the scenario I was able to reproduce with MindCrack + MCPC 244 + non-trivial map render - still testing the fix, but its looking very promising.

ThatDorkyGuy commented 11 years ago

@mikeprimm Awesome news Mike. I'm going to test that for you right now. I think of the volunteers here I was the only Mindcrack one. So I'll get this going right now and report back shortly. Glad I was able to help so far.

Just stating what I've done: Downloaded DynmapCBBridge for Forge v6.5.0/v6.6.0+ from (Latest Alpha/Pre-release Builds (1.6-alpha-3)) and Minecraft v1.4.7 with Forge v6.6.0+: Dynmap v1.6-alpha-3 from (Latest Development Builds) - I saw your update at 1:23AM so I knew I had the right one.

I've installed all of them in the correct spots, I've edited the config (just cosmetic stuff: like show player body etc; I didn't touch any of the render timing settings or anything of that nature), I've edited the world.txt to rename the World and rebooted server. I did also set the full render to not happen when 5 or more players are on the server (since I am testing on a live server).

I'll update again in a bit.

ThatDorkyGuy commented 11 years ago

Edited

Dynmap was working (as far as it showing on my iframe on my website etc;) but we didn't notice the bee/machine issue for about 30 minutes then a player started complaining about it. Once I rebooted (thinking it may have just been a glitch or something), the error stopped showing in the bootup, but all machines were still gone. We are working on reloading our backup right now.

mikeprimm commented 11 years ago

Your error looks like a corrupted plugin zip file.... specifically something that Forestry considers a plugin (not sure if that's an adapter for forestry to another mod, or something like the ExtraBees stuff). Don't really have a scenario where we could cause that, and my test servers have forestry, extra bees, and everything else that MindCrack and/or Ultimate would have.

ThatDorkyGuy commented 11 years ago

Right, but there are no plugin zip files. Lol there all jars. Weird.

On Apr 4, 2013, at 9:28 AM, mikeprimm notifications@github.com wrote:

Your error looks like a corrupted plugin zip file....

— Reply to this email directly or view it on GitHub.

mikeprimm commented 11 years ago

All JAR files are ZIP encoded.... Also, my use of 'plugin' is based on the term used in the Forestry code ( see forestry.plugins.PluginManager.loadPlugins(PluginManager.java:38) in the stack). Since its Forge stuff, its certainly relative to the 'mods' directory content, since forestry is unaware of bukkit plugins.

ThatDorkyGuy commented 11 years ago

Ok well we have no plugins that are for forestry or would do that and the only new file was the dynmapcbbridge file so perhaps it got corrupted somehow during the download or something.

On Apr 4, 2013, at 11:12 AM, mikeprimm notifications@github.com wrote:

All JAR files are ZIP encoded....

— Reply to this email directly or view it on GitHub.

mikeprimm commented 11 years ago

If you're on Linux, just run 'unzip -t ' on the various mods - especially any associated with the functions that broke (ExtraBees is tied to Forestry, so that's a good one to check). To test everything in your mods directory, you could run: for f in *.zip ; do unzip -t -q $f ; done

ThatDorkyGuy commented 11 years ago

Yeah unfortunately my server is hosted by a company and it's windows I think.

mikeprimm commented 11 years ago

Well, I'm telling you, you've got a broken mod file and it isn't one of ours - its something forestry related. The call is during the serverStart phase, and we don't even initialize until the serverStarted phase (which is after that....). Feel free to remove the Dynmap-1.6.zip and see if the exception still occurs.

mikeprimm commented 11 years ago

As for my test case MindCrack with MCPC+, its still running fine, having completed a hires fullrender on a quite large world (fully populated 5600 x 5600 square) with -Xmx1024M. Before, I was heap dumping with an OOM within 15-20 minutes.

ThatDorkyGuy commented 11 years ago

Ok, we finally got the server restored, I think it had something to do with me booting up the server with dynmap installed to initially get the config to show and all that, then stopping it to bring it back down, it may have corrupted a file. Regardless, we are now back online, restored, and dynmap is running. I'll keep you posted.

And FYI Mike, I wasn't blaming Dynmap like aggressively lol, I was just giving you a play by play. Also, I have edited my post with all those severe errors so that anyone else reading this doesn't think it's broken when it's not.

I got your back Mike =D trust me, we love Dynmap!

kencinder commented 11 years ago

The plugin would likely be NEI Plugins, which Forge complains about being present in the mod directory. I'ts not an error, and it does it's job as it should and couldn't possibly interfere with Dynmap. If that's not the file in question...just ignore me. :D

ThatDorkyGuy commented 11 years ago

So far so good, it's a paused render right now since we are over 5 players logged in, but no issues so far. 1 hour 37 minutes in. I'll keep updating throughout.

ThatDorkyGuy commented 11 years ago

Just got an OOM after alittle over 2 hours running (with a paused render).

2013-04-04 21:10:09 [SEVERE] java.lang.OutOfMemoryError: PermGen space 2013-04-04 21:10:09 [SEVERE] at java.lang.Class.getDeclaredConstructors0(Native Method) 2013-04-04 21:10:09 [SEVERE] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404) 2013-04-04 21:10:09 [SEVERE] at java.lang.Class.getConstructor0(Class.java:2714) 2013-04-04 21:10:09 [SEVERE] at java.lang.Class.newInstance0(Class.java:343) 2013-04-04 21:10:09 [SEVERE] at java.lang.Class.newInstance(Class.java:325) 2013-04-04 21:10:09 [SEVERE] at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399) 2013-04-04 21:10:09 [SEVERE] at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396) 2013-04-04 21:10:09 [SEVERE] at java.security.AccessController.doPrivileged(Native Method) 2013-04-04 21:10:09 [SEVERE] at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395) 2013-04-04 21:10:09 [SEVERE] at sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:94) 2013-04-04 21:10:09 [SEVERE] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:48) 2013-04-04 21:10:09 [SEVERE] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 2013-04-04 21:10:09 [SEVERE] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) 2013-04-04 21:10:09 [SEVERE] at java.lang.Class.newInstance0(Class.java:372) 2013-04-04 21:10:09 [SEVERE] at java.lang.Class.newInstance(Class.java:325) 2013-04-04 21:10:09 [SEVERE] at any.c(TileEntity.java:142) 2013-04-04 21:10:09 [SEVERE] at aam.loadEntities(AnvilChunkLoader.java:505) 2013-04-04 21:10:09 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:44) 2013-04-04 21:10:09 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:10) 2013-04-04 21:10:09 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:179) 2013-04-04 21:10:09 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:287) 2013-04-04 21:10:09 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:26) 2013-04-04 21:10:09 [SEVERE] at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:907) 2013-04-04 21:10:09 [SEVERE] at ho.r(DedicatedServer.java:309) 2013-04-04 21:10:09 [SEVERE] at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:857) 2013-04-04 21:10:09 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:744) 2013-04-04 21:10:09 [SEVERE] at fy.run(ThreadMinecraftServer.java:16) 2013-04-04 21:10:09 [SEVERE] Encountered an unexpected exception OutOfMemoryError java.lang.OutOfMemoryError: PermGen space at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404) at java.lang.Class.getConstructor0(Class.java:2714) at java.lang.Class.newInstance0(Class.java:343) at java.lang.Class.newInstance(Class.java:325) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:399) at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:396) at java.security.AccessController.doPrivileged(Native Method) at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:395) at sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:94) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:48) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at java.lang.Class.newInstance0(Class.java:372) at java.lang.Class.newInstance(Class.java:325) at any.c(TileEntity.java:142) at aam.loadEntities(AnvilChunkLoader.java:505) at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:44) at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:10) at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor$Task.finish(AsynchronousExecutor.java:179) at org.bukkit.craftbukkit.v1_4_R1.util.AsynchronousExecutor.finishActive(AsynchronousExecutor.java:287) at org.bukkit.craftbukkit.v1_4_R1.chunkio.ChunkIOExecutor.tick(ChunkIOExecutor.java:26) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:907) at ho.r(DedicatedServer.java:309) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:857) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:744) at fy.run(ThreadMinecraftServer.java:16)

mikeprimm commented 11 years ago

Any reason to believe its us, given that the render was paused? Its not like we keep allocating memory while we're paused.... and nothing on the call stack suggests us.

BTW, my stress test from last night is continuing to run like a champ - 19.9 tps, stable memory, after 3 fullrenders of a 5.6k x 5.6k world (hires templates - all 3 maps).