Server hangs on shutdown

Discussion in 'Bukkit Help' started by NordicBlue, Nov 16, 2012.

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

    NordicBlue

    Hello,
    For a few versions of CraftBukkit I have the issue that during my scheduled reboot (which just stops the server, waits 30 seconds, and then starts it again), my server keeps hanging on the shutdown.
    The last lines before hanging are this:
    2012-11-16 18:10:11 [INFO] Saving players
    2012-11-16 18:10:11 [WARNING] DSCT: Socket closed
    2012-11-16 18:10:11 [INFO] Closing listening thread

    The console does not respond to anything, I have to kill java in order for it to shut down.
    Any idea what the cause might be?

    Currently running:
    WorldEdit/Guard, WorldBorder, Vault, Votifier, uHome, Stargate, ReportRTS, PermissionsEx, Nocheat+, Mv-Core, Mv-Inventories, LogBlock, Jail, iConomy, Herochat, Factions, Essentials, Dynmap, Duties, Chestshop, Cashflow.

    Latest version of Craftbukkit dev build.

    Regards,
    Nordic
     
  2. Offline

    TheBeast808

    How much time are you giving it? If you have a slow hard drive, it could be taking it a really long time to save all the files.
     
  3. Offline

    MyPictures

    Did you also check the memory usage of java when the console freezes?
     
  4. Offline

    NordicBlue

    I have left it like that for about 20 minutes a few times, doesn't do a thing.
    Sometimes it works right away, sometimes it hangs.
     
  5. Offline

    MyPictures

    Enable plugin profiling and test the timings on your server:

    It would also be very nice if you could test without plugins running. What your CB version by the way?
     
  6. Offline

    NordicBlue

    TOP output during hanging:
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    25577 root 20 0 10.8g 4.5g 12m S 114.5 29.2 348:34.06 java

    I have tweaked the java garbage collector some more (the invocation parameters), lets see if that helps.

    Craftbukkit build 2474

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
Thread Status:
Not open for further replies.

Share This Page