vCenter Server service crash observed after enabling 3rd party monitoring/data collection tool
search cancel

vCenter Server service crash observed after enabling 3rd party monitoring/data collection tool

book

Article ID: 435679

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • Users experience frequent vSphere Client session failures.
  • The vCenter Server service (vpxd) stops unexpectedly or crashes multiple times per day.
  • In /var/log/vmware/vmon/vmon-coredumper.log, you see entries similar to: Notify vMon about vpxd-worker dumping core.
  • In /var/log/vmware/vpx/vpxd.log, a panic is recorded due to memory exhaustion: Current value [XXXX] exceeds hard limit [YYYY]. Shutting down process. Panic: Memory exceeds hard limit.

Cause

The vpxd process crashes when its memory consumption reaches the configured hard limit. This is caused by third-party monitoring clients or custom scripts that use the RetrievePropertiesEx API call but do not properly manage the session lifecycle.

Specifically, if a client initiates a property retrieval but fails to either:

  1. Complete the retrieval of all chunks using ContinueRetrievePropertiesEx.
  2. Cancel the retrieval using cancelRetrievePropertiesEx.

The vCenter Server maintains the retrieval state in memory, leading to a steady increase in memory consumption until the hard limit is reached.

Resolution

Immediate Workaround

Identify and temporarily shut down the monitoring clients or scripts associated with the offending IP addresses to stabilize the vCenter Server.

Permanent Fix

Ensure all API clients utilizing RetrievePropertiesEx adhere to the VMware API specifications:

  1. Iterate through all chunks: If the RetrieveResult contains a token, the client must call ContinueRetrievePropertiesEx until no more tokens are returned.
  2. Explicitly Cancel: If the client does not intend to retrieve the remaining pages, it must call cancelRetrievePropertiesEx to release the server-side resources.

Additional Information

Diagnostic Steps

  • To identify the problematic clients, review the vCenter Profiler logs and look for UnfinishedRetrieversCnt associated with specific ClientIP and Username values. Consistent increase in the value over the time indicate the client is not correctly calling the API.
    Example log pattern: --> /SessionStats/SessionPool/Session/Id='...' /Username='...' /ClientIP='x.x.x.x' /PropertyCollector/UnfinishedRetrieversCnt/total [Value]
  • Verify current memory limits using the following command on the vCenter Server Appliance (VCSA):
    cloudvm-ram-size -C vmware-vpxd