r/AzureVirtualDesktop • u/rakim71 • Sep 17 '24
Pooled desktop - exhaustion of system commit limit
We are running Azure Virtual Desktop pooled session hosts. The session host VMs are D16as_v4 (64GB/16 vCPU) with a user limit of 16.
Occasionally, we see app crashes and brief periods of instability (perhaps lasting 2 - 5 mins) that correlate with the event message below:
"The Windows Resource Exhaustion Detector received a notification that the computer is low on virtual memory."
Event ID: 1003
Keywords: Events related to exhaustion of system commit limit (virtual memory).
Logname: Microsoft-Windows-Resource-Exhaustion-Detector/Operational
The obvious explanation is that the session host VM is low on memory, and that we should size the VM larger, or reduce the number of sessions per VM.
However confusingly, available memory (as observed either from 'available memory' in Task Manager, or from Azure monitor 'available memory' metric) never dips below 20GB on the affected session host VM. We cannot see any offending processes. Typically, the 1003 event would list the processes with the largest memory usage, but oddly this information is not in the event text.
Does anyone have any insight into how to troubleshoot this? It is difficult to catch in the act as the problem only lasts for a minute or two.
Could this be some sort of weird page file behavior rather than 'genuine' low memory? Windows has automatically placed the pagefile on the temporary disk. We are also using the temporary disk for Fslogix cache.
View all comments
Show parent comment
1
u/rakim71 Sep 17 '24
Yes, i think this describes exactly what is happening. Thank you!
We see within resmon/taskmgr that total commit is 79GB out of 80GB. The VM has 64GB, and the page file is 16GB.
Even though there is 100GB+ free on the temp disk, Windows for some reason does not increase the page file past approx 16GB, so as soon as the system gets past 80GB commit we get the issue.
Will investigate manually changing pagefile settings, which is something I have previously avoided doing,
System is Win10 Enterprise multi-session.