Increase the amount of heap memory allocated to the vAPI Endpoint service.
1. Ensure the vCenter Server Appliance has been backed up before making any changes
2. Connect to your vCenter Server Appliance on the command line (SSH or console)
3. Check the current heap memory allocated to vAPI Endpoint (vmware-vapi-endpoint) with the following command:
cloudvm-ram-size -l | grep vmware-vapi-endpoint
4. If this value is at or close to a value of 256, double it to 512 with the following command:
cloudvm-ram-size -C 512 vmware-vapi-endpoint
5. Stop and start the vAPI Endpoint service for the change to take effect:
service-control --stop vmware-vapi-endpoint
service-control --start vmware-vapi-endpoint
Note - if the VMware vAPI Endpoint service heap memory has already been increased to 512 MB or greater, open a support request with VMware Technical Support for further review.
For most environments with vAPI Endpoint "OutOfMemory" errors, doubling the initial configuration provides enough heap memory to prevent recurrence of the issue.