Linux virtual machines monitored in VMware Aria Operations may show a value of 0 for specific memory swap metrics even when the guest operating system indicates active swap usage. This article explains why this occurs on modern Linux distributions and provides alternative monitoring methods.
Symptom The following metrics consistently report a value of 0:
Memory | Swap In Rate (KBps)Memory | Swap Out Rate (KBps)Memory | Swapped (KB)However, the metric Guest | Remaining Swap Space (KB) shows fluctuations, and the guest OS free -m or top commands confirm swap is being utilized.
VMware Aria Operations 8.18.x
Modern Linux kernels utilize cgroups v2, which changes how memory and swap accounting are exposed to the system. The legacy guest metrics collected by the vCenter adapter via VMware Tools rely on older kernel counters that are no longer populated in the same way, leading the adapter to report 0 for rate-based swap metrics.
To monitor swap activity accurately on modern Linux systems, use one of the following methods:
/proc/vmstat and /proc/meminfo, which provides accurate, high-fidelity reporting of swap rates and usage.Guest | Remaining Swap Space (KB). This metric is collected differently and remains accurate for identifying the current state of the swap file/partition.Guest | Total Swap Space (KB) property (if available) as the denominator instead of a hardcoded value to ensure accuracy across differently sized VMs.If the issue persists or metrics are missing entirely, ensure the "Performance > Modify intervals" privilege is assigned to the vCenter service account. To speak with a customer representative or a Support Engineer, see .