top of page

Changing VMware vCD Java heap size to prevent java.lang.OutOfMemoryError messages

For today's blog I will show you how to modify the default values for vCloud Director Cell Java heap size


We have this issue in our environment that all the VM servers we can't console


Here is the Error:

After checking the cell log contain entries similar to:

Findings: There is daemon or cell service hang that cause the issue.


To fix the issue, modify the default values for vCloud Director Java heap size


Note: VMware vCloud Director for Service Providers 9.x and higher, the file to edit is vmware-vcd-cell-common for the legacy VMware vCloud Director, the file to edit is vmware-vcd-cell


Steps:

- Log in to a vCloud Director Cell Server host as root

- Open the $VCLOUD_HOME/bin/vmware-vcd-cell file using a text editor

- Login WINSCP > Go to this path /opt/vmware/vcloud-director/bin/

- Download the vmware-vcd-cell-common file in your local drive

- Ope with text editor

- Search for an entry like this one within the file (values shown for -Xms, -Xmx, and -XX:MaxPermSize might be different on your system):


Modify the entry and increase the values for these parameters:

-Xms – Specifies the initial heap size

-Xmx – Specifies the maximum heap size

-XX:MaxPermSize – Specifies the size of the Permanent Generation

Note: Do not modify any other parameters in this entry.


- Stop and restart the vCloud Director services on the host.

- Repeat this procedure for all other hosts in the vCloud Director cluster.


Recent Posts

See All

Can't delete vApp and VM

Error: [ bfe374cf-fd73-4076-86da-e842ba50b13a ] No row with the given identifier exists: [com.vmware.vcloud.common.model.logicalresource....

Comments


bottom of page