Highlighted
Expert
Expert

VM Overhead memory

Jump to solution

I wanted to ask for confirmation about vm memory overhead.

Normally in vsphere 5 i could get vm memory overhead from :

$vm = get-vm X

$vm.ExtensionData.Runtime.MemoryOverhead


In my vsphere 6 env this is how runtime object looks like:

Device                    : {4000}

Host                      : HostSystem-host-10

ConnectionState           : connected

PowerState                : poweredOn

FaultToleranceState       : notConfigured

DasVmProtection           : VMware.Vim.VirtualMachineRuntimeInfoDasProtectionState

ToolsInstallerMounted     : False

SuspendTime               :

BootTime                  : 27/01/2016 17:06:37

SuspendInterval           : 0

Question                  :

MemoryOverhead            :                <= EMPTY

So i was wondering if now we should take it from :

$vm.ExtensionData.Summary.QuickStats.ConsumedOverheadMemory

Could somebody confirm that is expected behavior in 6 ?

Thank you !

--- @blog https://grzegorzkulikowski.info
0 Kudos
1 Solution

Accepted Solutions
Highlighted
VMware Employee
VMware Employee

Correct.

Below post from William will help you as well.

Easily retrieve VM memory overhead using the vSphere 6.0 API | virtuallyGhetto

If it is useful, plz mark answer as correct or helpful. ---------------------------------------------------------------- Thanks & Regards Vikas, VCP50, MCTS on AD, SCJP6.0. http://vThinkBeyondVM.com ----------------------------------------------------------------- Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

View solution in original post

0 Kudos
4 Replies
Highlighted
User Moderator
User Moderator

That is correct.

In fact that property was already deprecated since API 4.1

memoverhead1.png

The other field you are pointing to only shows, afaik, part (consumed) of the overhead.

overhead2.png

As they advise, you should use Get-Stat with the mem.overhead.average.

overhead3.png

Something like this.

I included both values, so you can see that there is a difference

$vm = Get-VM -Name MyVM

$vm.ExtensionData.Summary.QuickStats.ConsumedOverheadMemory

Get-Stat -Entity $vm -Stat mem.overhead.average -Realtime -MaxSamples 1


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Highlighted
VMware Employee
VMware Employee

Correct.

Below post from William will help you as well.

Easily retrieve VM memory overhead using the vSphere 6.0 API | virtuallyGhetto

If it is useful, plz mark answer as correct or helpful. ---------------------------------------------------------------- Thanks & Regards Vikas, VCP50, MCTS on AD, SCJP6.0. http://vThinkBeyondVM.com ----------------------------------------------------------------- Disclaimer: Any views or opinions expressed here are strictly my own. I am solely responsible for all content published here. Content published here is not read, reviewed or approved in advance by VMware and does not necessarily represent or reflect the views or opinions of VMware.

View solution in original post

0 Kudos
Highlighted
Expert
Expert

Many thanks guys !!! All clear now.

--- @blog https://grzegorzkulikowski.info
0 Kudos
Highlighted
User Moderator
User Moderator

Just remember that the OverheadManager returns the static overhead, while the PerformanceManger returns what is actually used.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos