vCenter

 View Only
Expand all | Collapse all

See memory usage for a VM

  • 1.  See memory usage for a VM

    Posted Aug 17, 2019 10:12 AM

    Dear all

    Hi

    I want see memory usage on one of my vm but in chart option there are many items such as active and consumed no want to know which one show memory usage ?

    BR



  • 2.  RE: See memory usage for a VM

    Posted Aug 17, 2019 11:24 AM

    Hi,

    from official document:

    Memory (%)

    Best Regards

    Alessandro Romeo



  • 3.  RE: See memory usage for a VM

    Posted Aug 17, 2019 03:36 PM

    Dear AlessandroRomeo68

    Thanks.

    Previously i was read that document

    but if you see chart option for a VM performance about memory you will see follow parameters :

    Active , Active write, Balloon target, compressed , compression rate, compression saved, consumed, decompress rate, grant, host consumed , host cache consumed , overhead, share, swap in , swap out , .........

    As you see there is not any parameter such as usage that has been mentioned in that document .

    Actually now i want to see realtime  memory usage , which parameter do i had to see ?

    BR

    Babak



  • 4.  RE: See memory usage for a VM

    Posted Aug 17, 2019 07:31 PM

    Hi,

    You can use PowerCLI

    VMware PowerCLI Cmdlets Reference

    -------------- Example 4 --------------

    Get-VM -Name "MyVM" | Get-Stat -Stat "mem.usage.average" -Start $MyStartDateTime -Finish $MyFinishDateTime -MaxSamples 10

    Retrieves the average memory usage statistics for the specified virtual machine between the specified start and finish date and time. The maximum number of retrieved samples is limited to 10.

    -------------- Example 5 --------------

    Get-VM -Name "MyVM" | Get-Stat -CPU -Memory -Realtime

    Retrieves the real-time CPU and memory usage statistics for the specified virtual machine.

    OR

    https://geek-university.com/vmware-esxi/monitor-active-memory-utilization/

    Alessandro Romeo



  • 5.  RE: See memory usage for a VM

    Posted Aug 18, 2019 03:55 AM

    As I understood active memory is such as memory usage in real time

    Is that correct ?



  • 6.  RE: See memory usage for a VM

    Posted Aug 18, 2019 05:54 AM

    Yes,

    • The "active memory" is the one actually used at that time by the VM processes

    • The "memory consumed" is the memory allocated by the ESXi for that VM

    Best regards

    Alessandro Romeo



  • 7.  RE: See memory usage for a VM

    Posted Aug 18, 2019 06:25 AM

    now i have created a VM with 32GB memory according attach pic avg for consumed is about 20GB

    is that means in this time it allocates 20GB of 32GB memory ?



  • 8.  RE: See memory usage for a VM

    Posted Aug 18, 2019 06:52 AM

    Hi,

    Yes, if memory consumed is 20 Gb.

    Don't worry too much about "consumed", it is a memory that the VM's operating system uses to cache disk accesses (it uses it because it has it available).

    Keep in mind that this value varies depending on the application. In the end it all depends on what runs on that VM, there could be processes that sleep all the time but that at particular times require a lot of system resources.

    What processes were running on VM at that time that you scored 20 GB?

    Are the consumption of 20 GB of memory fixed?

    Alessandro Romeo



  • 9.  RE: See memory usage for a VM

    Posted Aug 18, 2019 07:31 AM

    According attach pic 20GB is average consumed memory

    Actually just running java (jboss) application server on that vm

    2 - while i want see a report for a period time for example 24 hours there is not Active parameter to select in this mode do i had to select consumed ?



  • 10.  RE: See memory usage for a VM

    Posted Aug 18, 2019 07:51 AM

    Hi

    Clearly is needed to take a long-term average. You can also monitor Jboss consumption.

    https://stackoverflow.com/questions/51203969/how-to-monitor-java-heap-memory-usage-in-jboss-eap-production-server

    Best regards,

    Alessandro Romeo



  • 11.  RE: See memory usage for a VM

    Posted Aug 18, 2019 08:04 AM

    while i want see a report for a period time for example 24 hours there is not Active parameter to select in this mode do i had to select consumed ?



  • 12.  RE: See memory usage for a VM

    Posted Aug 18, 2019 08:42 AM

    Hi,

    Get VMs CPU and Memory Daily Usage

    Use Performan graphics and select the chart for 24 hours.

    Or with PowerCLI as I said in the previous emails, you create a 24-hour report.

    Alessandro Romeo