Jump to content

How to reduce lag on your survival server (Addition to Reassembly)


SkripterMan

Recommended Posts


Hey everyone! You may have noticed survival servers have the largest amount of lag. This is caused by chunk generation, many chunks loaded and high amount of entities. There are many other reasons your server could be lagging although these 3 reasons combined cause the most amount of lag on your server. First of all, read @Reassembly's post here to understand what causes these things and make sure you follow his tips first. 


Once you follow his tips, you can do more! The following tips are meant for survival servers. There are configuration files that you can find by going into your Minehut dashboard from there you can select the server and then click on 'File manager'. There are multiple "YML" files in here that you can edit. "YML" files are configuration files used to change how your server works. The three files that we are going to be focusing on are "paper.yml", "spigot.yml" and "bukkit.yml".

When editing, locate the option that you are trying to edit and change the value (True or false / Integer) to the value that is stated.
We are going to begin with the easiest one of all, bukkit.yml:
 

  monsters: 40
  animals: 8
  water-animals: 3
  water-ambient: 2
  ambient: 1
chunk-gc:
  period-in-ticks: 400
ticks-per:
  monster-spawns: 4

The next options are found in the "spigot.yml" configuration:

 

    entity-activation-range:
      water: 16
      villagers: 32
      flying-monsters: 32
      villagers-work-immunity-after: 100
      villagers-work-immunity-for: 20
      villagers-active-for-panic: true
      animals: 16
      monsters: 24
      misc: 8
    merge-radius:
      item: 4
      exp: 6
    nerf-spawner-mobs: true
    mob-spawn-range: 6
    arrow-despawn-rate: 300
    item-despawn-rate: 4000
      tick-inactive-villagers: false

Alrighty, now that we have finished the rather short ones we are going to begin working on the biggest YML file of all, "paper.yml":

 

    max-auto-save-chunks-per-tick: 8
    optimize-explosions: true
    mob-spawner-tick-rate: 2
      disable-chest-cat-detection: true
    container-update-tick-rate: 3
    max-entity-collisions: 2
    grass-spread-tick-rate: 4
    non-player-arrow-despawn-rate: 180
    creative-arrow-despawn-rate: 60
    despawn-ranges:
      soft: 28
      hard: 96
    hopper:
      cooldown-when-full: true
      disable-move-event: true
    prevent-moving-into-unloaded-chunks: true
    use-faster-eigencraft-redstone: true
    armor-stands-tick: false
    per-player-mob-spawns: true
# The following option is suggested to prevent xrayers but does not help with lag.

    anti-xray:
      enabled: true


All of these options were found here -> https://shockbyte.com/billing/knowledgebase/21/Reducing-Lag

Some of the options were edited to my liking, you can read up on each option. Now that I have show you all of the edited values, here are all the config downloads. Thank you Shockbyte for helping us reduce lag! If this helped you please leave a like 🙂


EDIT:
If you do not feel comfortable downloading these files you can view them in the following pastebins:

PAPER:
https://pastebin.com/Y5uxknt2

SPIGOT:
https://pastebin.com/bSirAgkm

BUKKIT:
https://pastebin.com/1jJDCDDW 

paper (1).yml spigot (1).yml bukkit (1).yml

Edited by SkripterMan
  • Like 6

SkripterMan

Joined Minehut on 4/21/16
Owner of CareSMP.minehut.gg


VIP - 6/21/17
LEGEND - 18/12/20
MARKET MAKER - 5/6/21


Discord: SkripterMan#0001

Link to comment
Share on other sites

Bump, I feel like this could be a very large help for users on Minehut.

Edited by SkripterMan

SkripterMan

Joined Minehut on 4/21/16
Owner of CareSMP.minehut.gg


VIP - 6/21/17
LEGEND - 18/12/20
MARKET MAKER - 5/6/21


Discord: SkripterMan#0001

Link to comment
Share on other sites

  • 3 weeks later...

Install an anticheat, that'll make it a lot tougher if not impossible to crash your server by loading tons of chunks, although if your survival server has /dupe, you can still get cucked by pretty much any lag machine. This guide cannot protect a dupe server from minecart/armor stand based lag machines, it can allow the server to last longer, but these machines have like 50 shulkers wired up into a dispenser, so eventually the entity count will rise high enough to overwhelm the server, just disable spawn eggs, armor stands and minecarts.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...