Is it my server or my crappy optimization?

Discussion in 'Bukkit Discussion' started by Phinary, Jan 15, 2012.

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


    I have been trying hard to optimize my server as much as possible, I also got some help from Nathan C for optimizing my mysql. This helped quite a bit but its not as good as I would like.

    Here are the server specs:
    AMD x2 250 Processor
    8gb ram
    500 GB harddrive
    Using a ramdisk for map
    Map limit is capped at 150mb (something like radius of 1500 blocks)
    only 1 world
    around 30-40 plugins.
    Java 7

    My tick rate is usually at about 19.85 - 19.95 TPS. (Using commandbook to find it, I also get the occasional message saying bukkit schedular is like 1 tick off or something)

    After I start up the server, it seems quite fast but once about 20 players log on it starts to feel a little more sluggish. Does anyone have ideas of how to optimize it or what the biggest factor of the lag would be caused from?

    Edit: Sorry, Just noticed that I posted this in the wrong section
  2. Offline


    CPU is too weak. You got enough ram for 100 players. But the cpu can't even nearly handle that.

    Get a faster cpu and your problems will go away.
  3. Offline


    If your server starts feeling sluggish but you still maintain a near-20 tick count, it's probably your connection.
    As long as your tick count stays near-20 it's not your CPU.

    Tick count being off by 1 is fine.

    To really be sure, when it starts feeling sluggish, get metrics from the server.
    How much CPU is it consuming, how much memory is it consuming, how much bandwidth, etc.
    Get some hard stats to work with.
  4. Offline


    Im using about 60-80% cpu usage when it starts to feel sluggish. Here is my startup script: Im guessing this script isnt optimized at all for my server, although I dont know the differences between things like AMD processors and intel ones.

    java -Xmx6G -XX:permSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+UseNUMA -XX:+UseLargePages -XX:MaxGCPauseMillis=55 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:UseSSE=3 -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+UseCompressedStrings -XX:+OptimizeStringConcat -XX:+AggressiveOpts -jar minecraft_server.jar

    I usually hover around 3-4gb ram usage.
  5. Offline

    Nathan C

    Use "top" and see what your CPU use is.

    If it is not at 100% during times when it "slows down", then it is not your CPU.

    Also, you forgot to mention that you are using SpoutCraft and not CraftBukkit, which I personally think is your issue. I have hosted 30 people with 20 TPS on a Core 2 Duo @ 2.2 Ghz with lots more intensive plugins that you have before........but that was with CraftBukkit. With the SpoutCraft, who knows how the performance is.
  6. Offline


    I have trouble with optimalization too. :-(

    My Server (AMD 2x 8Core 2.0 GHz , 32 GB DDR3 ECC) >
    MC VPS: 8x 2.0 GHz, 16GB RAM
    1-5 > 20 TPS
    6-10 > 14 TPS (WTF?)
    11-20> 8 TPS (WTF?)
    21 - more > 2 TPS (WTF?)
    Now 40 players -> 1.8TPS (WTF?)

    Here is my startup script:Here is my startup script:
    java -Xmx3G -Xms2048M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui
    +My plugin (without its TPS low too)
  7. Offline


  8. Offline


  9. Offline


    did u try the garbage collection? i start my server with
    java-Xincgc-Xmx3G-jar craftbukkit-1.1-R1-SNAPSHOT.jar nogui

    i run a lamp and dynmap all from the same $50 machine and it works fine. 4gig of ram. no idea what cpus sorry.
    EDIT: Ubuntu 11.04 amd64 , java 6.30 x64
  10. Offline

    Nathan C

    You probably can't get much better with yours.

    It is a VPS, meaning that all of your resources are shared, including your CPU. I doubt you can even get full access to one core.

    Although the best you could do is:
    Java 7 64 bit
    64 Bit Linux distro
    And this startup flag:
    java -Xmx10G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui
  11. Offline


    VPS is by VMware hypervizor and sharing CPU is disabled in settings and cores ale selected manually.
  12. Offline


    I also occasionally have an issue with blocks respawning. I run the server in a ramdisk, so would this be from me doing something wrong or can that just be caused by high ping or something? I live in canada and the server is in NL
  13. Offline

    Nathan C

    Ok and who is your host?

    If possible, give the link to the exact VPS package that you bought.
  14. Offline


    It's my own server (I created this VPS)
  15. Offline


    I never had good performance on a VPS (and I tried several). Sadly...
  16. Offline


    hey dude its me masphil98 what is your server ip me and 'vohan' where trying to find a server to play on before christmas but nothing came up. message me back the ip and other info thanks
Thread Status:
Not open for further replies.

Share This Page