This Question is Not Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
3 Replies Last post: Apr 14, 2009 5:03 AM by Prasenjit  
Click to view Prasenjit's profile   2 posts since
Apr 13, 2009

Apr 13, 2009 2:00 PM

Community Help wanted - How to Find ESX host's CPU Usage and Memory Usage

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

Click to view Steve Chambers's profile Admin's 213 posts since
May 31, 2008

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

 

Click to view Steve Chambers's profile Admin's 213 posts since
May 31, 2008

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
Unzip and untar the resulting tar file so that resxtop (or esxtop) can use it in replay mode.

 

 

 

 

 

 

 

In replay mode, resxtop (or esxtop) accepts the same set of interactive commands as in interactive mode and runs until there are no more snapshots collected by vm-support to be read or until the requested number of iterations are completed (see the command-line option n for more details).

 

Table A-16 lists the command-line options available for resxtop (or esxtop) replay mode.

 

 

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.
Runs resxtop (or esxtop) in Batch mode.
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.
Number of iterations. resxtop (or esxtop) updates the display this number of times and then exits.

More Like This

  • Retrieving data ...