[SOLVED] Windows VM Memory Full Issues

Sheerpython

New Member
Mar 17, 2021
7
0
1
23
Hello!

I have a Windows server 2019 VM setup with all the correct VIRTIO guest drivers installed (also ballooning) and its giving me some strange behavior.
Every time I boot the server the memory starts to fill up as shown in the images below.

Searching on the forum / google I could only find posts regarding the VIRTIO drivers and them not being installed, I repaired them but that didn't change anything.

Booting in safemode the problem still occurs

(Edit: this always happend, only server manager running)

Thanks for your help in advance!



1622665089819.png
1622665129652.png
 
Last edited:
So i did some monitoring of the resource monitor in windows while in safemode and the first screenshot just after it booted and the second screenshot is from when it was using around 14 gb of ram. I don't know where the ram usage is coming from, the resource monitor also doesn't seem to know.

1622676075028.png
1622676262227.png
 
Maybe it is just the caching of Windows? With virtio and ballooning working Proxmoxs GUI will show RAM utilization without Win caching. If ballooning isn't working Windows cache will be shown as used RAM.
 
Maybe it is just the caching of Windows? With virtio and ballooning working Proxmoxs GUI will show RAM utilization without Win caching. If ballooning isn't working Windows cache will be shown as used RAM.
The proxmox gui isn't the problem, even in the taskmaster and in the resource monitor it shows the ram high ram usage.
 
Well after debugging and trying to get it to work for an entire day I just wiped the Windows VM and fully reinstall it. Seems to have fixed the problem, still no clue what caused it.
 
Hi. I have the same problem and the same picture in both Windows Task Manager and Proxmox GUI. VirtIO drivers including balloon seem to be installed: when I run the VM, the RAM usage is low and after it becomes higher and higher (without VirtIO drivers, it was the maximum allowed for the VM right away from the start). Actually, it looks very much like caching because programs can be launched. However, some programs are "smart" and check the available RAM prior launching and say that there is no RAM for launching them.

Since I've just installed the VM, I'm not sure that after the reinstall everything will be fixed as for Sheerpython... Could somebody please help me localize the problem?

My best guess is that it's related to incorrectly installed drivers: maybe Windows installed some automatically before I installed VirtIO ones, so some of the latter weren't applied. Which drivers should I check?

1630262707538.png
1630262507002.png

1630262549641.png
1630262581581.png
1630262621711.png

UPD: moved here: https://forum.proxmox.com/threads/re-windows-vm-memory-full-issues.95357/.
 
Last edited:
I have the same problem with Win11 VM. I gave it 16GB, to begin with and it maxed out. Because this was on the lower side I thought I give it another 8GB (24 total) but right after the boot it is at 98% usage again so something is wrong. Did anyone figure out what is going on? Proxmox is set to balloon between 4GB and 24GB.

1673993315362.png
 
Ballooning will only kick in once the hosts RAM usage exceeds 80%.

Every OS, including Win11, will eat all RAM you throw at it. If it doesn`t need it for programs, it will use it for caching.

How PVE will show the VMs RAM usage depends on if you usethe QEMU guest agent or not.

With QEMU guest agent: shown used RAM is "used" - "cache". What it is shows as "free" is actually not free but "available".
Without QEMU guest agent: shown used RAM is the real RAM usage by the KVM process, so RAM used for caching counts as used too. What it shows as free is the amount of RAM that actually is free (so not used by the guest at all).
 
  • Like
Reactions: skn666
Same problem with Server 2021. RAM is 100% full in Windows, the server starts to lag.
photo_2023-01-18_15-11-07.jpg

As soon as I disable baloon in proxmox VM properties, RAM is freed immediately

photo_2023-01-18_15-16-03.jpg
 
Last edited:
Same issue,
Tried with all display drivers, different virtio driver versions, still happening, no clue on what to do next :(
 
Experiencing the same with W7.

if all available RAM is being used by Windows as cache, then that's ok. However, the problem is it's making the system go slow.

Also, using RamMap, majority of usage shows as "Driver Locked":

1710202605987.png

What does that mean? It's locked by Ballooning driver and not usable by the VM?
 
Fixed by my side:

- Missing in some machines virtio driver
- Ethernet card was not virtio, that caused issues
- Some additional hardware was not virtio (hard disk is an exception)

Also, all machines must a restart after apply the changes.

EDIT: NOT FIXED
It was working for a days, but randomly it crashed again (I did no update to the real machine).
 
Last edited:
I'm facing the same issue. Anyone else experiencing this?

32GB VM with 26GB eaten by "Driver Locked", exactly the same as faced by the OP
 
I'm facing the same issue. Anyone else experiencing this?

32GB VM with 26GB eaten by "Driver Locked", exactly the same as faced by the OP

I fixed time ago changing (downgrading) the kernel, do not remember the exact version.
Since 15 days, I migrated to intel due reboot issues, also I had no issues with bouncing and any kind of configuration (until now), just with the machine speed (are very slows, but maybe because I'm using an HDD instead of SSD/NVME)
 

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!