TPS problems + CPU cores usage question

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

Thread Status:
Not open for further replies.
  1. I'm not sure, but the problem in not in the cpu. It's either bukkit or plugins, and i somehow need to solve this :/ The thing is that cpu usage stays low, it's not laging, same for the ram, but tps starts dropping like crazy after 1-2 hours from last reboot with 100+ players.
     
  2. Offline

    midnightfang22

    What is your internet upload speed? Also, you could setup a recent backup and just switch everyone to that IP with the backup setup to be a live server. Then do some plugin testing. Once you are done, go back to the original/real server and none of the damage is left from the backup/testing server? Or, just take a backup, let the real server be the dummy, then rollback to the backup when done. Might make a few people mad when they get rolled back, but you can check the plugins then.
     
  3. 500 Mb/s both sides, it only uses ~1-5 Mb/s so it can't be internet problem. The thing is that all plugins are basicaly needed. I was wondering if any other servers are having similar issues with tps with 100+ players online. That can also be bukkit problem, because on 1.2.5 tps was always at 20.

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

    asyvan

    Most operating systems schedulers move single threaded applications between the cores constantly. So when you look at your CPU usage, you really can't see the single threaded application using 100% of one of the cores. But if you consider your 12 core CPU, one of the cores running at max is would be 8% on the average. And the increase to 12% is because other apps and operating system also use CPU, like Java.

    I would say you have a CPU problem. And the best solution to that for single threaded applications is more GHz (and newer generation CPU).
     
  5. Offline

    midnightfang22

    Take a backup of your entire server, then start debugging plugins. Give everyone a heads up that you will be rolling back the worlds/etc. to the backup later once you find the lag source. It will tick people off, but its really the only way for you to be able to check them. I use probably around 20% of those plugins, but we don't really have that kind of erratic TPS. There was one instance that I noticed the TPS hovering around 10-12 TPS, but only a few people were actually lagging. My character felt as if it was at 20.0 TPS so I have no idea what that was, but our node has been having issues lately, so can't rule that out for us. I'll list similar plugins later when I get time. I need to leave for a few hours in a bit.
     
  6. Offline

    Malo

    I am also having a similar problem, my server also has about 100 players on most of the day. My server runs out of memory, then the tps gets to like 1-5 until it restarts then happens again in 1-2 hours :/

    http://gyazo.com/5116ff788b2c2922ec7e046fa2852446
    plugins^

    My mem usage slowly drops from 5% used to 99% used
     
  7. I have created a few more minecraft servers. Via putty, when i type "top", it says ~15% cpu is in use ( in total with all cores ) and below I can see all minecraft windows/screens how ever they are called, and one of them is ~140% (that's 1.4 cores if im correct, not that it's one core with 100%, but it's a total amount combined). That means that everyting is okay with CPU. Even via vmware performance statistics with graphs i can see that all cores are in use at the same performance rate. Cpu is not overloaded, at all. Sorry for my bad English

    Edit: Cpu: Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz

    Atm we're only using one cpu, the other one is being shipped with new motherboard hopefuly next month.

    We have enough RAM, but it still after few hours starts dropping TPS. Did you notice this tps drop on 1.3?

    Edit: Looked in to your plugins, and if this tps problem is caused by a plugin, we have in common: Worldborder, Hidestream, Worldedit, Disguisecraft, Vault, Worldguard and Essentials.

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

    Malo

    well, i should have enough ram, as i have 10 gigs, as for plugins, i know it shouldn't be essentials, as almost every server uses it, and lots don't have problems, same with worldedit, worldguard. Vault i know i highly used.
     
  9. Offline

    TnT

    What build are you trying? Have you tried the latest dev build?
     
  10. Using 2365 dev build. Will try 2369 when I get back.
     
  11. Offline

    Mrchasez

    I am using latest 1.3.2-R0.2 dev build.
    I am running a Xeon 1230, With 16GB of ram and 200GB SSD.
    At around 45 Online our TPS drops to 10, at 60 it goes to 8TPS.

    This is soo bad, we didn't used to have these issues too long ago.
    We are usually using 23% of our CPU.
    Anyone have any ideas which plugins are causing this?
    Plugins:
    [​IMG]
     
  12. With the latest dev build it's much better. But after few more hours, tps starts dropping again, but sometimes goes up randomly.
     
  13. Offline

    alex_markey

    Alright, im the Owner of LavaCraft #1 server on MinecraftServers.org
    My server gets up to 250 players online and the TPS drop to ~8 after 1 Hour. I have tried everything and cannot manage to fix this issue. it has been since bukkit 1.3 has came out.

    The TPS do also randomly go up sometimes, Like it can change from 8TPS - 12TPS within a matter of seconds.
     
  14. Offline

    mmorton89

    Quick question, what does -XX:SurvivorRatio=19 -XX:TargetSurvivorRatio=90 do?
     
  15. Offline

    midnightfang22

    Kind of unnecessary with that first line..
     
  16. Offline

    Mrchasez

    Our TPS has wen't up a lot after a lot of Tweaks. For the first two hours of gaming the TPS is around 19 with 90 Online, and will drop down to 10 after two hours, no matter what the player base as long its over 25.

    I have tried everything aswell
     
  17. alex_markey

    Can you also list your plugins? We already know that 4 of us have these tps problems, and we all have a lot of players online while tps starts dropping, it might be plugin related.

    For our server, tps stays at 20 until ~100 players. Then it starts dropping and dropping, the lowest it go was around ~2 Tps, which was horrible.

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

    dno221

    same problem..
    15/30 player server
    after 12 hours cpu hits 25%(quad-core) and TPS starts to dip

    Code:
    java -server -Xms4G -Xmx8G -jar craftbukkit.jar nogui
     
  19. guys to really see whats going on run visualvm with jmx:
    http://visualvm.java.net/

    Download the ap. Make sure your are running JDK and throw this into your command lines:
    Code:
    -Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.port=9010
    -Dcom.sun.management.jmxremote.local.only=false
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false
    make sure you start mc with jdk and not plain old java.

    This will allow you to see if your heap is maxed out and causing your server to stutter and lag.
     
  20. Offline

    Donny

    How would someone set this up on linux (ubuntu 12.10) to run over ssh? I've googled around with no success.

    I have VisualVM on my pc and server. I added the arguments to my customopts. I'm assuming there is something I need to do to allow remote access to visualvm (from pc to server)
    I tried to connect through visualvm under JMX, but connect failed.




    Edit: Nevermind I got it. Thanx.
     
  21. also remember that no matter what wonderful command lines you come up with, ram leaks are possible. If you allocate all your ram then you are leaving no room for leaks.

    Obviously killing leaks is your first aim. So keep some space free for leaks. If you don't your system will grind to a nice slow tps.

    If you cant get visualvm working you can also spot ram leaks in putty. Just run top command and leave your test server running for a few hours. Even with no users online you will see ram usage increasing... Ta da ram leak.

    This can kill any server, 2g -> 128g
     
  22. Offline

    methos

    same problem with 64GB ram
     
  23. Offline

    lokpique

    Note to the wise.

    25% cpu load on a 4-core processor... means one thread could be running at 100%.
    12.5% on an 8-core... same thing.

    Bukkit really only uses one thread. Thank you.
     
  24. I see a lot of people saying their tps drop heavily after two hours. So I ran a few tests (tekkit based) and found that tekkit causes perm gen to steadily rise and never drop. Meaning that old classes and all the junk that gc doesnt clean is being held onto.

    This results in your available ram steadily dropping.

    Please please stop using command lines other people give you, research the topic. What works on their server will not always work on yours. To get yourself started on understanding gc and heaps and gens and junk:
    http://fedora.fiz-karlsruhe.de/docs/Wiki.jsp?page=Java Heap & GC Tuning
     
  25. dude im having the SAME problem,
    my server is lagging like hell.
    i made a thing like where you put repeaters close to eachother and they go arround
    anyway it was going super slow !
    and yesterday the server was fine :(

    pls help i need to get this server back up in 5 howers
     
  26. Offline

    nhadobas

    Don't want to be suggestive but maybe you should try out a custom build of bukkit that reduces lag. The name has something to do with sinks, but it really helps.
     
Thread Status:
Not open for further replies.

Share This Page