Optimizing your server.

Discussion in 'Performance Tweaking' started by DoubleGapples, Feb 15, 2018.

  1. Any ideas? On optimizing your server to the fullest?
    Running off a hosted server from ExtraVM.
  2. Updating to the latest version would help with that
    • Agree Agree x 3
    • Funny Funny x 1
  3. Please leave now.
    • Funny Funny x 1
  4. Are you using 1.7 for the pvp or...
  5. PvP in general, also don't say install one of those 1.8 pvp plugins or whatever, it doesn't work like that.
    • Funny Funny x 2
  6. MikeA

    Retired Supporter

    Entities are the only problem for most people. Do you have problems right now? timings?`
  7. Configs are optimized, so I assume entities aren't a problem.

    Code (Text):
    # This is the main configuration file for PaperSpigot.
    # As you can see, there's tons to configure. Some options may impact gameplay, so use
    # with caution, and make sure you know what each option does before configuring.
    # If you need help with the configuration or have any questions related to PaperSpigot,
    # join us at the IRC.
    # IRC: #paperspigot @ irc.spi.gt ( http://irc.spi.gt/iris/?channels=PaperSpigot )

    config-version: 6
      disable-sprint-knockback: false
      extra-sprint-knockback: 1
      baby-zombie-movement-speed: 0.5
      async-plugin-bad-magic-catcher: true
      enderpearl-collides-string-fence-gate: false
      limit-player-interactions: true
    max-packets-per-player: 1000
      strength: 1.3
      weakness: -0.5
      lava: false
      water: false
      milk: false
        verbose: true
        player-blocking-damage-multiplier: 0.5
        remove-invalid-mob-spawner-tile-entities: true
        optimize-explosions: false
        mob-spawner-tick-rate: 1
        cache-chunk-maps: false
        tnt-explosion-volume: 4.0
          minimum: 45.0
          maximum: 63.0
          cactus: 3
          reeds: 3
          MinimumTicks: 100
          MaximumTicks: 900
          block-break: 0.02500000037252903
          swimming: 0.014999999664723873
          soft: 32
          hard: 128
        tnt-entity-height-nerf: 0.0
          enderpearls: true
          tnt-entities: true
          falling-blocks: true
          boats-drop-boats: false
          less-picky-torch-placement: false
          disable-player-crits: false
          disable-end-credits: false
          canyon: true
          caves: true
          dungeon: true
          fortress: true
          mineshaft: true
          stronghold: true
          temple: true
          village: true
          flat-bedrock: false
          enderpearls: false
          tnt-entities: false
          falling-blocks: false
          lava: false
          water: false
          normal: 30
          nether: 10
        nether-ceiling-void-damage: false
        disable-thunder: false
        disable-ice-and-snow: false
        tick-next-tick-list-cap: 10000
        tick-next-tick-list-cap-ignores-redstone: false
        keep-spawn-loaded: true
        falling-blocks-collide-with-signs: false
        disable-mood-sounds: false
        use-async-lighting: false
        disable-explosion-knockback: false
        water-over-lava-flow-speed: 5
        inverted-daylight-detectors: false
        allow-undead-horse-leashing: true
        container-update-tick-rate: 1
    Code (Text):
    # This is the main configuration file for Spigot.
    # As you can see, there's tons to configure. Some options may impact gameplay, so use
    # with caution, and make sure you know what each option does before configuring.
    # For a reference for any variable inside this file, check out the Spigot wiki at
    # http://www.spigotmc.org/wiki/spigot-configuration/
    # If you need help with the configuration or have any questions related to Spigot,
    # join us at the IRC or drop by our forums and leave a post.
    # IRC: #spigot @ irc.spi.gt ( http://www.spigotmc.org/pages/irc/ )
    # Forums: http://www.spigotmc.org/

    config-version: 8
      save-user-cache-on-stop-only: false
      bungeecord: false
      late-bind: true
      sample-count: 12
      player-shuffle: 0
      filter-creative-items: true
      user-cache-size: 1000
      int-cache-limit: 1024
      moved-wrongly-threshold: 0.0625
      moved-too-quickly-threshold: 1.0E11
      timeout-time: 60
      restart-on-crash: false
      restart-script: start.sh
      netty-threads: 4
          max: 2048.0
          max: 2048.0
          max: 2048.0
      global-api-cache: false
      debug: false
      tab-complete: 0
      log: true
      - /skill
      silent-commandblock-console: false
      - setblock
      - summon
      - testforblock
      - tellraw
      whitelist: §b§LArtis§f§LHQ §8// §cWe are currently undergoing Maintenance. Thank you for your patience.
      unknown-command: §b§LArtis§f§LHQ §8// §7Unknown command. Type /help for more information.
      server-full: §b§LArtis§f§LHQ §8// §7Server is full!
      outdated-client: Outdated client! Please use {0}
      outdated-server: Outdated server! I'm still on {0}
      restart: §b§LArtis§f§LHQ §8// §7Server is restarting.
      disable-saving: false
      forced-stats: {}
        verbose: true
        mob-spawn-range: 3
          enabled: true
          engine-mode: 1
          - 14
          - 15
          - 16
          - 21
          - 48
          - 49
          - 54
          - 56
          - 73
          - 74
          - 82
          - 129
          - 130
          - 1
          - 5
        nerf-spawner-mobs: false
          cactus-modifier: 100
          cane-modifier: 100
          melon-modifier: 100
          mushroom-modifier: 100
          pumpkin-modifier: 100
          sapling-modifier: 100
          wheat-modifier: 100
          animals: 6
          monsters: 6
          misc: 2
          players: 48
          animals: 48
          monsters: 48
          misc: 32
          other: 64
        hopper-alt-ticking: false
          hopper-transfer: 24
          hopper-check: 24
        hopper-amount: 3
        random-light-updates: false
        save-structure-info: true
        max-bulk-chunks: 5
        max-entity-collisions: 8
        dragon-death-sound-radius: 0
        seed-village: 10387312
        seed-feature: 14357617
          walk-exhaustion: 0.2
          sprint-exhaustion: 0.8
          combat-exhaustion: 0.3
          regen-exhaustion: 3.0
        max-tnt-per-tick: 100
        view-distance: 5
        chunks-per-tick: 650
        clear-tick-list: false
          exp: 3.0
          item: 2.5
        item-despawn-rate: 200
        arrow-despawn-rate: 100
        enable-zombie-pigmen-portal-spawns: true
        wither-spawn-sound-radius: 0
        hanging-tick-frequency: 100
        zombie-aggressive-towards-villager: true
    Code (Text):
    # This is the main configuration file for Bukkit.
    # As you can see, there's actually not that much to configure without any plugins.
    # For a reference for any variable inside this file, check out the Bukkit Wiki at
    # http://wiki.bukkit.org/Bukkit.yml
    # If you need help on this file, feel free to join us on irc or leave a message
    # on the forums asking for advice.
    # IRC: #spigot @ irc.spi.gt
    #    (If this means nothing to you, just go to http://irc.spi.gt/iris/?nick=&channels=spigot )
    # Forums: http://www.spigotmc.org/forums/help.40/
    # Bug tracker: http://www.spigotmc.org/forums/bugs-feature-requests.8/

      allow-end: false
      warn-on-overload: true
      permissions-file: permissions.yml
      update-folder: update
      ping-packet-limit: 100
      use-exact-login-location: false
      plugin-profiling: false
      connection-throttle: -1
      query-plugins: true
      deprecated-verbose: default
      shutdown-message: SERVER RESTARTING
      monsters: 6
      animals: 10
      water-animals: 2
      ambient: 3
      period-in-ticks: 300
      load-threshold: 300
      animal-spawns: 400
      monster-spawns: 50
      autosave: -1
      enabled: false
      - warn-console
      - warn-ops
      - warn-console
      - warn-ops
      preferred-channel: rb
      host: dl.bukkit.org
      suggest-channels: true
    aliases: now-in-commands.yml
      username: bukkit
      isolation: SERIALIZABLE
      driver: org.sqlite.JDBC
      password: walrus
      url: jdbc:sqlite:{DIR}{NAME}.db
  8. Why don't you update to the latest version, then support 1.7-1.12 clients and then get the 1.8 pvp plugin so 1.7 keeps it's pvp and 1.8-1.12 has 1.8 pvp.
    • Agree Agree x 1
    • Funny Funny x 1
  9. Too glitchy, and buggy. 1.7-1.12
    • Funny Funny x 2
  10. Well devs are getting pissed about supporting old ass clients because of what some people want. I like 1.7 also but minecraft has made it the way it is. We either deal with the later versions or make an older version server and don't use updated plugins.
    • Agree Agree x 1
  11. Read the title. Not looking for plugins. Tons of people say plugins such as "Clearlag" and "React" cause more lag then actually fix any issues.
    • Agree Agree x 1
  12. I use the /lagg gc option for ClearLagg and it drops my ram usage like 6x and goes up fast and then goes up from time to time. So if I was using 4GB of ram, I would type the command and it would go to 450mb and go back up around 1.5GB then go up slowly to 2-3GB. There is also the other features so i I don't think it lags your server
  13. Tux


    You shouldn't ever need to run the Java garbage collector manually. Let Java decide when it needs to run. Also, Aikar's flags are very good for tweaking the garbage collector in a way that works best for Minecraft (especially 1.8 and above, but 1.7 should get some benefit as well).
  14. As user said,
    Not a dedicated one, you can't twerk flags on the 1GB, 2GB, 3GB Minecraft servers I think.
    • Like Like x 1
  15. Tux


    My experience is with self-managed servers, not those hosted with a GSP.
    • Informative Informative x 2
  16. electronicboy

    IRC Staff

    General advice is generally keep your eye on timings, cut down on any plugins causing lag, tweak what can be tweaked to minimize the performance impact... if you're having issues, your best option is to share your timings for people to look at, but shamefully as you're running 1.7, you don't get timings v2, meaning you're stuck with the somewhat horrible v1.

    Manually invoking GC is generally pointless, if you're having issues where invoking this manually fixes lag issues, it's because you've got something horribly configured somewhere, hence why Aikars flags are recommended as a starting point which works perfectly fine for 99% of servers. Free memory in java is also a bit of a lie, and minecrafts memory profile is horrible for exploding the heap with lots of large objects which don't even last a milisecond, which causes some horrible behavior over time, especially with the default GC settings.

    As a paper developer, I can say that clearlagg is generally the most pointless plugin, any feature it has that would actually benefit performance, is already built into the server in a much more efficient way (e.g. item clearing, the server already has this built in, as items will only sit around for so long, and spigot even makes this configurable as for how long they should sit, as well as entity activation meaning that you can make items pretty much not be ticked, thus causing very trivial overheads), or can be mitigated from requiring a plugin taking up additional processing time to deal with (see last example). There are one or two plugins out there that can help performance, e.g. mob spawner limiters, and that's more because there is no feature around limiting these spawns all too well in the server. React is also a plugin which generally does one of two things when I'm looking at an timings report; 1. Literally nothing while the server lags its ass off, 2. is the cause of the lag. It's very rare that I see react actually helping a server.
  17. Should I use PaperSpigot and Waterfall?
  18. I mean, Paperspigot is a .jar, and Waterfall is a forked version of Bungeecord.
  19. Yeah, so should I replace them with spigot and bungeecord or keep them.

Share This Page