ERROR [vcf_dm,0000000000000000,0000] [o.a.c.c.C.[.[.[.[dispatcherServlet],http-nio-127.0.0.1-7200-exec-7] Servlet.service() for servlet [dispatcherServlet] in context with path [/domainmanager] threw exception [Handler dispatch failed: java.lang.OutOfMemoryError: Java heap space] with root cause
java.lang.OutOfMemoryError: Java heap space
ERROR [vcf_dm,69#######################fa,6767] [o.s.a.i.SimpleAsyncUncaughtExceptionHandler,dm-exec-16] Unexpected exception occurred invoking async method: void com.vmware.vcf.configreconciler.service.ResourceCacheService.refreshLocalInventoryWithConfigApplicability()
java.lang.OutOfMemoryError: Java heap space
VCF 5.x
java.lang.OutOfMemoryError: Java heap space
A fix has been implemented in SDDC Manager 5.2.x and later to alleviate this issue by greatly reducing the Domain Manager service memory consumption.
However, in very large environments with high task volumes, complex inventory data, or frequent concurrent operations, the issue may persist.
To resolve this, increase the Java Heap Memory allocation for the Domain Manager service.
Raising the limit from the default 512MB to 2GB quadruples the available resources, ensuring the service can handle high workloads without crashing.
Follow these steps to apply the necessary memory increase:
systemctl stop domainmanager
vi /etc/vmware/vcf/domainmanager/vcf-domain-manager.conf
Original: -Xmx512m
New: -Xmx2G
Esc > :wq!
systemctl start domainmanager
The domainmanager service will now run with a maximum Java Heap Memory of 2GB, resolving the OutOfMemoryError and restoring service stability.