For FreeBSD servers monitored using Telnet/SSH mode, Applications Manager calculates memory utilization using the output of the following command:
export UNIX95; top -d 1 -n 2
From the command output, the following line is used for memory calculation:
Mem: 67M Active, 351M Inact, 2690M Wired, 4703M Free
The memory values are converted into bytes before performing the calculation:
The memory usage calculation depends on the global configuration key:
am.freebsd.memory.used.with.wired
am.freebsd.memory.used.with.wired = trueIf the key is present and set to true, Wired memory is included in Used memory.
Used = Active + Inact + Wired
Used % = Used / (Used + Free) × 100
Used = 70,254,592 + 368,050,176 + 2,820,669,440
Used = 3,258,974,208 bytes
Used % = 3,258,974,208 / (3,258,974,208 + 4,931,452,928) × 100
Used % ≈ 39%
am.freebsd.memory.used.with.wired = false (Default Behavior)If the key is not present or set to false, Wired memory is considered as Free memory.
Used = Active + Inact
Free = Free + Wired
Used % = Used / (Used + Free) × 100
Used = 70,254,592 + 368,050,176
Used = 438,304,768 bytes
Free = 4,931,452,928 + 2,820,669,440
Free = 7,752,122,368 bytes
Used % = 438,304,768 / (438,304,768 + 7,752,122,368) × 100
Used % ≈ 5%
To verify whether the key is enabled, execute the following query in the Query Tool:
select * from AM_GLOBALCONFIG where NAME='am.freebsd.memory.used.with.wired';