BackgroundI investigated an issue where a new Hyper-V virtual machine running Windows 7 would consume most of the physical memory after exactly 5 minutes of uptime. This would occur even if no applications were running.
I tried using the Windows Task Manager "Processes" tab to look at the memory being used but none of the processes listed (mostly services) had anywhere close to the amount of physical memory (8 GB) allocated.
After some initial searching I found this great SysInternals utility called RAMMap: https://technet.microsoft.com/en-us/sysinternals/rammap.aspx
Running RAMMap utility indicated that most of the memory was "Driver Locked". Using a Google search, I found this post: https://social.technet.microsoft.com/Forums/office/en-US/d4f97391-a70c-47b1-ab05-bab4754868ac/hyperv-dynamic-memory-driver-locked?forum=winserverhyperv
I found that the Windows 7 virtual machine was specified to use "Dynamic Memory".
After shutting down the virtual machine, I unchecked the "Enable Dynamic Memory" option in the Memory Settings for the virtual machine and set the startup memory to my fixed size. After restarting the virtual machine, I found that the physical memory usage no longer grew after 5 minutes.
Post a Comment