High Bukkit CPU usage

Discussion in 'Bukkit Help' started by Zachar543, Sep 22, 2011.

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

    Zachar543

    1. OS: CentOS5.7
    2. Arch: x64
    3. Java:
    Code:
    java version "1.6.0_20"
    OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6-x86_64)
    OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
    
    4. Wrapper: None
    5. Bukkit: 965-1173
    6. Command: Have Tried:
    • java -Xms512M -Xmx1536M -jar craftbukkit.jar
    • java-Xms512M -Xmx1536M -Xincgc -jar craftbukkit.jar
      • java -Xms512M -Xmx1536M -XX:permSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:parallelGCThreads=1 -XX:MaxGCPauseMillis=50 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -Xnoclassgc -XX:UseSSE=3 -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+AggressiveOpts -jar craftbukkit.jar
    7. Plugins:
    Code:
    mcbans            : 3.0
    WorldEdit         : 4.6
    BlockHat          : 1.5
    iConomy           : 5.01
    WorldGuard        : 5.2.2
    Redeemer          : 1.0
    ColoredSigns      : 1.1
    LogBlockQuestioner: 0.02
    RetractableBridge : 1.3.7
    MobDisguise       : 1.62
    PorteCoulissante  : 1.2.2
    Permissions       : 3.1.5
    CommandBook       : 1.5.2-customized
    BorderGuard       : 4.11
    iChat             : 2.3.3-p3
    LogBlock          : 1.26
    LWC               : 3.5
    8. Wrapper: None
    9. Tried: I have tried almost everything... No plugins, Vanilla, running on VirtualPC, running on Home PC, ...
    10. Tried (in list): Everything in list (It happens in Bukkit and default minecraft. I know this is the Bukkit help section, but I have tried many places and hope that someone here can lead me to a fix.)

    I am experiencing very high CPU usage for Vanilla and Bukkit servers. I am getting around 60-100% CPU usage (1 core of a i7 3.0 Ghz)(Happens on virtualized Servers(Xen, VirtualBox)) with 4 people online. The CPU usage of the server when it is empty seems to be around 10%. And seems to increase by 10-15% per player that is online. I have tried almost everything. When I tested an exact copy of the server on my home PC the CPU usage seemed much lower. (for the core Bukkit is running on) I have tried it on my VPS and on a VirtualBox running on my home PC. When running the server on the VirtualBox the CPU usage seems very high. I know this isn't normal. I have heard of many people with this problem. I see many server with similar hardware hosting 30+ people. How would mine get this bad?
     
  2. Offline

    virus33

    Why so complicated?
    Code:
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -DruFixConsole="Cp866" -DruFixLogFile="Cp1251" -jar craftbukkit.jar
    PAUSE
    -DruFixConsole="Cp866 - To display the console to another encoding
     
  3. Offline

    Zachar543

    Code:
    6. Command: Have Tried:
    
    * java -Xms512M -Xmx1536M -jar craftbukkit.jar
    * java-Xms512M -Xmx1536M -Xincgc -jar craftbukkit.jar
    * java -Xms512M -Xmx1536M -XX:permSize=128m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:parallelGCThreads=1 -XX:MaxGCPauseMillis=50 -XX:+UseAdaptiveGCBoundary -XX:-UseGCOverheadLimit -XX:+UseBiasedLocking -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -Xnoclassgc -XX:UseSSE=3 -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+AggressiveOpts -jar craftbukkit.jar
    
    
    I have tried all 3. This does not help. Also, I am not on windows, I am CentOS5.7. (That is Batch)

    Do you have a VPS or Dedicated?

    It's nice to see I'm not alone in this issue and that it isn't because of "slow hardware."

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

    tyzoid

    @Zachar543
    It looks like a problem with your virtual machine.
    Virtual machines are, by nature, slow. It requires a program to process OS code to run on an OS to get to the CPU.
    There are a lot of processor-heavy computations going on in virtual machines.

    I would recommend not using the virtual machine. My server runs fine on an old Pentium IV.
     
  5. Offline

    cruisecho


    A 100Mbit upload connection would cost me around $3000 per month at home. :( I have plenty of computers, but no bandwidth.

    Maybe another flavor of linux would run better?
     
  6. Offline

    rmb938

    The VM is your problem. Also why are you using a VM to host a minecraft server. Personally I believe that is stupid.
     
  7. Offline

    Zachar543

    @rmb938 @cruisecho Thanks for this information. I did not know that it was not wise to host Minecraft servers off of a VPS.
     
Thread Status:
Not open for further replies.

Share This Page