Lag randomly occuring

Discussion in 'Bukkit Help' started by ProjectInfinity, Nov 15, 2011.

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

    ProjectInfinity

    Hi, I am experiencing some rather odd lag.
    I'll try to describe this as exact as what I experience.

    Lag randomly occurs, it has no pattern nor does it matter how many people are on. When the lag occurs, nearly all cores are left unused and one of my cores spikes to 100% usage. That is when it lags, sometimes the cpu usage changes to another core, during this change lag decreases for half a second (enough time for chat to update once) and then continues.
    This is what HTOP reports during the lag:
    http://i.imgur.com/ZTnfD.png

    My startup script used to look like this:
    Code:
    java -Xms4G -Xmx22500M -verbose:gc -Xloggc:gc.log -XX:+AggressiveOpts -XX:+UseParNewGC -XX:ParallelGCThreads=4 -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -jar server.jar nogui
    it now looks like this:
    Code:
    java -server -Xms6G -Xmx21500M -verbose:gc -Xloggc:gc.log -jar server.jar
    I run CraftBukkit 1337 on Debian 6 with Java JDK 1.7 update 1.

    These are my plugins:
    Code:
    bpermissions.jar         InstaMode.jar           Multiverse-Core.jar     TownyChannel.jar
    ChannelChat.jar          LogBlock.jar            Multiverse-Portals.jar  Towny.jar
    ChestShop.jar            LogBlockQuestioner.jar  MyHome.jar              VanishNoPickup.jar
    ColoredSigns.jar         LWC.jar                 MyWarp.jar              Votifier.jar
    CommandBook.jar          mcbans.jar              NoCheat.jar             WorldBorder.jar
    CraftBook.jar            mChat-DEV.jar           ServerLogSaver.jar      WorldEdit.jar
    CraftBookMechanisms.jar  MCTelnet.jar            Silence.jar             WorldGuard.jar
    HelpPages.jar            Minequery.jar           SpamHammer.jar
    iConomy.jar              ModTRS.jar              SpawnBed.jar
    
    This is my gc.log:
    http://pastebin.com/ZXY1YCVq

    I have tried the following:
    • Decrease amount of GC flags being used
    • Remove bPermissionsWebGUI
    • Downgrade bPermissions to 1.8.2 (down from 1.8.2b)
    • Downgrade Multiverse-Core 2.1-b326 to 2.0-b279
    • Downgrade Multiverse-Portals 2.1-b295 to 2.0-b254
    • Downgrade Towny 0.77.1.3 to 0.7.1.0
    • Reset LogBlock consumer to default settings
    Now to my specs, this happens on a server with
    Intel Xeon W3520 processor
    24 GB RAM
    2x Intel SSD 320 in RAID 1
    1Gbit connection.

    it also happens on a server with
    Intel Core i7 920 processor
    24GB RAM
    1x 2TB SATA3 drive
    100Mbit connection

    everything was going fine the last 2 hours... now:
    http://i.imgur.com/OEf69.png
    Complete server halt until it switches core and starts spiking there as well.

    A more up to date GC log, it lags badly at the end:
    http://pastebin.com/RPjXCG3H
     
  2. Offline

    BCTsurvival

    To much plugins i gues?
     
  3. Offline

    ProjectInfinity

    No, I have narrowed it down to player file issues. I THINK. It happens when certain people log in. I am in process of restoring a old backup and copying the player files over to the up-to-date world. I will report back.
     
  4. Offline

    emericask8ur

  5. Offline

    ProjectInfinity

    I had larger issues when using it actually. Anyway, I fixed the issue.
    Turns out two or more player files were causing lag when the player in question attempted to log in.
    I don't know how but after merging my player files from a 5 day old backup, the lag has yet to occur.
     
  6. Offline

    emericask8ur

    Hmmm.. Glad you fixed it though :)
     
  7. Offline

    Vortico

    This is happening to me as well. It began today with an update of NoCheat and VanishNoPickup. It seems to affect players randomly, as you said, and my htop looks exactly like that.
     
  8. Offline

    ProjectInfinity

    I get it on a few players though, so theres still some trouble. But its much better than before.
     
  9. Offline

    Vortico

    I've checked the player.dat files of people that happen to login during the beginning of CPU peaks, but they look normal. I wonder if there's a real time profiler for Craftbukkit that would track down the plugin or class causing the most CPU cycles.
     
  10. Offline

    ProjectInfinity

    I was wondering the same, I haven't heard of one though.
     
  11. Offline

    Vortico

    [​IMG]

    Just for comparison.
     
  12. Offline

    ProjectInfinity

    After testing more, it happened again (after a complete player file wipe).. No idea what to do anymore. I have been dealing with this problem the last 4 and a half days now.
     
Thread Status:
Not open for further replies.

Share This Page