TPS problems + CPU cores usage question

Discussion in 'Bukkit Help' started by simuciokas, Sep 22, 2012.

Thread Status:
Not open for further replies.
    • Ram question
    • TPS droping problem
    • Cpu question
    Ram question:
    I own a dedicated server with 128GB RAM, I use this command for launching minecraft server:

    screen -S minecraft java -Xmx50G -Xincgc -jar craftbukkit-dev.jar

    When i run /gc command with ~130 players online
    13:55:04 [INFO] Current TPS = 20.0
    13:55:04 [INFO] Maximum memory: 51,179 MB
    13:55:04 [INFO] Allocated memory: 400 MB
    13:55:04 [INFO] Free memory: 131 MB
    13:55:04 [INFO] World "world": 3293chunks,147entities

    Does that mean it can only use 531 MB (allocated + free memmory) of RAM? I'm a bit confused.
    Using linux x64 bit

    ===================================================================
    Cpu question:
    Dedicated server have 1cpu atm, with 12 cores. From the performance monitor, i can see that all cores are being used at the same ~ %. I have heard that bukkit only uses 1 core, how come? It seems that it's runing with all cores, all 6 minecraft servers are on the same virtual machine.
    ===================================================================
    TPS problem:
    After runing a minecraft server for 1-2 hours since last reboot, tps starts dropping, it goes down to 2-13

    Edit: Chunks. Atm we're using view distance: 3, after reboot tps stays at 20TPS and starts dropping after 1-2 hours, if increase view distance to 7, after reboot only ~18 TPS and drops faster, does that mean it's chunks problem?
     
  1. Offline

    jacklin213

    128gb RAM holy moly

    Edit: nvm
     
  2. Offline

    midnightfang22

    It means that out of your 51,179MB that you allowed your server to take, your server has reserved 400 MB of it for use at the moment. However, your server is only using 269MB of that 400 MB. Once it needs more, it will add more allocated RAM for your server to use. Basically,
    Maximum Memory = The highest possible amount your server can use.
    Allocated Memory = How much your server has actually taken out of your max for use right now (so it doesn't take ALL of the max ram unless its needed)
    Free Memory = Allocated RAM - RAM your server is using. So, at that moment your server is actually using 269 MB out of the 400 allocated memory, out of the maximum memory of 51,179MB.
     
    Malo likes this.
  3. So everything with RAM should be okay? Because after minecraft server is runing for ~1-2 hours, TPS drops to 14-15. Other server with ~40-50 online players stay at 20 TPS, so it should be a problem with plugins I guess?

    Edit: 181 players online right now, TPS:
    15:59:34 [INFO] Current TPS = 10.213499
    15:59:34 [INFO] Maximum memory: 51,179 MB
    15:59:34 [INFO] Allocated memory: 1,176 MB
    15:59:34 [INFO] Free memory: 470 MB
    15:59:34 [INFO] World "world": 4942chunks,370entities
     
  4. Offline

    midnightfang22

    I have no idea about the lag issue, but ram seems to be okay I guess. I highly doubt you are lagging from lack of ram available, but maybe try adding more minimum ram to the startup and see if it is still lagging? It might be a plugin going wacky too.
     
  5. Like this: " screen -S minecraft java -Xmx50G -Xms5G -jar craftbukkit-dev.jar " ?

    Edit: Any ideas how to find which plugin might cause tps drops?
     
  6. Offline

    nala3

    simuciokas
    Don't use -Xincgc try something more like "-server -Xms100M -Xmx50G"

    EDIT: or if you really want to be a tweaker,
    Code:
    "-Xmx50G -Xms100M -server -XX:+DisableExplicitGC -XX:+CMSParallelRemarkEnabled -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XXarallelGCThreads=4 -XX:SurvivorRatio=19 -XX:TargetSurvivorRatio=90 -XX:MaxGCPauseMillis=500"
     
  7. nala3

    Rebooted mc server, launched with this command "screen -S minecraft java -Xmx50G -Xms100M -jar craftbukkit-dev.jar"

    114 players online
    16:10:57 [INFO] Current TPS = 20.0
    16:10:57 [INFO] Maximum memory: 45,511 MB
    16:10:57 [INFO] Allocated memory: 964 MB
    16:10:57 [INFO] Free memory: 400 MB
    16:10:57 [INFO] World "world": 3180chunks,185entities

    Will reply in ~30 minutes again about TPS. Before using that command you suggested, what those tweaks do?
     
  8. Offline

    nala3

    simuciokas they change the way the Java VM handles garbage collection. You can see descriptions of most of the flags here
     
  9. nala3 Will those flags work with jre1.6.0_35 ? I'm new to linux os. What i'm confused about is that server is runing fine for a few hours (sometimes less), then tps starts dropping, so it shouldn't be plugins problem? Runing only 28 plugins. All entities are being removed every 20 minutes with Nolagg plugin: "/nolagg clear all"
     
  10. Offline

    nala3

    Ehh they may, but if not, you can and really should use Java 7. Yes it could be a plugin causing the problem, what ones do you have?
     
  11. Bukkit have some problems with 1.7. Was runing a server with 1.7, console was just freezing, horrible lag. Switched to 1.6, everything ran like a charm.
     
  12. Offline

    nala3

    Interesting, I have never had problems with 1.7 :p
     
  13. Might be because we have 100+ players online? Anyways, will see if TPS drop after an hour, then will try that new start up command and if that still doesn't work. I have no ideas what to do :/

    nala3 After runing minecraft server for ~ 1 hour with "screen -S minecraft java -Xmx50G -Xms100M -jar craftbukkit-dev.jar", currently 154 players online:

    17:03:54 [INFO] Current TPS = 12.121212
    17:03:54 [INFO] Maximum memory: 45,511 MB
    17:03:54 [INFO] Allocated memory: 2,489 MB
    17:03:54 [INFO] Free memory: 194 MB
    17:03:54 [INFO] World "world": 4228chunks,246entities

    Tried using your suggest launch command on test server:
    screen -S minecraft java -Xmx50G -Xms100M -XX:+DisableExplicitGC -XX:+CMSParallelRemarkEnabled -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XXarallelGCThreads=4 -XX:SurvivorRatio=19 -XX:TargetSurvivorRatio=90 -XX:MaxGCPauseMillis=500 -jar craftbukkit-dev.jar

    Error:
    [screen is terminating]
    Which should mean something is wrong in the command line, right?

    Edit:

    17:28:44 [INFO] Current TPS = 2.153902
    17:28:44 [INFO] Maximum memory: 45,511 MB
    17:28:44 [INFO] Allocated memory: 1,928 MB
    17:28:44 [INFO] Free memory: 630 MB
    17:28:44 [INFO] World "world": 5027chunks,359entities

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

    midnightfang22

    Maybe list your plugins too so that those can either be ruled out or not?
     
  15. Plugins (28): WorldBorder, HideStream, GroupManager, WorldEdit, NoCheatPlus, SpamStop, tce, SimpleAutoAnnouncer, BOSEconomy, Vault, PlotMe, WorldGuard, ColoredTablist, AntiGuest, DisguiseCraft, PaidRanks, Permissions, LimitedCreative, BKCommonLib, Votifier, MobEggs, Essentials, Citizens, EssentialsProtect, EssentialsSpawn, NoLagg, EssentialsChat
     
  16. Offline

    midnightfang22

    Actually, try using NoLagg's testing feature (I can never remember the name of it) to see which plugin is taking the most resources and so on. After that, try disabling NoLagg and test it? That plugin can sometime cause more harm than good depending on your bukkit version and NoLagg's version.
     
  17. Same problems were happening without nolagg actually. I have read that testing geature is buggy.

    Bukkit version:
    This server is running CraftBukkit version git-Bukkit-1.3.2-R0.1-12-ga6af49c-b2365jnks (MC: 1.3.2) (Implementing API version 1.3.2-R0.2-SNAPSHOT)

    And latest nolagg version

    Also some stuff i edited in bukkit.yml:
    ticks-per:
    animal-spawns: 0
    monster-spawns: 0
    autosave: 0

    And serverproperties:
    snooper-enabled=false
    view-distance=3

    Can this be the problem?
     
  18. Offline

    Necrodoom

    heard view-distance below 7 doesnt work well, not sure though.
     
  19. Rebooted minecraft server with view distance 7, 192 players online:
    18:22:54 [INFO] Current TPS = 13.293652
    18:22:54 [INFO] Maximum memory: 45,511 MB
    18:22:54 [INFO] Allocated memory: 2,489 MB
    18:22:54 [INFO] Free memory: 517 MB
    18:22:54 [INFO] World "world": 16151chunks,473entities

    A big increase in chunks, decrese in tps : 13, it used to be 20 after reboot with distance 3
     
  20. Offline

    TNTUP

    wow 128Gb ram O_O I never seen that in my life! You deserve that :p
     
  21. Offline

    midnightfang22

    How many people have access to disguisecraft? I heard somewhere that if too many people are disguised at once, it can cause lag issues since it takes up a lot of resources.
     
  22. Only few players are online that have acess to disguises. I'm thinking about Essentials plugin.
     
  23. Offline

    Sushi

    A note on Java 7, you should actually get better performance using it because it has a superior garbage collector to Java 6.
     
  24. I was getting quite a few error messages, i guess plugins didn't support Java 7, and console screen was laging like hell, typing a command and it would add like one letter per second. Stopping server was almost impossible.
     
  25. Offline

    Necrodoom

    never had it lag the server. my issues were more caused by region/logging protection plugins.
     
  26. Well i can't remove protection plugins. The whole world would be griefed, that's the major plugin. All i can see right now, that tps depends on chunks loaded.

    bump

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

    MikeA

    Mind me asking what CPU you use?
     
  28. There's no problems with CPU, it's on average at 8-12%
     
  29. Offline

    MikeA

    Ah, so an E5 model?
     
Thread Status:
Not open for further replies.

Share This Page