[SOLVED] Wrong memory usage monitoring

BenDDD

Member
Nov 28, 2019
59
1
11
41
Hi everyone,

I have a problem with the internal memory usage monitoring in the Summary view on my VMs.

Proxmox shows +90% of memory usage but when i SSH into the VM and use htop, it shows -10% of memory usage.

Anyone knows what can cause that ?

Thank you in advance.
 
  • Like
Reactions: neail
A bit more info would be needed here... What storage are you using, how much RAM do you have, etc...

If you're using ZFS this could be a result of the ARC caching mechanism using RAM to speed up disk access. Try the output of the following:
Code:
free
arcstat
 
Hi Stefan_R,

Thank you for your reply.

The VMs hard disks are on an NFS network mount. Each VM have different RAM allocation (2GiB, 4GiB, 6GiB, ...).
 
So yes, accounting for the Bytes->GiB conversion this is exactly the used memory + caches. That is perfectly normal, RAM caches will be freed as necessary to make room for more "actual" RAM content. In this context, more RAM used is actually better - which is why our GUI reports it this way. 'htop', as you mention, probably doesn't.
 
  • Like
Reactions: RedZ_Nouggy
OK i understand. This is troublesome because my monitoring (Centreon + Nagios) shows it as a warning alert as it thinks RAM is completely used.
 
OK i understand. This is troublesome because my monitoring (Centreon + Nagios) shows it as a warning alert as it thinks RAM is completely used.

The difference is what the definition of "used" means. For RAM, free is bad, so every OS uses as much as possible for caching. Depending on the system, this cache is sometimes marked as free or not - but if it's needed it'll be freed.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!