memory leak?

Started by Apollo, October 13, 2025, 11:16:31 PM

Previous topic - Next topic
Since a couple updates (or perhaps a few) my OPNsense server (proxmox vm) memory keeps going to 90+ percent. Previously it never got very high at all. This last patch it seemed ok for a couple days but I logged in today via web gui and it was over 90% again.

I only use Unbound DNS, Kea DHCP (for Cisco switch DHCP relay), QEMU guest agent, and Insight to see what is eating bandwidth. How can I track this down?

I had similar a few 25.7 revs back, but now running the latest, seems ok.
I think I notice fastest throughput when I was running 25.7.3_7

Mini-pc N150 i226v x520, FREEDOM

Valid and recurring question. Aside from times when an OPN change requires a large increase in memory use, which is very rare, essentially comes to the fact that the qemu guest agent for freebsd is very limited. Note this is outside the control of opnsense. Any ballooning is unreported back to the host.
In short, all the memory use and freeing from the VM is unreported to the host by the agent.
You should be able to check differences by using top or htop IN the VM and compare the memory use with what is reported by Proxmox.

If you're referring to the memory use reported by Proxmox and you've recently upgraded to PVE9, this may be due to the change in the way PVE9 gathers memory stats vs what the FreeBSD qemu-agent provides.
VM Memory Consumption Shown is Higher
I've seen this after upgrading to PVE9 and now rely on telegraf stats to monitor opnsense memory use.