BungeeCord cpu spikes on running GC

Discussion in 'BungeeCord Help' started by defineci00, Jun 13, 2017.

  1. Firstly sorry for bad English.

    When 500-700 is online, the CPU rises to 80-100% when running a GC every 5 minutes. How can I fix this ?
    java -server -Xmx3G -jar BungeeCord.jar

    BungeeCord version;
    [​IMG]


    Specs;
    RAM 8GB
    CPU E3-1230 v3 @ 3.30GHz
    OS: Debian 3.2.82-1 x86_64
    Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
     
    #1 defineci00, Jun 13, 2017
    Last edited: Jun 13, 2017
  2. Gaxan

    Supporter

    Code (Text):
    java -Xms3G -Xmx3G -XX:+UseG1GC -jar BungeeCord.jar
    More flags are available, but I don't think they will improve CPU usage.
    Check your compression rates in your configs.
    Another alternative is to try waterfall, it is optimized to reduce GC spikes.
    https://aquifermc.org/pages/about-waterfall/
     
    #2 Gaxan, Jun 13, 2017
    Last edited: Jun 13, 2017
  3. If you have 500-700 players (Very Unlikely that you do) I would recommend upgrading your software.
     
  4. What are your specs?
     
  5. RAM 8GB
    CPU E3-1230 v3 @ 3.30GHz
     
  6. Hey I updated my startup flags;
    java -Xmx3G -Xms3G -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:MaxGCPauseMillis=100 -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=60 -XX:InitiatingHeapOccupancyPercent=30 -XX:TargetSurvivorRatio=90 -jar BungeeCord.jar

    I think its worked, its just freezing 120 ms when 900 online every 5 min. I may come to ignore it.
    But I use too many flags, will they slow the server?

    And what is Waterfall, would you really suggest me to use it?
    Does my plugins cause incompatibility problems?
     
  7. Gaxan

    Supporter

    I'm at work at the moment but I don't see any major concerns with the flags you are using. The main one was to use the new GC.

    Waterfall is a fork of bungeecord developed by the same people that develop paper spigot. I recommend it if you are have GC spikes.
     
  8. Ok, thank you. I'ill remove flags and try Waterfall.
     
  9. The CPU overall isnt the best.
     
  10. Which processor do you recommend for bungeecord?
     
  11. That I wish I could tell you, because I have never ran a bungeecord server before, but I can tell you that CPU was released nearly 4 years ago and is outdated. Do home host or do you rent from somewhere?