Using vmkusage to Isolate Performance Problems

Similar documents
VERSION 1.0. VMware Guest SDK. Programming Guide

Comparison of Storage Protocol Performance ESX Server 3.5

NIC TEAMING IEEE 802.3ad

Configuration Maximums VMware Infrastructure 3: ESX Server 3.5 Update 2, ESX Server 3i version 3.5 Update 2, VirtualCenter 2.

Large Page Performance ESX Server 3.5 and ESX Server 3i v3.5

Programming Guide Guest SDK 3.5

Enforcing Patch Management

VMware Virtual Machine Importer User s Manual

Recommendations for Aligning VMFS Partitions

Configuring iscsi in a VMware ESX Server 3 Environment B E S T P R A C T I C E S

Notes on Using the Beta VMware Importer Tool on Your Mac VMware Importer 1 Beta 2

Extending Your Patch Management Framework

Getting Started with VMware Fusion VMware Fusion for Mac OS X Version 1.0

Guest Operating System Installation Guide. February 25, 2008

Guest Operating System Installation Guide. March 14, 2008

VMware vcenter AppSpeed User s Guide AppSpeed 1.0 EN

VDI Server Sizing and Scaling

Guest Operating System Installation Guide. May 28, 2008

Measuring VMware Environments

What s New in VMware vsphere 4.1 Performance. VMware vsphere 4.1

Resource Management Guide ESX Server and VirtualCenter 2.0.1

vcenter CapacityIQ Installation Guide

Resource Management Guide. ESX Server 3 and VirtualCenter 2

VMware Infrastructure 3 Primer Update 2 and later for ESX Server 3.5, ESX Server 3i version 3.5, VirtualCenter 2.5

Thin Client Compatibility Guide For VMware Virtual Desktop Manager (VDM)

Storage Compatibility Guide for ESX Server 3.0

Getting Started with ESX Server 3i Embedded ESX Server 3i version 3.5 Embedded and VirtualCenter 2.5

Getting Started with ESXi Embedded

W H I T E P A P E R. Comparison of Storage Protocol Performance in VMware vsphere 4

EXPLORING MONITORING AND ANALYTICS VMware Horizon

VMware vfabric Data Director Installation Guide

VERSION 2.1. Installation Guide

Performance of Virtual Desktops in a VMware Infrastructure 3 Environment VMware ESX 3.5 Update 2

VMware Infrastructure 3

vsphere Guest Programming Guide VMware vsphere Guest SDK 4.0

Using vrealize Operations Tenant App for vcloud Director as a Tenant Admin

Managing Guest Workers

VMware vcloud Air User's Guide

Virtual Infrastructure Web Access Administrator s Guide ESX Server 3.0 and VirtualCenter 2.0

VERSION 2.0. Installation Guide

vcenter CapacityIQ Installation Guide

Configuration Maximums VMware vsphere 5.0

VIRTUAL APPLIANCES. Frequently Asked Questions (FAQ)

Getting Started with ESX Server 3i Installable Update 2 and later for ESX Server 3i version 3.5 Installable and VirtualCenter 2.5

VMware vrealize Operations for Horizon Administration

Administration Guide VMware ESX Server 2

VMware vfabric Data Director Installation Guide

Setup for Microsoft Cluster Service Update 1 Release for ESX Server 3.5, ESX Server 3i version 3.5, VirtualCenter 2.5

Mission Control 5.0. Mission Control Admin Guide. January, 2016

System Monitor - Performance Monitoring Services 5.8 User's Guide

VMware vrealize Operations for Horizon Administration. 20 SEP 2018 VMware vrealize Operations for Horizon 6.6

vcenter Operations Manager for Horizon View Administration

VMware vrealize Operations for Horizon Administration. Modified on 3 JUL 2018 VMware vrealize Operations for Horizon 6.4

Red Hat enterprise virtualization 3.0

VMware vsphere Optimize and Scale [v5.5] Custom Lab 12 Diagnosing CPU performance issues Copyright 2014 Global Knowledge Network Training Ltd.

VMware vrealize Operations for Horizon Administration

vsphere Update Manager Installation and Administration Guide 17 APR 2018 VMware vsphere 6.7 vsphere Update Manager 6.7

vcloud Director Administrator's Guide

Parallels Virtuozzo Containers 4.6 for Linux Readme

vcenter Operations Management Pack for NSX-vSphere

Multi-Tenancy in vrealize Orchestrator. vrealize Orchestrator 7.4

Server Virtualization Approaches

BlackBerry AtHoc Networked Crisis Communication Capacity Planning Guidelines. AtHoc SMS Codes

VMware vrealize Operations for Horizon Administration

Systemwalker Service Quality Coordinator. Technical Guide. Windows/Solaris/Linux

Parallels Containers 6.0 for Windows

Basic System Administration ESX Server and Virtual Center 2.0.1

VMware vsphere Storage Appliance Installation and Configuration

VMware Infrastructure Update 1 for Dell PowerEdge Systems. Deployment Guide. support.dell.com

vsphere Networking Update 2 VMware vsphere 5.5 VMware ESXi 5.5 vcenter Server 5.5 EN

vrealize Operations Management Pack for NSX for Multi-Hypervisor

Monitor Qlik Sense sites. Qlik Sense Copyright QlikTech International AB. All rights reserved.

Lifecycle Manager User's Guide

VMware vrealize Configuration Manager SQL Migration Helper Tool User's Guide vrealize Configuration Manager 5.8

VMware vsphere Replication Administration. vsphere Replication 8.1

User's Guide. System Monitor - Performance Monitoring Services 5.0

Virtual Infrastructure Web Access Administrator s Guide Update 2 and later for ESX Server 3.5 and VirtualCenter 2.5

vcloud Automation Center Reference Architecture vcloud Automation Center 5.2

VMware vcenter Configuration Manager and VMware vcenter Application Discovery Manager Integration Guide

How To Add a New VMware ESX Server 2.5 to Your Production Environment. Paco Abal Systems Administrator San Sebastian Town Council SPAIN

VMWARE VSPHERE FEATURE COMPARISON

Guideline for the installation of C-MOR Video Surveillance Virtual Machine on VMware ESX Server

VMware vsphere Data Protection Evaluation Guide REVISED APRIL 2015

Systemwalker Service Quality Coordinator. Technical Guide. Windows/Solaris/Linux

Protecting Mission-Critical Workloads with VMware Fault Tolerance W H I T E P A P E R

vsphere Replication for Disaster Recovery to Cloud

VMware vcenter AppSpeed Installation and Upgrade Guide AppSpeed 1.2

QuickStart Guide vcenter Server Heartbeat 5.5 Update 1 EN

Application Guide. Connection Broker. Advanced Connection and Capacity Management For Hybrid Clouds


What s New in VMware vsphere 5.1 Platform

Setting Up the DR Series System on Veeam

Reference Architecture

VMware Overview VMware Infrastructure 3: Install and Configure Rev C Copyright 2007 VMware, Inc. All rights reserved.

Red Hat enterprise virtualization 3.1 feature comparison

Double-Take Move. Double-Take Move System Center Integration Toolkit User's Guide

vsphere Replication for Disaster Recovery to Cloud vsphere Replication 6.5

VMware Infrastructure Update 1 for Dell PowerEdge Systems. Deployment Guide. support.dell.com

Reference Architecture. Modified on 17 AUG 2017 vrealize Operations Manager 6.6

Network Management Utility

Transcription:

VMWARE TECHNICAL TROUBLESHOOTING NOTE VMware ESX Server 2 Using vmkusage to Isolate Performance Problems The web-based vmkusage utility displays historical graphs that show physical server, ESX Server system and virtual machine statistics. By default, these graphs show the most recent, daily and weekly data. The vmkusage utility gathers the statistics it uses to generated the graphs from the ESX Server machine s /proc nodes. Samples are taken every minute and the graphs are regenerated every five minutes with the average of one-minute statistics over five-minute intervals. The web pages generated by the vmkusage utility show CPU utilization, memory utilization, network use and disk use (both I/O operations and bandwidth). There are system aggregate, per-virtual machine, storage and networking-focused views of the data. You can use this information to isolate performance problems or observe longer-term trends for capacity planning. The vmkusage utility s disk usage and execution speed are non-intrusive. Typically, disk usage is around.5mb per virtual machine and execution speed is 180 to 200 ms per minute for data collection, and three to five seconds every five minutes for graph generation. The vmkusage utility is designed to be run as a cron job which is installed with the vmkusagectl auxiliary utility. It can also be run from the ESX Server console command line or from a script. This paper describes running vmkusage as a cron job. The following sections describe the process of using vmkusage to troubleshoot a suspected performance problem. Starting vmkusage on page 1 Using vmkusage on page 2 Starting vmkusage The vmkusage utility is installed by default beginning with ESX Server 2.1, but is not started until you use the vmkusagectl install command. Note: If you have not upgraded to ESX Server 2.1 or later, see the VMware Knowledge Base article 1078 for instructions on how to download, install and start vmkusage. Perform the following steps to start vmkusage as a cron job. 1. Log on to an ESX Server console as root. 2. Run the vmkusagectl install command. The syntax for vmkusagectl is: 1

vmkusagectl [options] The available options include: Option Description install Starts vmkusage and removes any existing vmkusage databases. uninstall Stops vmkusage. cleandb Removes any existing vmkusage databases. support Creates a compressed tar file (tar ball) containing the vmkusage database, graphs and HTML files. You can un-tar this file on any machine and view the graphs in a Web browser because the links are relative. save Saves the vmkusage database to a file. hyper Collects statistics every ten seconds and generates graphs every five minutes. The default is to collect statistics every minute and generate graphs every five minutes. Note: Hyper mode consumes additional CPU resources because of increased sampling rate and should be used only to diagnose problems, not in production. * Prints vmkusagectl usage to the screen. Using vmkusage To view the performance history of an ESX Server machine, open a Web browser and enter the URL of the ESX Server machine, using the format http://<esxservername>/ vmkusage. For example, entering the following sample URL: http://esxserver1.svc.com/vmkusage Causes its vmkusage Web page displaying an overview of the system to appear. 2

The first row of graphs, labeled System, shows total system resource utilization. The subsequent rows of graphs. labeled with their respective virtual machine s WID and name, show per-virtual machine resource utilization. The virtual machine labels are links to pages that show their graphs in greater detail. In this example, if you click the first virtual machine s label, the following page appears: Analyzing CPU Usage This section describes how to analyze system CPU loading, percentage of individual CPU use and individual virtual machine CPU use. The following is an example of a Recent historical graph for a dual-cpu virtual machine. The CPU time is split into %CPU for VCPU0 (as a percentage of a single CPU) and %CPU for VCPU1. 3

Examine ready0 and ready1 for the percentage of time that the virtual machine was ready but could not get scheduled to run on a physical CPU. Under normal operating conditions, this value should remain under 5%. Examine vcpu0 and vcpu1 for the percentage of physical CPU resources used by a VCPU. If the physical CPU resources are running at full capacity, you can use these percentages to identify a virtual machine that is using a large amount of physical CPU resources. If a VCPU consistently saturates the physical CPU resources, possible fixes include: Decreasing the number of virtual machines running on the ESX Server machine. Moving the virtual machine to a different ESX Server machine that has more physical CPU resources. Note: Possible causes of application problems for a VCPU that consistently saturates the physical CPU resources include: A screen saver is running (you should turn off screen savers on virtual machines). The application has a software bug. The application might not be a candidate for virtualization. Analyzing Memory Usage This section describes how to analyze memory usage. The vmkusage utility displays the total amount of memory in use. The maximum of the vmkusage plot is the total amount of memory currently allocated on the host. The following figure is an example of a Recent historical graph for a dual-cpu virtual machine. The graph shows memory usage where size is the maximum amount of memory available to the virtual machine. The memory graphs in vmkusage represent the memory the virtual machines are consuming, not the amount of physical memory (after sharing) used. The descriptions of the graph lines are: Graph Line target size swapped Description Target size of how much memory should be allocated to the virtual machine. Current amount of memory the virtual machine has (size should approach target, and they are often equal). Amount of swap space used by the virtual machine. 4

Graph Line shared balloon active Description Amount of memory this virtual machine has marked shared, and can be shared either with itself or other virtual machines. Amount of memory ballooned out by the ESX Server machine. Amount of its allocated memory that the virtual machine actively used. For example, when the ESX Server machine is short on memory, you usually see from the graphs that the balloon driver starts using a lot of memory. If you are hitting swap and not seeing the balloon driver using a lot of memory, you should check that the VMware tools are installed correctly on your guest operating systems. Assessing Disk and Network Usage This section describes how to analyze disk and network usage. The following figures are examples of a Recent historical graph for a dual-cpu virtual machine. You see a graph for each vmhba showing both number of I/Os and bytes per second that are read and written. 5

You see a graph for each NIC showing both the number of packets and the MBytes per second that are transmitted and received. Examine the disk and NIC activity. If the throughput either is not meeting expectations or is approaching the maximum capacity of the hardware device, there is a potential for a performance bottleneck. VMware, Inc. 3145 Porter Drive Palo Alto, CA 94304 www.vmware.com Copyright 1998-2005 VMware, Inc. All rights reserved. Protected by one or more of U.S. Patent Nos. 6,397,242, 6,496,847, 6,704,925, 6,711,672, 6,725,289, 6,735,601, 6,785,886, 6,789,156 and 6,795,966; patents pending. VMware is a registered trademark and the VMware boxes logo, GSX Server, ESX Server, Virtual SMP, VMotion and VMware ACE are trademarks of VMware, Inc. Microsoft, Windows, and Windows NT are registered trademarks of Microsoft Corporation. Linux is a registered trademark of Linus Torvalds. All other marks and names mentioned herein may be trademarks of their respective companies. Revision 20050322 Version 1.0 Item: ESX-PFP-Q501-002 6