less /var/log/vmware/vmon/vmon.log
YYYY-MM-DDT16:00:23.640Z In(05) host-1234 <vmware-postgres-archiver-prestart> Constructed command: /opt/vmware/vpostgres/current/scripts/pg_archiver_pre_start vpg_archiver 300
YYYY-MM-DDT16:00:23.640Z Er(02) host-1234 fork failed. Cannot allocate memory
YYYY-MM-DDT16:00:23.640Z Er(02) host-1234 <vmware-postgres-archiver> Service pre-start command could not started.
YYYY-MM-DDT16:00:23.640Z Er(02) host-1234 <vmware-postgres-archiver> Service reached max quick failure count. Give up!!!
YYYY-MM-DDT16:00:23.640Z Er(02) host-1234 fork failed. Cannot allocate memory
YYYY-MM-DDT16:00:23.640Z Er(02) host-1234 <vmware-postgres-archiver> Service pre-start command could not started.
YYYY-MM-DDT16:00:23.640Z Wa(03) host-1234 <vmware-postgres-archiver> Service failed to recover. Try again. Fail count 1
YYYY-MM-DDT16:00:23.640Z In(05) host-1234 <vmware-postgres-archiver-prestart> Constructed command: /opt/vmware/vpostgres/current/scripts/pg_archiver_pre_start vpg_archiver 300
YYYY-MM-DDT16:00:23.640Z Er(02) host-1234 fork failed. Cannot allocate memory
YYYY-MM-DDT16:00:23.640Z Er(02) host-1234 <vmware-postgres-archiver> Service pre-start command could not started.
YYYY-MM-DDT16:00:23.640Z Wa(03) host-1234 <vmware-postgres-archiver> Service failed to recover. Try again. Fail count 2
YYYY-MM-DDT16:00:23.640Z In(05) host-1234 <vmware-postgres-archiver-prestart> Constructed command: /opt/vmware/vpostgres/current/scripts/pg_archiver_pre_start t vpg_archiver 300
less /var/log/vmware/vc-ws1a-broker/accesscontrol-service.log
YYYY-MM-DDT23:44:02,266 ERROR vcenter.vsphere.local:accesscontrol (vert.x-eventloop-thread-3) [-;-;-;-;-;-;-] io.vertx.core.impl.ContextBase - Unhandled exc
eption java.lang.OutOfMemoryError: Java heap space
YYYY-MM-DDT23:44:02,487 ERROR vcenter.vsphere.local:accesscontrol (vert.x-eventloop-thread-5) [-;-;-;-;-;-;-] io.vertx.core.impl.ContextBase - Unhandled exc
eption java.lang.OutOfMemoryError: Java heap space
YYYY-MM-DDT07:01:05,133 INFO vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] com.vmware.vidm.accesscontrol.db.OAuth2AuthorizationCodeD
ataServiceImpl - Starting purge of expired authorization codes
YYYY-MM-DDT07:01:44,126 WARN vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Er
ror: 0, SQLState: null
YYYY-MM-DDT07:01:44,126 ERROR vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] org.hibernate.engine.jdbc.spi.SqlExceptionHelper - An att
empt by a client to checkout a Connection has timed out.
YYYY-MM-DDT07:02:08,136 ERROR vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] com.vmware.vidm.accesscontrol.db.OAuth2AuthorizationCodeD
ataServiceImpl - Caught exception during scheduled purging of authorization codes java.util.concurrent.CompletionException: java.lang.OutOfMemoryError: Java
heap space
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at com.vmware.vidm.common.async.ContextPassingExecutor.lambda$wrap$0(ContextPassingExecutor.java:48)
at io.micrometer.core.instrument.internal.TimedRunnable.run(TimedRunnable.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
YYYY-MM-DDT07:02:13,679 ERROR vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] com.vmware.vidm.accesscontrol.db.AbstractDataServiceImpl
- Unexpected exception java.lang.OutOfMemoryError: Java heap space
YYYY-MM-DDT07:01:07,835 INFO vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] com.vmware.vidm.accesscontrol.db.OAuth2AuthorizationCodeD
ataServiceImpl - Starting purge of expired authorization codes
YYYY-MM-DDT07:01:44,482 WARN vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Er
ror: 0, SQLState: null
YYYY-MM-DDT07:01:44,482 ERROR vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] org.hibernate.engine.jdbc.spi.SqlExceptionHelper - An att
empt by a client to checkout a Connection has timed out.
YYYY-MM-DDT07:02:52,604 ERROR vcenter.vsphere.local:accesscontrol (acs-rds-db-ops) [-;-;-;-;-;-;-] com.vmware.vidm.accesscontrol.db.DbDataStoreAutoConfigura
tion - ALERT!! Thread acs-rds-db-ops threw an uncaught exception java.lang.OutOfMemoryError: Java heap space
VMware vCenter 8.0 U2a and later
A memory leak was observed during certain situations in handling the tokens. The changes in the values help in avoiding the leak.
This issue is reported as a bug from vCenter 8.0 U2a and later and will be adjusted in a future release.
you may find multiple snapshot folders like below and need to use the snapshot with highest version to modify the properties file
found below two "application.properties" in different directory like below.
Note:
You can use the find command to locate the application.properties file for the token application within the container filesystem snapshots:
Example:
# cd /var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots
# find -iname application.properties | grep token
./13/fs/opt/vmware/idm/initc/services/token/config/application.properties
./12/fs/opt/vmware/idm/initc/services/token/config/application.properties
Important Note:
The filesystem where application.properties is located is an overlay filesystem essential for the vc-ws1a-broker service configuration. Including unnecessary files in this location will corrupt the service's configuration information.
Do not create files (such as backups or temporary files) on the same filesystem where application.properties is located. Please utilize other directories such as /var/core for temporary operations.
See KB 416157 for detail information.