Recent Discussions

Almost 100% RAM usage and high mspt fluctuation

Unanswered
Transvaal lion posted this in #questions
Messages12 messages
Views0 views
Transvaal lionOP
Long story short, we have a modded (cobblemon + a couple of other mods) fabric server with a minimum of 10 players and a maximum of around 60.
Current specs are Ryzen 9 7950, 16GB of RAM allocated to the server. Current servercore dynamic config:
dynamic:
  # Enables dynamic performance checks.
  enabled: true
  # The average MSPT to target.
  target-mspt: 30
  # The settings that will be decreased when the server is overloaded, in the specified order.
  # You can remove settings from the list that you don't want to be dynamically adjusted.
  # ► max = The maximum value the server will increase the setting to.
  # ► min = The minimum value the server will decrease the setting to.
  # ► increment = The amount the setting will be increased or decreased by.
  # ► interval = The amount of seconds between each check to increase or decrease.
  dynamic-settings:
    - setting: 'CHUNK_TICK_DISTANCE'
      max: 6
      min: 2
      increment: 1
      interval: 15

    - setting: 'SIMULATION_DISTANCE'
      max: 6
      min: 2
      increment: 1
      interval: 15

    - setting: 'VIEW_DISTANCE'
      max: 10
      min: 6
      increment: 1
      interval: 150

    - setting: 'MOBCAP_PERCENTAGE'
      max: 70
      min: 15
      increment: 5
      interval: 15

    - setting: 'VIEW_DISTANCE'
      max: 6
      min: 4
      increment: 1
      interval: 150


Spark report: https://spark.lucko.me/zhcW6IW8eH (the server had been up for 15h at the time of this report, we restart the server daily unless we are hosting an event a that time, then we try to restart it a bit earlier/later)

It's worth noting we recently introduced a custom mod so we dont know if that's causing this behaviour. We are checking it rn.
Also, there is a second server running in the machine (basically a test environment for us), using the same config as the main server (without bluemap tho). Dont think this is an issue since we have plenty of ram available if needed and we should have enough threads for both of them

If anyone could help us or has any theory about this behaviour we would appreciate it
Pixiebob
Where are you reading this RAM usage
Transvaal lionOP
Both spark report and /tps command return anything from 14 to almost 16gb (guess it goes down thanks to gc)
Pixiebob
That part is pretty normal
As your jvm flag instruct the server to take up to 16gb of memory
If you do not wish for it to take that much ram, lower your Xmx and Xms
IMG_4485.png
Overall, the server is running surprisingly well for the amount of task it has to do
There is lag spike from old gen but you will need to take a look at your heap dump to see what’s going on but I suspect that’s simply from you having so much stuff (cobbemon?) in the server.
Please get the leaky mod
You have over 2000 item entities just sitting there
2051 of which is in a single area
also yeah do a heapdump and analyse it in jprofiler or MAT
Loading...