Skip to content

Sample MAHS

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

What is it?

MAH/s Is a slightly more advanced measurement created by React but is clear to see how it changes depending on what is going on. It stands for Memory Allocations to the Heap Per second (in megabytes). Since Java has automatic garbage collection, garbage (dead objects) are produced and are marked for cleaning (later on). The MAH/s measures how much is actually being used per second. For example, if you are generating new chunks (flying into unexplored areas) the MAH/s will go up very quickly, as the server is allocating memory for chunks to be stored temporarily.

What is Ideal?

This number is different for many servers but can show how much memory you are "taking/allocating" per second. On a default server with only one player online (standard chunk generator), the MAH/s value goes from 10-20. Usually, busy servers will have much higher values.

Configuration

Located at plugins/React/samplers/sample-memory-allocations-per-second.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: 1