1、首先我们打开计算机系统的任务管理器查看当前虚拟机中有多少可用内存,如下图所示:

2、然后利用Performance Monitor,即通过Hyper-V Dynamic Memroy Integration Service的Mbytes性能计数器来查看Maximum Memory,如下图所示:

3、在虚拟机内以管理员身份打开windows powershell,然后运行以下命令:get-counter "Hyper-v Dynamic Memory Integration ServiceMaximum Memory, Mbytes").CounterSamples.CookedValue。如下图所示:
