Lag with no evident cpu or ram overload

Discussion in 'Performance Tweaking' started by Kermo55, Mar 20, 2020.

  1. Hey!
    I own a minecraft server running on 1.14.4 PaperSpigot(latest version, git-Paper-236). The server has lag and tps is constantly low when having more than approx. 10 people online. We have tried optimising the server, but with little success. We have Survival and TntRun for gamemodes. We also have a seperate world for events and in total there are 7 active worlds. When we had 19 people online, tps was about 10.
    [​IMG]
    [​IMG]
    For our host we are using OmgServ. Unlimited RAM, ?GB disk space (according to the plan) and since “unlimited” doesn’t tell much, 29GB of RAM and 476.4GB according to Spark.

    Bukkit.yml config: https://pastebin.com/FBDYMaSW
    Spigot.yml config: https://pastebin.com/dHsF8Czz
    Paper.yml config: https://pastebin.com/A5EQ6ySG
    server.properties config: https://pastebin.com/vdYvZQuZ
    Timings (during lag, approx. 19 people online): https://timings.aikar.co/?id=a71ae60ccf6343c796cc1ebe8c1afdcf, (usual, approx. 5-6 people online) https://timings.aikar.co/?id=3543212fba934ff3b72cde1f1b05c0eb.
    Spark: https://sparkprofiler.github.io/#HgYSUhuIfJ

    Has anyone experienced something like this and knows what could help?

    EDIT: We upgraded server to PaperSpigot 1.15.2 and now timings: https://timings.aikar.co/?id=46dea5fa618b4e218fb2f20c0f26f6bc and 15 players online: https://timings.aikar.co/?id=d00b0347c181499aac0ba9b4507674e4 (http://prntscr.com/rkrbw4).
    We probably have the Intel Xeon E5-2670.
     
    #1 Kermo55, Mar 20, 2020
    Last edited: Mar 22, 2020
  2. What specs are the CPU and anything you can gather about?

    Edited: The biggest two issues are AuthMe and QuantumShop.

    Then there is your "VillagerOptimiser" which is causing lag by updating entities through nms.
     
    • Like Like x 1
  3. I would recommend upgrading to 1.15.2 if at all possible, make backups of everything prior to upgrading and to test to make sure it works.

    The only conclusion I can draw is it has to be a CPU issue. I tried searching their website, but it was sparse of information. Are you on a dedicated server? I suspect you're probably sharing one with others. Just because it says CPU usage is 65% also doesn't mean it's not a CPU issue, as it could be accounting for all threads, however Minecraft runs mostly single-threaded, which is why I think it could be a CPU issue.

    Also as a side note, you shouldn't dedicate so much RAM to the server. Something like 16GB should be enough and shouldn't go beyond unless you need to.
     
    • Like Like x 1
    • Agree Agree x 1
  4. #4 Kermo55, Mar 22, 2020
    Last edited: Mar 22, 2020
    • Like Like x 1
    • Agree Agree x 1
  5. Hey! Which host would you recommend? And how much RAM (server uses ca 4-5gb ram)? Players in Estonia, so it should be somewhere in Europe.
     
  6. JugadorNinja

    Supporter

    Most likely your provider is stacking up their servers with a bunch of servers. Without a good balance, the CPU can struggle to keep your server running normally. You can use a SoYouStart Dedi or find another hosting provider such as Server.Pro which has good CPUs for their higher tears.
     
  7. The problem is not the hosting, I host my own servers on propper datacenter boxes and you can't have 20 players without tps going to 8 or lower.. It's a problem with the spigot / paper, everyone is complaining about the same on good systems, please someone help out, having the server with all of the optimizations does nothing.
     
    • Informative Informative x 1