- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is correct.
In fact that property was already deprecated since API 4.1
The other field you are pointing to only shows, afaik, part (consumed) of the overhead.
As they advise, you should use Get-Stat with the mem.overhead.average.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Correct.
Below post from William will help you as well.
Easily retrieve VM memory overhead using the vSphere 6.0 API | virtuallyGhetto
----------------------------------------------------------------
Thanks & Regards
Vikas, VCP70, MCTS on AD, SCJP6.0, VCF, vSphere with Tanzu specialist.
https://vThinkBeyondVM.com/about
-----------------------------------------------------------------
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks guys !!! All clear now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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