PVE 9 VM Memory Leak

Jannik2020

Well-Known Member
Jan 2, 2020
89
1
48
27
Hallo,
ich hab unter PVE 9 eine Pfsense VM wo der Ram nach kürzester zeit voll ist siehe

1775231494726.png

Für mich sieht es nach einem Memory Leak aus hat jemand sowas schonmal unter PVE 9 gesehen oder eine Idee was das sein kann?

Beste Grüße
Jannik
 
ok dieses Phänomaen hatte ich unter PVE8 mit sogar 4GB RAM aber nicht finde ich etwas ungewöhnlich
Nö, das ist grundsätzlich normales Verhalten von unixoiden Betriebssystemen, die nutzen den RAM als Cache. Und da der Host von außen nicht draufgucken kann (bis du in die Sense die qemu-guest-utils installierst), musst du in der Sense nach dem RAM gucken, nicht in PVE.
Siehe auch: https://forum.proxmox.com/threads/f...ram-usage-of-the-vms-in-the-dashboard.165943/

Dazu kommt, dass VMs auch immer ein wenig Speicherverbrauch im Host bedingen (weil die ja verwaltet werden müssen und das kostet auch), seit PVE9 wird das auch anders berücksichtigt bei der Anzeige der Memory-Auslastung. Im von impact ebenfalls verlinkten wiki-Eintrag zum Upgrade von PVE8 auf PVE9 steht dazu folgendes:
In some situations you might see that the Memory usage of a VM is higher after the upgrade. Maybe even a bit over 100%.

If the VM does not report detailed memory usage, Proxmox VE will show the host's view of the memory usage. With Proxmox VE 9, the accounting of the memory usage on the host has been adapted and takes the memory overhead of the VM into account. Therefore, the percentage may spike to over 100% in some cases.

If the new Host memory usage field is the same as the Memory Usage field in the VM's summary panel, then Proxmox VE was unable to gather the VM's internal memory usage information.

This happens if one of the following conditions applies:
  • The Ballooning Device has been disabled in the advanced memory settings of the VM. This removes the communication channel to gather the guest's internal memory usage information.
  • The guest does not report back any detailed memory usage information.
    • The guest does not report back any detailed memory usage information.For example, FreeBSD is known to not report memory usage details, which includes popular firewalls like pfSense or OPNsense.
    • If the BalloonService on a Windows guest is not installed or not running.
https://pve.proxmox.com/wiki/Upgrade_from_8_to_9#VM_Memory_Consumption_Shown_is_Higher

Bei OPNsense kann man die fehlenden guest-tools als Plugin installieren, das müsste so ähnlich auch für pfsense oder generell FreeBSD gehen:
https://docs.opnsense.org/manual/virtuals.html

Generell sollte man aber Speicherüberwachung NICHT über die ProxmoxVE-Dashboards machen, sondern über ein dezidiertes Monitoringtool wie Zabbix, Icinga oder Prometheus, dessen Agenten man dann in der VM installiert. Die alamieren einen dann auch per Mail oder auf anderen Wege, wenn es mal Probleme gibt, ein Feature, was die Dashboards von PVE gar nicht haben.
 
Last edited:
  • Like
Reactions: UdoB