Minecraft - Metrics not accurate

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Callisto’ v2.5.0.4 (Mainline)
Virtualization Docker
Application Minecraft
Module MinecraftModule
Running in Container Yes
Current State Ready

Task

View MC metrics

Problem Description

Issue

The RAM usage on the server will stay at about 11 gigs after something lags the server and it doesn’t go back down. It’s not actually using 11 gigs though it just says it on the metrics. The TPS also doesnt show the same thing as in game and rarely changes on the metrics page but ingame it does. Edit: Playercount also sometimes just doesn’t ever lower and will increase when the same person rejoins.

Reproduction Steps

  • Start server
  • Do something that causes lag
  • Review the metrics

AMP gets its resource usage data from the OS, and gets TPS by looking at the regular output of the TPS command. It only polls it periodically so if you have short spikes it won’t show up. This feature is currently functioning as designed.

Is there a reason why the ram sometimes will stay super high even though its not actually using that much? It fixes after restarting

It is using that much. Check what the OS says.

Yeah that’s what I was doing and it was only showing ~4 gigs actually being used

How are you checking outside of AMP? If you’re using htop it’d be the VIRT column. If you want a different break down then turn off the simplified metrics.

Nvm seems restarting the actual service fixed it