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.07k stars 426 forks source link

[bug] "fullrender" of big maps eventually leads server to crash #1217

Closed WoAnerges closed 11 years ago

WoAnerges commented 11 years ago

The pattern is always the same:

2013-04-04 02:47:58 [INFO] Full render of map 'surface' of 'world' in progress - 55000 tiles rendered (172.50 msec/tile, 56.00 msec per render) 2013-04-04 02:49:33 [INFO] Read timed out 2013-04-04 02:50:08 [INFO] Read timed out 2013-04-04 02:50:51 [INFO] Read timed out

CraftBukkit version git-Bukkit-1.4.7-R1.0-83-gb08af02-b2723jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.1-SNAPSHOT) dynmap version 1.6-643

mikeprimm commented 11 years ago

Need more info - this is running on a LOT of servers with that bukkit version without similar issues being reported. What other plugins are present?

WoAnerges commented 11 years ago

Server uses 15GB of memory of 16 possible. Just wanted to ask to make the code a little bit cleaner. Server does not have any mods, just standard plugins, worldguard, groupmanager, essentials, towny, multiverse-core. That is basically it. Nothing fancy.

mikeprimm commented 11 years ago

Nothing to do with that - all of our testing is done with only 1GB of heap (-Xmx1024M), and we render multi-gigabyte test maps without issue. JVMs will use as much memory as you give them, so long as someone is allocating it and releasing it - loading chunks to render will do that, but the GC will clean it up when free memory is needed.

The Read TImed out you mention above isn't a memory issue - and there isn't anything in particular there that would implicate us: the read time outs almost always mean that there is a hang of something on the server thread (which would cause our renders to hang too, since getting the chunks for rendering needs to be done on that thread too). If you get another condition like that, grab a thread dump to see what state the threads are in.

WoAnerges commented 11 years ago

can you provide me with some links where I can learn how to get a thread dump?

mikeprimm commented 11 years ago

http://helpx.adobe.com/cq/kb/TakeThreadDump.html

WoAnerges commented 11 years ago

This is the output: http://pastebin.com/8gZErGZ0 It's some error though. Should it be like that?

mikeprimm commented 11 years ago

Those look like exceptions from trying to use JStack - never have used that tool, so cannot say.