Spigot server 1.14.4 lag problems

Discussion in 'Performance Tweaking' started by Sir-Aza, Sep 10, 2019.

  1. Hey,

    I run a Minecraft spigot server 1.14.4 with a few plugins on a dedicated server. Globally the server runs well under 20 players with a few small lags but big lag spikes appear above that it even disconnects players sometimes. I don't think the power of the server is the cause.

    Some help would be really appreciated here since i have been trying to solve this situation for days :/
    Any help is welcome :)

    Here are some infos :

    Dedicated server specs :
    Intel Xeon E5-1620 V4 3.50Ghz
    32Gb Ram
    2 To HDD
    Connection : 1Gb up and 1Gb down

    i have pre-generated a map on world border plugins with size 10000

    Server timings : https://timings.spigotmc.org/?url=koqihofogi

    startup infos :
    -Xmx15360M -Xms6144M -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=45 -XX:TargetSurvivorRatio=90 -XX:G1NewSizePercent=40 -XX:G1MaxNewSizePercent=60 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=50 -XX:+AggressiveOpts -XX:LargePageSizeInBytes=2M -XX:+UseLargePages -XX:+UseLargePagesInMetaspace

    Java version : Java 8 221 x64-x86

    Server.properties file :
    #Minecraft server properties
    #Tue Sep 10 18:32:25 CEST 2019
    spawn-protection=16
    max-tick-time=60000
    query.port=25565
    generator-settings=
    force-gamemode=true
    allow-nether=false
    enforce-whitelist=true
    gamemode=survival
    broadcast-console-to-ops=true
    enable-query=false
    player-idle-timeout=0
    difficulty=normal
    spawn-monsters=true
    broadcast-rcon-to-ops=true
    op-permission-level=4
    pvp=true
    snooper-enabled=false
    level-type=largeBiomes
    hardcore=false
    enable-command-block=true
    max-players=40
    network-compression-threshold=512
    resource-pack-sha1=
    max-world-size=29999984
    function-permission-level=2
    rcon.port=25575
    server-port=25565
    debug=false
    texture-pack=
    server-ip=178.170.62.108
    spawn-npcs=true
    allow-flight=false
    level-name=Aza_World
    view-distance=5
    hellworld=false
    resource-pack=
    spawn-animals=true
    white-list=true
    rcon.password=blockytrees
    generate-structures=true
    max-build-height=256
    online-mode=true
    level-seed=
    use-native-transport=true
    prevent-proxy-connections=false
    enable-rcon=false
    motd=Aza World

    Spigot.yml file
    config-version: 12
    settings:
    late-bind: false
    debug: false
    save-user-cache-on-stop-only: true
    bungeecord: false
    netty-threads: 4
    sample-count: 12
    user-cache-size: 10000000
    timeout-time: 60
    restart-on-crash: true
    restart-script: ./start.sh
    player-shuffle: 0
    moved-wrongly-threshold: 0.0625
    moved-too-quickly-multiplier: 200.0
    attribute:
    maxHealth:
    max: 2048.0
    movementSpeed:
    max: 2048.0
    attackDamage:
    max: 2048.0
    messages:
    whitelist: Votre nom n'est pas sur la Whitelist !
    unknown-command: Commande inconnu. Ecrivez "/help" pour vous aider.
    server-full: Le Serveur est Plein !
    outdated-client: Votre version du jeu est trop ancienne! Veuillez utiliser la version
    {0}
    outdated-server: Votre version du jeu est plus récente que celle du serveur! Le
    serveur utilise la version {0}
    restart: Le Serveur Reboot
    stats:
    disable-saving: false
    forced-stats: {}
    commands:
    replace-commands:
    - setblock
    - summon
    - testforblock
    - tellraw
    log: true
    spam-exclusions:
    - /skill
    tab-complete: 0
    send-namespaced: true
    silent-commandblock-console: false
    advancements:
    disable-saving: false
    disabled:
    - minecraft:story/disabled
    world-settings:
    default:
    verbose: true
    view-distance: default
    nerf-spawner-mobs: true
    wither-spawn-sound-radius: 0
    arrow-despawn-rate: 300
    item-despawn-rate: 6000
    enable-zombie-pigmen-portal-spawns: true
    zombie-aggressive-towards-villager: true
    dragon-death-sound-radius: 0
    seed-village: 10387312
    seed-desert: 14357617
    seed-igloo: 14357618
    seed-jungle: 14357619
    seed-swamp: 14357620
    seed-monument: 10387313
    seed-shipwreck: 165745295
    seed-ocean: 14357621
    seed-outpost: 165745296
    seed-slime: 987234911
    hanging-tick-frequency: 100
    hopper-amount: 3
    mob-spawn-range: 3
    max-entity-collisions: 1
    max-tnt-per-tick: 10
    merge-radius:
    item: 4.0
    exp: 6.0
    entity-activation-range:
    animals: 6
    monsters: 16
    raiders: 24
    misc: 4
    tick-inactive-villagers: false
    entity-tracking-range:
    players: 32
    animals: 16
    monsters: 24
    misc: 4
    other: 24
    ticks-per:
    hopper-transfer: 24
    hopper-check: 24
    growth:
    cactus-modifier: 100
    cane-modifier: 100
    melon-modifier: 100
    mushroom-modifier: 100
    pumpkin-modifier: 100
    sapling-modifier: 100
    beetroot-modifier: 100
    carrot-modifier: 100
    potato-modifier: 100
    wheat-modifier: 100
    netherwart-modifier: 100
    vine-modifier: 100
    cocoa-modifier: 100
    bamboo-modifier: 100
    sweetberry-modifier: 100
    kelp-modifier: 100
    squid-spawn-range:
    min: 45.0
    max-tick-time:
    tile: 1000
    entity: 1000
    hunger:
    jump-walk-exhaustion: 0.05
    jump-sprint-exhaustion: 0.2
    combat-exhaustion: 0.1
    regen-exhaustion: 6.0
    swim-multiplier: 0.01
    sprint-multiplier: 0.1
    other-multiplier: 0.0

    Bukkit.yml file
    settings:
    allow-end: false
    warn-on-overload: true
    permissions-file: permissions.yml
    update-folder: update
    plugin-profiling: false
    connection-throttle: -1
    query-plugins: true
    deprecated-verbose: default
    shutdown-message: Server closed
    minimum-api: none
    spawn-limits:
    monsters: 50
    animals: 10
    water-animals: 3
    ambient: 4
    chunk-gc:
    period-in-ticks: 300
    load-threshold: 300
    ticks-per:
    animal-spawns: 400
    monster-spawns: 4
    autosave: 0
    aliases: now-in-commands.yml

    Whats the limits of this server for minecraft ?
    Would returning to 1.12 help a lot ? what gain will i get ?

    Thanks for your help and time all ;)
     
  2. Okay, I do not know the answer to your question, sadly, but I must ask, how many players does this server get? 32Gb or even 16Gb seems quite plentiful for a player running < 20 players. :p
     
  3. From the hardware side of things & your timings report... Your players should not be lagging. It could be something internet related because your timing shows 0 issues of lag.
     
  4. I dont have a limit ! for the moment i went for 50 slots as i try to keep 10 slots free at any time but we get as high as 27/30 people and then it starts leaving cause of rollbacks and lags :/

    It's really once in a while, everyone just can't interact with anything or pick up stuff for 10 secondes at best and some get disconnected or even worse the server just crashes thats rare tho :/ I ll try to get timings of the moment tomorrow :)

    Thanks for replies ;)
     
  5. your broadcasting plugins make you lag
     
  6. Hey ;)
    thanks for the answer but what do you mean exactly by "Broadcasting plugins" ?
     
  7. do you have a plugin that shows a message in chat?
     
  8. It depends on how many plugins you have installed
    NOTE: In Xms also put 15360M
     
  9. Yeah some globally like for death events of other players and some for annoncing avancement events of players like covered in diamonds success etc. Do you think that could be the probleme ? :eek:

    About 20 plugins i'll say :)
     
  10. show your plugin list please and btw type /timings when the lag is happening after 3 minutes type /timings paste it will show you a link give us that
     
  11. With 1.14 this is the only version I have this type of problem
    Since 2011, 1.14.4 is the version who is horrible for that. bad TPS for me too.....
     
  12. SladeHazard We have decided to down the server and go for a 1.12 server for stability instead of 1.14 ! I hope it will get rid of all theses problems. Big thanks for help tho, i ll keep updated here of how it goes ;)