BOSH Director tasks hang during Apply Changes while waiting for CPI calls to vCenter to complete. There's no timeout for the call and BOSH expects the CPI to exit but it doesn't. This is due to a lack of resources in the vSphere API client. The vAPI process on the vSphere server is limited to 256MB of memory by default.
To confirm, look for 'outofmemory
' errors in the following log: \var\log\vmware\vapi\endpoint.log
Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.List]: Factory method 'getComponents' threw exception; nested exception is java.lang.OutOfMemoryError: Java heap space
vAPI Endpoint - provides a single point of access to vAPI services
Note: Service names may vary between vCenter Server versions 6.0, 6.5 and 6.7, as such please see How to Stop, Start or Restart vCenter Server 6.x Services (2109881) for service names and on how to stop and start services in Windows Center Server and vCenter Server Appliance.
vmware-vapi-endpoint'
please follow the steps bellow.cloudvm-ram-size -l
root@paisasvc01 [ ~ ]# cloudvm-ram-size -l vmware-imagebuilder = 50 vmware-trustmanagement = 78 vmware-analytics = 218 vmware-netdumper = 20 OS = 1862 vmware-sps = 1566 vmware-stsd = 952 vmware-certificatemanagement = 78 vmdnsd = 39 vmware-vpostgres = 2018 vsphere-ui = 1454 vmware-vsan-health = 106 vmafdd = 39 vmware-mbcs = 128 vsan-dps = 258 vmware-sts-idmd = 384 vmware-vpxd-svcs = 1195 vmonapi = 15 vmware-vsm = 201 vmware-vapi-endpoint = 256 vmware-cm = 353 vmware-vpxd = 7670 vmdird = 39 vmware-cis-license = 192 vmware-updatemgr = 484 vcha = 46 vmware-rbd-watchdog = 100 vmware-pod = 100 vmware-hvc = 68
vmware-vapi-endpoint
' by running the following command: cloudvm-ram-size -C XXXX vmware-vapi-endpoint
cloudvm-ram-size -C 2048 vmware-vapi-endpoint
would increase the memory of the vmware-vapi-endpoint
service from 768 MB to 2048 MB.service-control --stop vmware-vapi-endpoint;service-control --start vmware-vapi-endpoint
cloudvm-ram-size -l