CPU Strikes Up Causes Lag When 2 GB Real Memory

Discussion in 'Bukkit Help' started by MGNick, Jun 3, 2011.

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

    MGNick

    Okay I dedicated 5gb memory to the server. Every time the server hits 2gb in real memory CPU strikes up causes Lag to occur enough to crash the server. What the hell? Anyone know whats wrong?

    Running on my iMac 27 inch 16gb ram internet speed is 100 down n 80 up.
     
  2. Offline

    Zaros

    Could we possibly get the craftbukkit build # and a list of plugins?
     
  3. Offline

    MGNick

    Oops sorry, build #818 plugins are: assign permissions, bananachunk, bigbrother, craftbook, daily bonus, essentials, heavenlymob, humiliation, iconomy, iconomychestshop, lwc, nocheat, odditem, permissions, playerinfo, spyer, tetris, weather control, world edit, world guard
     
  4. Offline

    ichingpow

    Essentials may be using a lot of memory, also once you switch to CommandBook, you don't need weather control. Tetris might also be using some extra resources.

    What do you launch the server with? I bet you aren't using garbage collection which is clogging up the ram.
     
  5. Offline

    MGNick

    Thanks for the reply I start it up like this: java -server -Xmx5120M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:parallelGCThreads=2 -XX:+AggressiveOpts -jar CraftBukkit.jar nogui

    If I have to dedicate more ram or change the way I start it up let me know thanks a lot
     
  6. Offline

    ichingpow

    Try:

    java -server -Xincgc -Xmx5G -Djava.net.preferIPv4Stack=true -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:parallelGCThreads=8 -XX:+AggressiveOpts -XX:+CMSParallelRemarkEnabled -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:TargetSurvivorRatio=90 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -Xnoclassgc -XX:UseSSE=3 -XX:permSize=128m -XX:LargePageSizeInBytes=4m -jar craftbukkit-0.0.1-SNAPSHOT.jar nogui

    Note: You may need to remove -server
     
  7. Offline

    MGNick

    gave me : Unrecognized option: -XXParallelGCThreads=8
    Could not create the Java virtual machine.
     
  8. Offline

    ichingpow

    Remove that then, Mac OSX comes with Apple's Java and it's no where near as good as the official Oracle Java. I suggest you install Ubuntu 64bit!
     
  9. Offline

    MGNick

    Code works now forgot ":" in some places
     
  10. Offline

    Arcaian

    Would that code also work for windows ?
     
  11. Offline

    ichingpow

    It is Java, it'll work on everything...
     
  12. Offline

    Arcaian

    Macs are wierd - It might have had something specificly for mac that wouldn't work on windows.
     
  13. Offline

    ichingpow

    It's not Macs, it's the Java that runs on it.
     
  14. Offline

    Zaros

    Depending on how many players you have, it might be nocheat. NoCheat checks a lot of things, and the more players the more lag. Big brother can also be a big resource hog if you have it logging a lot.
     
  15. Offline

    MGNick

    Ya we clean out the Big Brother database every time it hits around 4 million, but we do back them up. We have around 15-25 players on at a time.
     
  16. Offline

    anon

Thread Status:
Not open for further replies.

Share This Page