[GUIDE] Server Optimization⚡

Discussion in 'Performance Tweaking' started by Celebrimbor, Nov 6, 2017.


  1. This is not true. This setting has MAJOR impact on performance as Hoppers or anything getting the chests inventory trigger the cat detection code (it's part of the Double Chest detection code).

    It is not only called on open, but heavily part of the tick.

    Though now that I look at this code, we can prob optimize it to never run cat code for hoppers (the boolean flag on chest.a(world, pos, boolean) seems to relate to cat detection).

    Theres a missing flag check
    Code (Java):

    if (block == this) {
        if (this.e(world, blockposition1)) {
     
    That we prob just need to add !flag && this.e to


    @Celebrimborir can you also add a link to https://mcflags.emc.gs as we had on frash's post, for recommended JVM startup flags to improve GC behavior/lag spikes/effeciency

    though please don't copy the content of my post here, please just link, so I can make updates to it myself / update target of link If I need to.
     
    • Like Like x 2
  2. Celebrimbor

    Patron

    I’m glad that’s being actively updated. I will take some time to fit that in tomorrow.
     
  3. Nice tutorial m8! Well written and very well explained, also updated to 1.12.2 and Paper options! 10/10
     
    • Friendly Friendly x 2
  4. electronicboy

    IRC Staff

    *makes some excuse about how it was 2am and I was probably braindead*

    But yea, I think I misread where that getInventory was being called from or thought it wouldn't hit that. The boolean flag is referred to as 'allowBlocking' inside of MCP, looks like it's true in any case where the server cares about "is there a cat or a block on top" for stuff like droppers
     
    • Like Like x 1
    • Optimistic Optimistic x 1
  5. Yeah, sounds like a reasonable var name
    [​IMG]

    I just need to add the flag check here and then the cat option is "only if you care about the gameplay aspect"
     
    • Like Like x 1
  6. Celebrimbor

    Patron

    Added the “Pregenerate Map!” Section :)
     
  7. Relinquished

    Benefactor

    Bumping this, as this is still extremely helpful and more people need to look at this..
     
    • Like Like x 3
    • Agree Agree x 2
  8. Thanks for continuing frash23's thread (and his legacy), his thread was very useful for any kind of server owner (it helps me even to this day!) and your thread improves on his work to make it more up to date and better! :)
     
    • Like Like x 1
    • Friendly Friendly x 1
  9. electronicboy

    IRC Staff

    Been meaning to make a note of this for a while, but a common shortcoming I've seen with peoples configs recently is their mob spawning distance being the same as or marginally lower than their view distance, I'd heavily suggest ensuring that there is at a marginal distance between your mob spawning range and your view distance, i.e. 3 & 5 is "safe", whereas 3 & 4 is going to potentially cause issues.

    I've not had the time to properly look into it, but it seems that somewhere in the spawning process it will cause neighboring chunks to the view distance boundary can load, which is something you want to avoid
     
    • Useful Useful x 2
    • Winner Winner x 1
  10. This is a very helpful and well written thread, and should be pinned to the top of this forum. Well done!
     
    • Agree Agree x 1
  11. Thank you very much! This helped me with my server optimization!
     
    • Agree Agree x 1
  12. Great thread and very well put together information. Thank you!
     
    • Like Like x 1
    • Agree Agree x 1
  13. Hey, just wanna drop a vouch. This thread truly does have accurate information! If you follow this thread your issues are guaranteed to get fixed!
     
    • Like Like x 1
  14. Does this apply on spigot 1.13 too?
     
  15. Celebrimbor

    Patron

    Not yet. 1.13 is still in development and many of the values (especially PaperSpigot) are temporarily removed.
     
  16. I'm using normal spigot, is it safe to apply these settings or?
     
  17. Celebrimbor

    Patron

    If they are in your Bukkit/Spigot ymls, then 100% yes. :)
     
    • Agree Agree x 1
    • Informative Informative x 1
  18. You can still set all the settings still, so as patches are added back that were removed, the settings take effect.

    but not many were removed in Paper.
     
    • Agree Agree x 1
  19. Celebrimbor

    Patron

    I think just Anti-Xray as far as this guide covers?
     
  20. correct, which stonar is working on restoring.
     
    • Like Like x 2
    • Informative Informative x 1

Share This Page