Server lags, ingame/console and players disconnet, corrupt map?

Discussion in 'Bukkit Help' started by Dodecha, Mar 13, 2011.

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

    Dodecha

    Hi, i'm running a minecraft server with a fairly large map, and recently the server has just startet laging, ingame and in console. Then players get disconnected and cant reconnect.

    It seems to be the map we've been using, as cb runs fine with a new map (for 48 hours now, and all plugins we use).
    The problem is that we spent many hours on this map: (link to last backup) http://map.thorcraft.no/minecraft.20110312-0000.tar.bz2

    We've tried several different builds since cb supported 1.3 with no luck, and even vanilla minecraft server, we get 10 minutes at the most, before the server lags, and clients disconnect.
    So i do understand that craftbukkit is not the issue here, but I'm humbly asking for your help, maybe some of you could download the map an take a look.

    Hardware specs:
    Intel(R) Xeon(R) CPU L5508 @ 2.00GHz
    4GB RAM
    Plenty of disk space

    Software:
    Ubuntu Server Linux minecraft 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 20:52:10 UTC 2011 x86_64 GNU/Linux
    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

    The map itself lies on a ramdisk of 1gb, we backup it every hour to a tar.bz2 directly of the ramdisk to a backup disk,
    the startup arguments are:
    java -Xms3072M -Xmx3072M \
    -Dcom.sun.management.jmxremote \
    -Dcom.sun.management.jmxremote.port=9004 \
    -Dcom.sun.management.jmxremote.ssl=false \
    -Djava.rmi.server.hostname=178.255.146.143 \
    -jar craftbukkit-531.jar

    We also tried different startup arguments, removing -Xms, changing it to 512, or 128, only difference is how long it takes to crash.

    The next thing i'm going to try is pruning the map with pymclevel, we tried 500 blocks off the edge with no luck, i'm going to prune more and more until, hopefylly, the map works.
     
  2. Offline

    alucart93

    iam currently downloading your map to try on my computer ;) but the download rate is ~40kb/s XD
    i will give my feedback in ~2h :p
    maybe its not the map^^
     
  3. Offline

    Dodecha

    Uh.. whats your location? Its on a pretty good connection, i get 450kbps. Its located in Norway.

    Thanks for the effort alucart93!

    As of now i'm trying another theory, using pymclevel i'm removing all redstone torches on the map.
     
  4. Offline

    tiwar

    i have a equally large map as yours,i will compare if it's any difference..currently dl is at 536kb/s
     
  5. Offline

    alucart93

    My location? Germany XD
    but i have already 54% :D
     
  6. Offline

    tiwar

    after testing this i did'nt experience any lag att all..altough i was alone in the map..
    but i just saw a airship caught on fire! =D
     
  7. Offline

    Dodecha

    heh, yeah i use Worldguard and have firespread disabled.

    At this moment, pymclevel gets killed after replacing redstonetorch with air around chunk 40000, i've pruned the map down to:
    World size:
    5024 north to south
    5616 east to west
    Smallest and largest points: (-1408,-2128), (3616,3488) which is 3000 blocks smaller on both x,z, axis

    I also cleared all warps/homes and userdata, so far the server has been up for almost 20 minutes, some small lag spikes here and there.
    Edit: Server still up and running with pruned map, but its a constant 3-4 second lag on everything, even console.

    tiwar: Wierd.. here it only takes minutes before things lag and die..
     
  8. Offline

    XeonProductions

    Maybe your upload speed is being throttled, are you running this server off a residential connection? Many ISPs are total douchbags about uploading.
     
  9. Offline

    Dodecha

    XeonProduction: No its a dedicated server at a hosting company, no limit on the connection.

    As of this moment we deleted all data in players/ subfolder of map, still running with no lag.

    It seems its a combination of corrupt regions and userdata: Tried loading old backup and deleting userdata, lag came back after 2 minutes and crashed the server.
     
  10. Offline

    TnT Retired Staff

    Try switching to this command instead:
    java -Xincgc -Xmx3072M etc...

    It changes up the garbage collection (you do not need the -Xms flag with the -Xincgc flag). I find unless you run the server with 10+ GB RAM, this is a good flag to use. Its helped me a lot with my server and decreasing lag.

    Can you post your server.log file too please?
     
  11. Offline

    xeology

    Try looking here, sounds similar!
     
  12. Offline

    Dodecha

    I just discovered that the server can be pretty stable until someone warps around, not that disabling warps fixes the problem, it just takes much longer for the freeze to occur.

    Heres a package with warp data (essentialswarp) if anyone cares to test: http://map.thorcraft.no/warps.tar.gz
     
  13. Offline

    tiwar

    i was on the map snooping around for maybe a hour and a half
    i came to some fortification with at tower far from city
    and after that i just quitted normally
    but i maybe need more time to test it..i get back to you

    nearly an hour playtime on your world now..and i used /jumpto command maybe 80 times now and it loads chunks slowly when leaping far..but thats my pc choking

    im using a server with 12gb ram what is the deal with "up to 10gb thingy?"

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  14. Offline

    TnT Retired Staff

    I mean, if you run the java process like this:
    java -Xincgc -Xmx12G etc... (note the 12G allocated to your java process - its that value I am referring to when I speak of 10+ GB)
    then you may want to think about swapping out the -Xincgc flag with different garbage collection flags. You can read up more on those flags here.
    Personally though, I'd switch to running Java 1.7 beta before swapping out my GC flags.
     
  15. Offline

    iiShaun

    I always get this error , Ive had to close my server and start fresh twice now :/
    Anyway to fix??
     
  16. Offline

    Dodecha

    We've actually given up on this map.

    We give the users the possibility of transfering their buildings if its nice enough.
    We run the old map on a test server, same issues there, as long as you walk one can move quite far, no problems with //jumpto command either. But the second you warp thins lag, and eventually freeze.
     
Thread Status:
Not open for further replies.

Share This Page