License server is unresponsive
search cancel

License server is unresponsive

book

Article ID: 462088

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

  • Initially, the Licenses shows unassigned on the host, the task to assign license fails with error 
    com.vmwore.cis.license.licenseserver.client.exception.LicenseServerException$UnexpectedLicenseServerException: License Server connection error: java.net.SocketTimeoutException: Read timed out
  • Initial troubleshooting, such as fixing port connectivity or rebooting the License Server, provides only temporary fix before the issue reoccurs. This behavior is noticed during large-scale host migrations (8.x to 9.0) or high-throughput provisioning scenarios.
  • License Server 9.1 becomes unresponsive or exhibits high memory consumption.
  • Duplicate asset records for the same host are visible in the license inventory.
    • Take an SSH session to VCF OPS as admin user
    • Run the below command to identify redundant asset
      su - postgres -c "/opt/vmware/vpostgres/current/bin/psql -d vcopsdb -p 5433 -c \"select * from vcf_license_server_assets where asset_uri in (select asset_uri from vcf_license_server_assets group by asset_uri having count(distinct component_product_family_version) > 1) order by asset_uri, component_product_family_version;\""

Environment

VMware Cloud Foundation (VCF) 9.1

Cause

  • A runtime deadlock risk exists within JDK 21 that can be triggered during high-throughput license operations, causing the License Server to hang.
  • Redundant 8.x asset records contribute to excessive memory consumption and unexpected service behavior.
  • The presence of duplicate asset records causes vCenter to initiate continuous inventory updates. This abnormal volume of requests exposes a minor memory leak within the License Server service.

Resolution

To stabilize the environment and resolve the connectivity issues, perform the following steps:

Workaround:

  1. Upgrade to 9.1.1 EP1
    Upgrade both VCF Operations and the License Server to version 9.1.1 EP1. This version utilizes Java 25, which addresses the underlying JDK deadlock risk observed in version 9.1.
  2. Resource Optimization
    Increase the vCPU count on impacted License Servers to better handle high-throughput scenarios and mitigate resource contention.
  3. Clean Up Legacy and Duplicate Records
    1. Remove 8.x Assets: Manually purge all legacy 8.x assets from the License Server to reduce memory overhead.
    2. Disable and then re-enable license management within EDC VCF Ops. This action clears duplicate entries and stabilizes synchronization between the License Server and vCenter.
      Reference article: Error: "Used Capacity is Higher Than Allocated Capacity for Licenses" in VCF Operations

 

Permanent Fix:

A permanent fix for the inventory sync behavior and the underlying memory leak will be included in VCF future release.