Lag caused by plugin 'eating' the ram

Discussion in 'Performance Tweaking' started by Sinusgolem, May 10, 2015.

  1. Hello there,
    we're currently having an issue with our server based on Spigot. After start up the memory usage starts rising until the limit is reached and then the server starts lagging. We have already tried some basic stuff like reducing the view distance and so on but we don't't think that it is an CPU based problem.
    Probably one plugin is 'eating' all the memory.
    Maybe someone has an idea what to do or how to determinate the plugin which produces the problem without testing every single plugin ?
    Our dedicated root server itself should be powerful enough for our requirements.

    root server:
    CPU: Intel Xeon E5-1620v2
    cores: 4C/8t 3,7 GHz+/3,9 GHz+
    memory: 64 GB DDR3 ECC 1600MHz
    connection: 1 Gbit/s
    bandwidth: 500 Mbit/s

    The minecraft server uses 30gb memory.
    The current server version is: git-Spigot-870264a-0a645a2 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT)

    Worldguard report:


    So, if anybody have an idea how to solve the problem, please contact me.

    Best wishes,
  2. Try to remove all plugins but one to see which one memory leaks causes. Sadly it's impossible to see which plugin uses how much memory otherwise.
  3. A 40s timings while the server has a tps of 19,xx also doesnt tell us much...
    • Agree Agree x 1
  4. Your server is using too much total RAM, it does not need 30GB, try 8GB. As for how much you think you're using, it isn't using as much as you think it is. Here's the rundown:
    Code (Text):
    Your server has 29,127 MB total.
    Your server has 15,117 MB allocated. (Available for immediate use, not garbage collected)
    Your server has 5,720 MB free. (Unused, part of the allocated value)
    This means that at the moment of the picture, your server was using 9,397 MB (essentially 1/3 of your total). You need to reduce the total RAM and properly customize your garbage collector.

    You also have a lot of entities in the world "freebuild" contributing to the RAM, you should properly configure the bukkit.yml and spigot.yml to properly handle entities.
    • Like Like x 1
    • Agree Agree x 1