Hello. I have write a plugin with a friend. This plugin makes a new world after a pvp-round. Now its our problem, that any time, we generate a new world with this plugin, the server ram is going higher. We unload the old maps and delete them from the server. Code: if(oldmap != null){ Bukkit.getServer().unloadWorld(Bukkit.getServer().getWorld(oldmap), false); misc.deleteDir(new File(oldmap)); } Please help us. In the next time i'm not online many times, because we have holiday *-* greetings from germany.
I guess that's the wrong category for your problem, this one should be fine: http://forums.bukkit.org/forums/plugin-development.5/
Reloading ans restart empty the RAM, but it's not recommend to reload the server after every game! Sorry for wrong topic.
garbage collection is exactly like the truck that comes around every week to your house and collects your garbage. In minecraft, it gets rid of garbage floating around in memory space, so that it can be utilized better by tasks that actually need it. Many applications use some form of GC, otherwise they would get clogged up with useless stuff. It's pretty much a sweeper, which cleans up any debris that falls out of a Bukkit truck, so that another can use the road efficiently
Garbage Collection is a process done by Java, this isn't bukkit's thing so therefore you can't use a command to do it.