Out of memory condition
This issue is reported as an exception by the endpoint in the logs:
Unable to login to inventory service or Unable to login/logout to/from inventory service.
Every four minutes, the vAPI Endpoint service triggers a reconfiguration and tries to connect to Inventory Service on all the other vCenter Server nodes. If this fails, the memory for some objects is not cleaned up until vAPI Endpoint service is restarted. This causes a leak in memory for every run and eventually an out of memory condition.
When the vAPI Endpoint is out of memory, the wrapper will restart the service automatically clearing any leaked objects. If connectivity to all vCenter Server nodes has not been restored, the endpoint will soon be out of memory again.
Toggling the vCenter Server Appliance 6.x default shell