When trying to launch a CA Spectrum OneClick client the following error shows: Invalid maximum heap size: -Xmx4096M

Document ID : KB000039474
Last Modified Date : 14/02/2018
Show Technical Document Details


When trying to access the One Click client the Spectrum user may receive a memory heap error:

Invalid maximum heap size: -Xmx4096M 

The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.



Linux RedHat



 32-bit memory limitations do not allow the java process to allocate enough memory when the value is set too high.




The problem can be solved by editing the memory heap size in the following two (2) files:




1. Edit the catalina.sh file and reduce the java memory setting from –Xmx4096M to –Xmx3072M or –Xmx2048M

2. Edit tomcat-server-config.xml and reduce the java memory setting (to match the catalina.sh setting) from –Xmx4096M to –Xmx3072M or –Xmx2048M

3. Save the files

4. Restart the tomcat process (if the tomcat process does not start, you may need to lower the memory setting further).

4. Access One Click client


Additional Information: 

This issue is not present on 64-bit machines.