TPS drop after a few hours

Discussion in 'Performance Tweaking' started by Electro2560, Apr 23, 2017.

  1. Timings:
    Code (Text):
    -Xmx8G -XX:+UseG1GC -XX:MaxGCPauseMillis=50 -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -server -jar ${jar}

    Latest spigot build is currently running.

    Dedi specs: 64GB ram, xeon E5-1630v4 @ 3.70GHz

    The server runs fine for a few hours, but 4 hours in at the time of taking those timings, the tps starts to drop. A second server running on this machine also has a very similar problem. I'm wondering if this could possibly be a memory leak. For around 5 seconds the CPU usage of this one server will be at ~100% but then jumps to 400-600% for 5 seconds. This appears to keep repeating over and over again on both servers.
    On stopping the server, the server also just hangs and does not complete shutting down. I always have to kill it. It just eats up all the CPU reaching peaks of 700%.
    After a restart, the CPU usage is at ~20% and the timings look like this.
    #1 Electro2560, Apr 23, 2017
    Last edited: Apr 23, 2017
  2. Gaxan


    Try disabling chest shops
  3. Nope, that's not it
  4. I used to have that problem with spigot and then i change to PaperSpigot and everything seems to be fine for me right now, my tps are alwats above 20.5 on paper, that might be your answer, also, everything is compatible.
    • Winner Winner x 1
  5. I've always been hesitant to use paper for some reason, but great idea! I won't know until I try it so it's worth a shot.
  6. Gaxan


    Now PEX is giving you issues.
    you can also use timings v2 to help more accurately pinpoint anybtps drops.
  7. Where can I get timings v2? I'm currently on the latest spigot release. Do I need to use paper for v2?
  8. WAS


    What is your entity count like?
  9. A restart just happened around an hour ago but currently there's ~500 entities and ~2000 tile entities. I'll need to check back in a few more horus to see if it increases a significant amount. Also in the timings I took yesterday when it was lagging, it says "
    Average Entities: 103.14 / 379.05 (27.21%)".
    • Agree Agree x 1
  10. Gaxan


    Yes you need to use paper for timings v2
    • Informative Informative x 1
  11. After 5 hours still ~500 entities, ~2000 tile entities and starting to lag again. Currently at 16.5 TPS, I'm now going to try a test on paper for a few hours now.
  12. WAS


    It looks like plugins are creating a lot of tasks (or tasks that are consuming a lot of resources). They are either piling up because of users entering new areas and commands, and or not being canceled correctly. If you look, NoCheatPlus is the biggest lag culprit, followed by EconomicModule and than Vault.

    It seems like EconomicModule is creating a lot of computation with Vault?