Link to home
Start Free TrialLog in
Avatar of LesterClayton
LesterClaytonFlag for Norway

asked on

Vmware 4.1 Consuming Configured Memory

I have a VMware ESX 4.1 server running with 16 GB of RAM, 4 virtual machines of which 3 of them are configured for 4 GB RAM each.  They are not using all of the memory, however VMware has still allocated all of the memory for the Virtual Machine, rather than dynamically allocating memory as it's needed.

As you can see with the screenshot, the Host Memory consumed is the same as the VM allocated memory

User generated image
How can I get it to only use memory on demand?

VMware 4.1 ESX
No VCenter Server Involved.
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

what does the summary for the Host Memory look like.

Although you have allocated 3x4GB, total 12GB that will only be used when all VMs use it, vSphere does not support Dynamic Memory like HyperV, but does support overcommitting of memory.

using memory you not physically have.
also the esx host will use some memory
Avatar of LesterClayton

ASKER

I appreciate the input, I will provide some more detail and screenshots as I am able
As you can see, the memory usage is 13 GB,

User generated image
And it seems to be as a result of the virtual machines using up all the allocated memory.

User generated image
I was under the impression that VMware only allocated the consumed memory from the guests
from those stats, actual memory consumed from host is 13GB

each guest is actually using 4121GB each.

check the Active memory figure per guest.
have you made any Guest Memory Reservations, as the Guest Memory usage is very low, but the memory looks like its been reserved which then Guarantees the memory, eg its taken from the host pool, and is always guaranteed to be available.
how have the virtual machine settings been configured, three of the VMs compared to the pFsense Router
The pFsense router has been configured to use 256 MB Memory, and according to the Resource Allocation Screen (Shown below) it's consumed 272 MB.

User generated image
Sorry I missed your other question.  It looks like I'm not using any memory reservation (0 MB), and here is another server to compare with.

User generated image
have you installed VMware Tools in the VM?

Check VM settings options memory.
Yes, VMware tools are installed, first thing I checked.  I probably should have mentioned it.

User generated image
As you can see the Windows box is not using all the 4 GB memory.

User generated image
At one point, your VMs, must have requested this much memory, and these are the high water mark values, still in use, that will be released if other VMs require the memory, by using the Balloon Driver in VMware Tools.

User generated image
See screenshot, this is a Windows 2008 R2 64bit DC, allocated 4GB, Guest Using 40MB, but current usage from host is 902MB, because that was requested, and current Host memory pressure is okay.
If I restarted the virtual severs, should their memory payload be lower?  Because this does not happen.  You can see that the Windows server I posted has been up for 1 day and 18 hours, yet it is "consuming" 4 GB RAM.
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'll accept your last statement, as it's proven to be true with testing.  Thank you.  Here you can see the memory usage on the 3 other machines have dropped down the moment I requested more memory for a new virtual machine.

User generated image
Thanks for your patience and explanation.  I am ashamed becuase I am VCP 3 and 4 and should have realised this myself.  I blame my superiors for forcing me to use an inferior product - Hyper-V :(
Yes, that's Memory Reclaim and Balloon Driver in action.

No problems, often worth bouncing ideas off a fresh "head"!

it's often confusing working with different vendor hypervisors, but both are good products.