VMware Cloud Community
baber
Expert
Expert

See memory usage for a VM

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

Please mark helpful or correct if my answer resolved your issue.
11 Replies
Alex_Romeo
Leadership
Leadership

Hi,

from official document:

Memory (%)

Best Regards

Alessandro Romeo

Blog: https://www.aleadmin.it/
Reply
0 Kudos
baber
Expert
Expert

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

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
Alex_Romeo
Leadership
Leadership

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

Blog: https://www.aleadmin.it/
Reply
0 Kudos
baber
Expert
Expert

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

Is that correct ?

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
Alex_Romeo
Leadership
Leadership

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

Blog: https://www.aleadmin.it/
baber
Expert
Expert

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 ?

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
Alex_Romeo
Leadership
Leadership

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

Blog: https://www.aleadmin.it/
Reply
0 Kudos
baber
Expert
Expert

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 ?

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
Alex_Romeo
Leadership
Leadership

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-prod...

Best regards,

Alessandro Romeo

Blog: https://www.aleadmin.it/
baber
Expert
Expert

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 ?

Please mark helpful or correct if my answer resolved your issue.
Reply
0 Kudos
Alex_Romeo
Leadership
Leadership

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

Blog: https://www.aleadmin.it/
Reply
0 Kudos