High CPU usage

Discussion in 'Bukkit Help' started by Frizzle, Sep 23, 2011.

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

    Frizzle

    1. What OS are you using (Brand and version - Ex. Windows XP SP3)?
    Windows Server 2008 R2
    System specs: VPS running 3 cores of Xeon X5550 @ 2.67GHz, 8GB RAM, 100Mbps network connection, RAID 5 harddrive.
    2. What architecture is the OS you are running (x64 or x86)?
    x64
    3. What version and architecture is your java install? (Type: java -version in command prompt.)
    java version "1.6.0_25"
    Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
    Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)
    4. Are you running any wrappers? McMyAdmin, mcadmin, Hamachi, etc?
    none
    5. What build of CraftBukkit are you running? (do NOT say latest. Say the build number.)
    Started with 1100 iirc, all the way to the current 1185.
    This server is running Craftbukkit version git-Bukkit-0.0.0-1067-g6301507-b1185jnks (MC: 1.8.1)

    6. What command are you using to run your CraftBukkit server?
    used that and
    7. What plugins are you running?
    all the plugins are the latest except when mentioned
    AdminCmd
    Authme
    Bigbrother (changed sql updates to 60second intervals instead of 4sec)
    DynamicEffectWhitelist
    Dynmap 1.2.2 (removed and problem remained)
    ExactSpawn
    HomeX
    iChat-p3
    iConomy (5)
    Jobs
    Minequery
    Multiverse and Multiinv (removed and problem remained)
    Permissions (most recent build)
    SignShop
    Tombstone
    Removed most of my plugins and still getting the issues.
    8. What error are you getting (post your server.log file)?
    Simply high cpu usage.
    9. What have you tried already?
    Removed most of the plugins and put them back since high cpu usage issue was not resolved.
    10. Have you tried any of the things below?
    Reinstalled java, changed startup command to (see 6)

    Note. This problem only started occurring with 1.8.1
    Ran 40+ users on 1.7.3 and cpu would sit at 10% (used exact setup and server as now).
    On 1.8.1:
    < 10 users, <10% cpu, 600MB-1.5GB RAM
    10-20 users, 10-20% cpu 600MB-1.5GB RAM
    20-60 users, 20-38% cpu. 1.5GB-3.5GB RAM
    RAM usage rarely goes above 2.5GB, which seems weird though, since max I allow is 5GB.
    World size is at around 1GB now.
    There is no lag whatsoever on the minecraft server, it's only the CPU that is worrying me.
    Tried using "NoLagg" and set chunkunloaddelay to 30 seconds but it did not make a difference to the cpu usage.

    Server log errors I get frequently:
    I get a few of these, related to Residence, Jobs, to BigBrother now and then
    I got a fair amount of these (at this time there were 30-40 users online) but only errors in the log I saw were the "Attempted to place a tile entity where there was no entity tile!" ones.
     
  2. Offline

    Frizzle

    Update
    Updated to iConomy 6, PermissionsBukkit, Residence 2.4, LogBlock (instead of BB).
    CPU issue is still there and I'm still getting the
    error, although only happening once.
     
  3. Offline

    Doidle

    2011-09-22 07:21:34 [INFO] Attempted to place a tile entity where there was no entity tile!
    This error is caused by putting new maps into your server, but this error is nothing fatal its just that it doesn't read the name of the map. But it will later on dissapear and you are still able to play the map when this error appears so d/w about that one.

    2011-09-22 13:49:13 [SEVERE] Could not pass event PLAYER_MOVE to Residence
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6
    at java.lang.String.charAt(String.java:686)
    at java.util.regex.Matcher.appendReplacement(Matcher.java:703)
    at java.util.regex.Matcher.replaceAll(Matcher.java:813)
    at java.lang.String.replaceAll(String.java:2189)
    at com.bekvon.bukkit.residence.listeners.ResidencePlayerListener.insertMessages(ResidencePlayerListener.java:351)
    at com.bekvon.bukkit.residence.listeners.ResidencePlayerListener.onPlayerMove(ResidencePlayerListener.java:266)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:286)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:180)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    Maybe you have the outdated one?
    And my advice to you is to drop residence because sofar I know its trash in my eyes.
    I would give a shot to Towny
    Its an old plugin, but it works fine.
    It also has permissions so give that a go please =)
     
  4. Offline

    xrobau

    Your problem is is that you ran a 40+ player server with no players on it. Even with the highest end servers now you can't run more than 10 players without pegging a core. I'm sorry - you're mistaken.

    In fact, Minecraft 1.8 has made SIGNIFICANT threading improvements, making it run a lot more efficiently on multicore machines.

    (I run the 64 player MCAU server on a dual-quadcore X5420, and that pegs one core as soon as 10 users are on - but with the same hardware on 1.7, we couldn't get more than 40 players on without it grinding to a halt)
     
  5. Offline

    Frizzle

    This was with 1.7.x
    [​IMG]
    Also 1.7.3, on 21 August. CPU usage was hovering on 15%.
    [​IMG]

    On 1.8.1 with this one,
    [​IMG]
    The CPU's were running at an average of 35% across 3 cores with 3GB RAM being used for MC.
     
Thread Status:
Not open for further replies.

Share This Page