Paper 1.16.5 tps:20 but laggs all the time

Hello,
I have some issues with my mincraft server. It always has a TPS of 20, but get the message: “Can’t keep up! Is the server overloaded? Running 5504ms or 110 ticks behind”. My Ram always climbs and never drops.
I am using paperMC-592.

https://timings.aikar.co/?id=ecaa8bd1152e494ebcc0955f06f068ae

Can anyone help me with this?

server.properties:
view-distance=8

bukkit.yml:
spawn-limits:
monsters: 40
animals: 8
water-animals: 10
water-ambient: 15
ambient: 10
chunk-gc:
period-in-ticks: 600
ticks-per:
animal-spawns: 400
monster-spawns: 1
water-spawns: 1
water-ambient-spawns: 1
ambient-spawns: 1
autosave: 6000

spigot.yml:
config-version: 12
settings:
debug: false
bungeecord: false
sample-count: 12
player-shuffle: 0
user-cache-size: 1000
save-user-cache-on-stop-only: false
moved-wrongly-threshold: 0.0625
moved-too-quickly-multiplier: 10.0
log-villager-deaths: true
timeout-time: 60
restart-on-crash: true
restart-script: ./start.sh
netty-threads: 4
attribute:
maxHealth:
max: 2048.0
movementSpeed:
max: 2048.0
attackDamage:
max: 2048.0
messages:
whitelist: You are not whitelisted on this server!
unknown-command: Unknown command. Type “/help” for help.
server-full: The server is full!
outdated-client: Outdated client! Please use {0}
outdated-server: Outdated server! I’m still on {0}
restart: Server is restarting
advancements:
disable-saving: false
disabled:

  • minecraft:story/disabled
    stats:
    disable-saving: false
    forced-stats: {}
    commands:
    log: true
    tab-complete: 0
    send-namespaced: true
    spam-exclusions:
  • /skill
    silent-commandblock-console: false
    replace-commands:
  • setblock
  • summon
  • testforblock
  • tellraw
    players:
    disable-saving: false
    world-settings:
    default:
    verbose: false
    hopper-amount: 1
    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-endcity: 10387313
    seed-slime: 987234911
    seed-bastion: 30084232
    seed-fortress: 30084232
    seed-mansion: 10387319
    seed-fossil: 14357921
    seed-portal: 34222645
    max-tnt-per-tick: 100
    enable-zombie-pigmen-portal-spawns: true
    view-distance: default
    item-despawn-rate: 6000
    nerf-spawner-mobs: false
    zombie-aggressive-towards-villager: true
    hanging-tick-frequency: 100
    wither-spawn-sound-radius: 0
    arrow-despawn-rate: 1200
    trident-despawn-rate: 1200
    mob-spawn-range: 8
    end-portal-sound-radius: 0
    max-entity-collisions: 8
    merge-radius:
    exp: 3.0
    item: 2.5
    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
    entity-activation-range:
    animals: 16
    monsters: 24
    raiders: 48
    misc: 8
    water: 8
    villagers: 16
    flying-monsters: 16
    villagers-work-immunity-after: 100
    villagers-work-immunity-for: 20
    villagers-active-for-panic: true
    tick-inactive-villagers: true
    wake-up-inactive:
    animals-max-per-tick: 4
    animals-every: 1200
    animals-for: 100
    monsters-max-per-tick: 8
    monsters-every: 400
    monsters-for: 100
    villagers-max-per-tick: 4
    villagers-every: 600
    villagers-for: 100
    flying-monsters-max-per-tick: 8
    flying-monsters-every: 200
    flying-monsters-for: 100
    ticks-per:
    hopper-transfer: 8
    hopper-check: 1
    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
    max-tick-time:
    tile: 50
    entity: 50
    squid-spawn-range:
    min: 45.0
    entity-tracking-range:
    players: 48
    animals: 48
    monsters: 48
    misc: 32
    other: 64

paper.yml:

use-display-name-in-quit-message: false
verbose: false
config-version: 20
settings:
use-alternative-luck-formula: false
suggest-player-names-when-null-tab-completions: true
console-has-all-permissions: false
region-file-cache-size: 256
incoming-packet-spam-threshold: 300
max-joins-per-tick: 3
track-plugin-scoreboards: false
load-permissions-yml-before-plugins: true
bungee-online-mode: true
fix-entity-position-desync: true
save-empty-scoreboard-teams: false
chunk-tasks-per-tick: 1000
enable-player-collisions: true
player-auto-save-rate: -1
max-player-auto-save-per-tick: -1
watchdog:
early-warning-every: 5000
early-warning-delay: 10000
spam-limiter:
tab-spam-increment: 1
tab-spam-limit: 500
recipe-spam-increment: 1
recipe-spam-limit: 20
book-size:
page-max: 2560
total-multiplier: 0.98
unsupported-settings:
allow-headless-pistons: false
allow-permanent-block-break-exploits: false
allow-piston-duplication: true
allow-headless-pistons-readme: This setting controls if players should be able
to create headless pistons.
allow-permanent-block-break-exploits-readme: This setting controls if players
should be able to break bedrock, end portals and other intended to be permanent
blocks.
allow-piston-duplication-readme: This setting controls if player should be able
to use TNT duplication, but this also allows duplicating carpet, rails and potentially
other items
velocity-support:
enabled: false
online-mode: false
secret: ‘’
async-chunks:
threads: -1
messages:
no-permission: ‘&cI’‘m sorry, but you do not have permission to perform this command.
Please contact the server administrators if you believe that this is in error.’
kick:
flying-player: Flying is not enabled on this server
flying-vehicle: Flying is not enabled on this server
authentication-servers-down: ‘’
connection-throttle: Connection throttled! Please wait before reconnecting.
timings:
enabled: true
verbose: true
server-name-privacy: false
hidden-config-entries:

  • database
  • settings.bungeecord-addresses
  • settings.velocity-support.secret
    history-interval: 300
    history-length: 3600
    server-name: Unknown Server
    world-settings:
    default:
    ender-dragons-death-always-places-dragon-egg: false
    allow-using-signs-inside-spawn-protection: false
    update-pathfinding-on-block-update: true
    fix-wither-targeting-bug: false
    optimize-explosions: false
    baby-zombie-movement-modifier: 0.5
    disable-teleportation-suffocation-check: false
    fixed-chunk-inhabited-time: -1
    use-vanilla-world-scoreboard-name-coloring: false
    remove-corrupt-tile-entities: false
    experience-merge-max-value: -1
    prevent-moving-into-unloaded-chunks: false
    max-auto-save-chunks-per-tick: 24
    count-all-mobs-for-spawning: false
    per-player-mob-spawns: false
    delay-chunk-unloads-by: 10s
    should-remove-dragon: false
    falling-block-height-nerf: 0
    tnt-entity-height-nerf: 0
    filter-nbt-data-from-spawn-eggs-and-related: true
    max-entity-collisions: 8
    disable-creeper-lingering-effect: false
    duplicate-uuid-resolver: saferegen
    duplicate-uuid-saferegen-delete-range: 32
    phantoms-do-not-spawn-on-creative-players: true
    phantoms-only-attack-insomniacs: true
    parrots-are-unaffected-by-player-movement: false
    seed-based-feature-search: true
    water-over-lava-flow-speed: 5
    grass-spread-tick-rate: 1
    use-faster-eigencraft-redstone: false
    nether-ceiling-void-damage-height: 0
    only-players-collide: false
    allow-vehicle-collisions: true
    allow-non-player-entities-on-scoreboards: false
    portal-search-radius: 128
    portal-create-radius: 16
    portal-search-vanilla-dimension-scaling: true
    disable-explosion-knockback: false
    fix-climbing-bypassing-cramming-rule: false
    keep-spawn-loaded: true
    armor-stands-do-collision-entity-lookups: true
    disable-thunder: false
    skeleton-horse-thunder-spawn-chance: 0.01
    disable-ice-and-snow: false
    keep-spawn-loaded-range: 8
    container-update-tick-rate: 1
    mob-spawner-tick-rate: 1
    all-chunks-are-slime-chunks: false
    prevent-tnt-from-moving-in-water: false
    light-queue-size: 20
    zombies-target-turtle-eggs: true
    zombie-villager-infection-chance: -1.0
    auto-save-interval: -1
    spawner-nerfed-mobs-should-jump: false
    entities-target-with-follow-range: false
    armor-stands-tick: true
    iron-golems-can-spawn-in-air: false
    max-leash-distance: 10.0
    non-player-arrow-despawn-rate: -1
    creative-arrow-despawn-rate: -1
    enable-treasure-maps: true
    treasure-maps-return-already-discovered: false
    game-mechanics:
    scan-for-legacy-ender-dragon: true
    disable-pillager-patrols: false
    fix-curing-zombie-villager-discount-exploit: true
    nerf-pigmen-from-nether-portals: false
    disable-chest-cat-detection: false
    disable-player-crits: false
    disable-sprint-interruption-on-attack: false
    shield-blocking-delay: 5
    disable-end-credits: false
    disable-unloaded-chunk-enderpearl-exploit: true
    disable-relative-projectile-velocity: false
    disable-mob-spawner-spawn-egg-transformation: false
    pillager-patrols:
    spawn-chance: 0.2
    spawn-delay:
    per-player: false
    ticks: 12000
    start:
    per-player: false
    day: 5
    entity-per-chunk-save-limit:
    experience_orb: -1
    snowball: -1
    ender_pearl: -1
    arrow: -1
    max-growth-height:
    cactus: 3
    reeds: 3
    bamboo:
    max: 16
    min: 11
    fishing-time-range:
    MinimumTicks: 100
    MaximumTicks: 600
    despawn-ranges:
    soft: 32
    hard: 128
    frosted-ice:
    enabled: true
    delay:
    min: 20
    max: 40
    lootables:
    auto-replenish: false
    restrict-player-reloot: true
    reset-seed-on-fill: true
    max-refills: -1
    refresh-min: 12h
    refresh-max: 2d
    mobs-can-always-pick-up-loot:
    zombies: false
    skeletons: false
    alt-item-despawn-rate:
    enabled: false
    items:
    COBBLESTONE: 300
    hopper:
    cooldown-when-full: true
    disable-move-event: false
    lightning-strike-distance-limit:
    sound: -1
    impact-sound: -1
    flash: -1
    wandering-trader:
    spawn-minute-length: 1200
    spawn-day-length: 24000
    spawn-chance-failure-increment: 25
    spawn-chance-min: 25
    spawn-chance-max: 75
    door-breaking-difficulty:
    zombie:
    • HARD
      vindicator:
    • NORMAL
    • HARD
      anti-xray:
      enabled: false
      engine-mode: 1
      max-chunk-section-index: 3
      update-radius: 2
      lava-obscures: false
      use-permission: false
      hidden-blocks:
    • gold_ore
    • iron_ore
    • coal_ore
    • lapis_ore
    • mossy_cobblestone
    • obsidian
    • chest
    • diamond_ore
    • redstone_ore
    • clay
    • emerald_ore
    • ender_chest
      replacement-blocks:
    • stone
    • oak_planks
      viewdistances:
      no-tick-view-distaz

My RAM always climbs but never drops

Never drops? You would crash fairly quickly if you played on it. Most likely Java isn’t performing full garbage collections often because it doesn’t want to: they take a long time, so it doesn’t perform them if it doesn’t need to. Try the guide linked from timings. Make sure you pay attention to the part where it says to ensure the values of Xms and Xmx are equal.

You appear to have a lot of entities causing lag. You should take a look at this guide to find how to reduce both the number of entities and the amount of lag they can cause.

Final note: the configuration you posted looks different from what’s shown in Timings. Care to shed some light on that?

TPS is not a useful performance metric

G1 young is high, as is your timings cost, i’d suggest speaking to your host assuming you’re using one, using the recommended flags is also a must