Help with Server RAM

Discussion in 'Bukkit Help' started by playerkid101, Jul 19, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    playerkid101

    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.
     
  2. Offline

    Tallcraft

  3. Offline

    ImminentFate

    try reloading the server after? Or possibly a restart.
     
  4. Offline

    playerkid101

    Reloading ans restart empty the RAM, but it's not recommend to reload the server after every game!

    Sorry for wrong topic.
     
  5. Offline

    TnT

    Is garbage collection not cleaning it up?
     
  6. Offline

    playerkid101

    What is the garbage collection?
    Can you explain it, please?

    Thanks
     
  7. Offline

    ImminentFate

    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 :p
     
  8. Offline

    playerkid101

    Okay. How can i clean the RAM with it? Command example? Thats all what i now need. Thanks :)
     
  9. Offline

    Jamie Tees

    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.
     
Thread Status:
Not open for further replies.

Share This Page