Enterprise Hybrid Cloud:如何通过增加 vAPI 堆内存来修复或防止可能导致 VMware vAPI 端点服务崩溃的问题
Summary: 如何通过增加 vAPI 堆内存来修复或防止可能导致 VMware vAPI 端点服务崩溃的问题。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
vAPI 端点服务 (vmware-vapi-endpoint) 表现出以下一个或多个症状:CrashesHealth 更改为“黄色”或“红色” 将写入 Java 转储 (*.hprof) 文件:/var/log/vmware/vapi/endpoint/java_pidXXXX.hprof /var/log/vmware/vapi/endpoint/endpoint.log 报告包含“OutOfMemoryError”的消息,例如:由以下原因引起:java.lang.OutOfMemoryError:超出 GC 开销限制
VMware vAPI 端点服务 (vmware-vapi-endpoint) 的默认值约为 256 MB 堆内存。大量使用 VMware vCenter Server API 的环境可能会耗尽此服务。
要解决此问题,请增加分配给 vAPI 端点服务的堆内存量。
-
在进行任何更改之前,请确保已备份 vCenter Server Appliance。
-
在命令行(SSH 或控制台)上连接到 vCenter Server Appliance。
-
使用以下命令检查分配给 vAPI 端点 (vmware-vapi-endpoint) 的当前堆内存:
cloudvm-ram-size -l | grep vmware-vapi-endpoint
-
如果此值等于或接近值 256,请使用以下命令将其翻倍到 512:
cloudvm-ram-size -C 512 vmware-vapi-endpoint
-
停止然后启动 vAPI 端点服务,以使更改生效:
service-control --stop vmware-vapi-endpoint service-control --start vmware-vapi-endpoint
提醒:如果 VMware vAPI 端点服务堆内存之前已增加到 512 MB 或更多,请向 VMware 技术支持部门提出支持请求以进行进一步审查。
对于大多数存在 vAPI 端点“OutOfMemory”错误的环境,将初始配置加倍可提供足够的堆内存来防止问题再次出现。
Affected Products
Enterprise Hybrid CloudArticle Properties
Article Number: 000194989
Article Type: How To
Last Modified: 13 Jun 2025
Version: 2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.