good tps but eating ram

Discussion in 'Performance Tweaking' started by k3ldon, May 30, 2015.

  1. hi, i have a dedicated server with factions my tps is 19 but always use too much ram and idk why

    my specs:
    debian 7
    CPU
    Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz
    NĂșcleos : 8
    Caché : 10240KB
    RAM
    8x 16384MB


    timings: http://timings.aikar.co/?url=11456271

    upload_2015-5-30_14-11-46.png
     
  2. How are you launching your server?
     
  3. Code (Text):
    # /bin/sh
    while true
    do
    screen -S factions_spigot java -d64 -Xmx16G -jar paperspigot-1.8.6.jar nogui
    echo Its off..sleeping for 5
    sleep 5
    done
     
  4. the parameter nogui is not neccesary
     
  5. I'd recommend using this instead:
    Code (Text):
    #!/usr/bin/env bash

    while true; do
      java -Xmx15G -XX:+UseConcMarkSweepGC -jar paperspigot-1.8.6.jar
      echo "Restarting in 5 seconds. Ctrl-C to interrupt"
      sleep 5
    done
    Then managing screens manually. ConcMarkSweepGC is the real change here, should fix your memory problems.
     
    • Like Like x 1
  6. ok ty, I'll try
     
    • Agree Agree x 1
  7. but my world is not too big =/
     
  8. It's not about the size of your world, it's about the amount of chunks you have loaded in memory.
    Lower view-distance and tweak your chunk-gc (check the optimization guide in my signature).
     
  9. ok tnks, I'll try with this:

    chunk-gc:
    period-in-ticks: 500
    load-threshold: 200

    view-distance=6
     
  10. Java will use as much memory as you will it with Xmx, just decrease it to 4GB and you will see that it will not lag.
     
  11. You could also get a entity remover that gets rid of all the entities on the ground that no one has picked up it could help with lag or maybe not. But it is worth a try!
     
  12. the problem is that always grows the amount of ram used, although the amount of people online is diminishing, anyways i solved by rebooting the server every 12 hours, never frees up ram for the same
     
  13. Good to hear you found a solution hope your server goes well!