Often I have been asked this question that how do you check the ESX Host's CPU and Memory Usage. We can easily check this by clicking on the host on the Virtual Center and can see the CPU Usage. Also at the same screen I can see the Memory Usage as well.
For an example I assume I am having a box of 8 CPU each 3.2 GHz. So at the Summary screen I can see that CPU Usage as : 8303 MHz.
Now for memory I can see that I have a memory of 32GB and usage is 10GB.
So the real question here is I need to know these usage (CPU and Memory) from vm-support log files. I want to replay the log file and want to know what is the usage for these two resources.
Thanks in advance.
Rg,
Prasenjit S
Hi Prasenjit, let me see if I understand correctly: you want to analyze the vm-support file to show historical Host CPU and Memory usage? From your question I'm making the assumption that you need to data from vm-support file instead of using the VC performance charts (why - there are a few possible reasons, I'm interested in yours...).
If you could elaborate a little on your reasons, perhaps with an example of the kind of output you want to provide, that would be really helpful.
Ta,
Steve
Re; replaying, have you seen this page in the online docs:
Resource Management Guide : Appendix: Performance Monitoring Utilities: resxtop and esxtop : Using the Utilities in Replay Mode
n replay mode, resxtop (or esxtop) replays resource utilization statistics collected using vm-support. See the vm-support man page.
1 | Run vm-support in snapshot mode on the ESX Server service console (ESX Server 3 only). |
2 |
Show all statistics. This option overrides configuration file setups and shows all statistics. The configuration file can be the default ~/.esxtop310rc configuration file or a user-defined configuration file. | |
Load a user-defined configuration file. If the -coption is not used, the default configuration file name is ~/.esxtop310rc. Create your own configuration file and specify a different file name using the W single-key interactive command. See Interactive Mode Single-Key Commands for information about W. | |
Specifies the delay between panel updates. The default is five seconds. The minimum is two seconds. If a delay of less than two seconds is specified, the delay is set to two seconds. | |
Hi Steve,
Thanks for your co-operation. Now lemme draw a diagram so that you can understand my requirement.
When I am clicking on the ESX Host and on the summary page I can see at the Resource section that how much CPU Usage and Memory usages are at this moment. So now my requirement is I want to know which file in vm-support can tell me this.
I am quite sure that there must be some files to tell me this result. Now why I require this is I have written an application which can replay the whole vm-support and can give me the each and every result related to this particular Host. Basically I have replayed the VC in my own way using the VC. So using this application I want to visualize the Resource section of a ESX host (CPU Usage and Memory Usage).
Also I want to achieve the same thing for the VMs as well like the way it is today showing under VC -> select VM -> go to Sumarry Page -> See the Resource Section. I am uploading the screenshot.
Copyright © 2008 VMware, Inc. All rights reserved.

