Skip to content

Sample Memory Per Player

Daniel Mills edited this page Mar 31, 2016 · 3 revisions

What is it?

This is a rough estimate of how much memory each player is taking up on average. This is calculated by using a cache in the plugins/React/cache folder. This resamples itself up to 16 times. The point of this is to see how many players you "could" take up. This number roughly adds in the memory from chunks because of players, and even plugins.

How it works (If your interested)

This will not work until react has a small amount of time with no players online, as we need to "zero out" the normal memory usage with no players online. We take 16 samples over the interval and average it out. Once we have this we can use this equation

| Variable | Meaning | |:-:|:--| | M | MB Per Player | | U | MB Mem Used | | I | Initial MB (no players) | | C | Chunk Memory | | P | Player Count |

What is Ideal?

This value is dependent on every server, their plugins and general inaccuracies. If you have the memory to handle your server effectively, you should not worry about this affecting performance.

Configuration

Located at plugins/React/samplers/sample-memory-per-player.yml

component:
  # The interval at which this sample measures. 
  # You should not change this unless you know what you're doing.
  # This interval is sometimes highly sensitive to accuracy.
  interval: 100