Checkmk 2.5 Community on 2 GB RAM: Why It Was Almost Enough

I recently upgraded a small Checkmk installation from 2.3 Raw to 2.5 Community and initially wanted to keep the monitoring VM at 2 GB RAM.

The site monitors around 20 hosts and more than 1,000 services. After the upgrade, Checkmk 2.5 was very tight on memory, so I spent some time measuring the main consumers and testing a few optimizations.

The interesting result was that 2 GB is actually very close …

In the end, 2.5 GB turned out to be the much more comfortable configuration. Even under heavy GUI load there is plenty of memory headroom. With vm.swappiness=1, Linux still moves some very cold pages to swap over time, but without actual memory pressure or noticeable impact.

I documented the measurements, the 2.3 → 2.4 → 2.5 upgrade path, the tuning steps, and the final comparison here:

https://www.thk-systems.net/checkmk-2-5-community-why-2-gb-ram-was-almost-enough/

Maybe this is useful for others running Checkmk Community on small VMs. Comments, different measurements and experiences with similarly small installations are very welcome.

2 Likes

Using zswap on the host would be good/bad?

I am running Checkmk Community with 30 hosts and 2500 services on 4GB RAM. There is also a PatchMon Docker container on the same machine. Since forks of the Nagios core are getting quite memory heavy (albeit the forks are CoW initially), it makes sense to go quite low with the maximum number of concurrent forks. This is set to “no limit” initially, but usually starting with double the core count and then going lower/higher from there is the best approach.

Tuning des Monitoring-Kerns