Spigot high CPU and low TPS

Discussion in 'Spigot Help' started by LudnicaKiller, Jun 11, 2019.

  1. I suppose your server have too much entities, try to decreace amount of spawning mobs or decreace entity-activation-range value in spigot.yml
  2. I have this:

    animals: 12
    monsters: 12
    misc: 6
  3. That's already decreaced, try to reduce the number of mobs
    UPD: also I'd recommend to clear dropped items more frequently
  4. ClearLagg plugin maybe?
  5. Never used it before, I mean reduce it in bukkit.yml settings
  6. bukkit.yml

    monsters: 70
    animals: 15
    water-animals: 5
    ambient: 15
    period-in-ticks: 600
    load-threshold: 0
    animal-spawns: 400
    monster-spawns: 100
  7. change to this
    Code (YAML):

    : 45
    : 15
    : 3
    : 5
    : 300
    : 300
  8. If lags still exists change view distance to 4-5 (if was higher) (not recommended for truly vanilla servers)
  9. I have view-distance on 4 for 3 years because of the lagg with 80players 13tps :p
  10. What are your hardware specs? VPS? Dedicated? Sounds to me like you need a hardware upgrade.
  11. Dedicated
    CPU: AMD Ryzen 1700X
    RAM: 32GB DDR4 ECC
    Disk: 2 x 256GB SSD RAID 1
    OS: Ubuntu 18.04
    #12 LudnicaKiller, Jun 12, 2019
    Last edited: Jun 12, 2019
    • Like Like x 1
  12. @NyanGuyMF @Soulwatcher now: https://timings.aikar.co/?id=0b2b6b9b56614dd6973bdfe871ceefec

    I have set next things:

    1. spigot.yml
    "nerf-spawner-mobs: false" to "nerf-spawner-mobs: true"

    hopper-transfer: 70
    hopper-check: 70
    hopper-amount: 32

    2. bukkit.yml
    monsters: 30
    animals: 8
    water-animals: 3
    ambient: 4

    period-in-ticks: 300
    load-threshold: 0

    animal-spawns: 400
    monster-spawns: 100
    autosave: 6000
  13. Much better, the number mobs reduced, but there are till a lot of entities. Dunno what is it exactly, but it may be droped items/frames/boats/arrows/minecarts etc. For example arrows can be reduced by
    paper.yml: non-player-arrow-despawn-rate: {number}
    paper.yml: creative-arrow-despawn-rate: {number}
    spigot.yml: arrow-despawn-rate: {number}
    • Friendly Friendly x 1
  14. A lot of players have big mob(IG, Blaze, Zombie, Creeper...)/cactus/melon/sugar cane farms and they're standing in AFK machines and items and mobs are droping all the time and I don't know how to reduce it. Maybe in ClearLag? http://prntscr.com/o0xr08

    And in spigot.yml I have: item-despawn-rate: 600

    Stats: http://prntscr.com/o0xtmt
  15. I think it's and important game mechanics for vanilla servers, ClearLagg will reduce profit of farms, you can change hoppers settings
    Code (YAML):
    # my settings
    :   hopper-amount: 3
    :     hopper-transfer: 24
    :     hopper-check: 24
  16. Also you may limit usage of hoppers by rules of server and force players set blocks on top of the hoppers (of hoppers that only transfer blocks) (I don't remeber which blocks will stop handle process of block above the hopper)

Share This Page