Troubleshooting VM Performance and Disconnects using VMware Aria Operations
search cancel

Troubleshooting VM Performance and Disconnects using VMware Aria Operations

book

Article ID: 463443

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

This article provides a methodology for using VMware Aria Operations to diagnose VM performance degradation, high CPU contention, and memory exhaustion that can lead to guest operating system disconnects or application failures.

Environment

VMware vSphere ESXi

Vmware NSX

Resolution

To troubleshoot virtual machine disconnects and performance issues on ESXi effectively, you must gather specific environment and object-level scoping data. This helps correlate the disconnect events with underlying resource stress, such as storage latency or network driver mismatches.

Required Scoping Info: VM Disconnects & Performance

Gather the following Scoping Details before starting log analysis or Aria Operations metric reviews:

  • vSphere Environment Details:
    • ESXi Version & Build: (e.g., ESXi 8.0 Update 2, Build 23305546)
    • vCenter Version:
    • Hardware Vendor/Model: (e.g., Dell PowerEdge R7625)
    • NSX Version : 
  • Impacted VM Details:
    • VM Name(s):
    • Guest OS:
    • IP Address:
    • MAC Address:
    • Virtual NIC Type: (e.g., VMXNET3)
  • Infrastructure Context:
    • Host(s) Name & IP: Where impacted VMs are currently residing.
    • Datastore Name/Type: (e.g., NFS, VMFS-6, vSAN)
    • Network Portgroup/VLAN:
  • Event Timeline:
    • Exact Timestamp of Disconnect: (Specify Timezone)
    • Frequency: (Random, Periodic, or during specific tasks like vMotion/Snapshots)
  • Recent Changes: Any host/VIB upgrades, firmware updates, or physical network changes.
  • Alarms : Find the host Go to alrams page in VROPs and share if any recent alarms

1. CPU Contention Analysis

High CPU contention occurs when a virtual machine requires CPU resources, but none are currently available on the physical host. This is often caused by host-level overprovisioning.

  • Key Metric: CPU Contention (%)
    • Description: Represents the percentage of time the VM was unable to run because it was waiting for access to physical CPU resources.
    • Thresholds:
      • < 5%: Normal operating range.
      • 5% – 10%: Warning; indicates potential resource constraints [1].
      • > 10%: Critical; severe contention likely impacting application performance [1].
  • How to view the CPU Contention Graph:
    1. Search for the impacted Virtual Machine in the global search bar.
    2. Navigate to Metrics > CPU > Contention (%).
    3. Select a custom time range to correlate with reported disconnect events.

2. Memory Utilization and Alarms

Memory exhaustion can trigger guest OS "Out of Memory" (OOM) killers or cause the VM to become unresponsive, leading to a perceived disconnect from management tools.

  • Key Metric: Memory Usage (%)
    • Description: The percentage of configured memory currently in use by the guest OS.
    • Indicative Metrics:
      • Memory|Usage (%): High sustained usage (e.g., > 90%) indicates a need for rightsizing.
      • Memory|Balloon (KB): Indicates the host is reclaiming memory from the VM, which can lead to performance drops.
      • Memory|Swap Out Rate (KBps): A critical indicator that the host is swapping VM memory to disk due to severe host-level memory pressure.

3. Diagnosing VM Disconnects

When a VM shows as "Not Responding" or users experience disconnects, use the following triage steps in Aria Operations:

Correlate with Alarms: Review the Alerts tab in Aria Operations to check for "Host CPU usage" or "Virtual machine memory usage" alarms triggered during the incident window [3].

Additional CPU Performance Metrics

While CPU Usage (%) measures the time a CPU was active, it does not represent execution speed or throughput. For a comprehensive analysis, include these metrics:

  • CPU Ready (%): The percentage of time a VM was ready to run but had to wait in a queue for host CPU resources.
  • Co-Stop (%): Indicates the time a multi-vCPU VM is ready to run but is delayed due to co-scheduling constraints.
  • CPU Contention Calculation (Aria Operations 8.18+):
    • Formula: CPU|Contention (%) = (Co-Stop + Overlap + Ready + Wait) / (300000 * <#vCPUs>) * 100 [1].
    • Note: In versions prior to 8.18, contention was mapped to CPU Latency, which could show values up to 37.5% due to frequency scaling even without performance issues [4].

 

Additional Information

Handling Log Bundles for offline review with Broadcom support