CA WA System Agent installation fails with java.lang.OutOfMemoryError: GC overhead limit exceeded

Document ID : KB000009138
Last Modified Date : 29/05/2018
Show Technical Document Details
Issue:

CA Workload Automation System Agent installation fails with the following error:

# ./setup.bin -h
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...


[==================|==================|==================|==================]
[-This Java Application has encountered an unexpected error and will now exit. (LAX)

Stack Trace:
java.lang.OutOfMemoryError: GC overhead limit exceeded
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.zerog.lax.LAX.launch(Unknown Source)
at com.zerog.lax.LAX.main(Unknown Source)
This Application has Unexpectedly Quit: This Java Application has encountered an unexpected error and will now exit. (LAX)

Environment:
CA Workload Automation System Agent 11.3 SPx on supported platforms.
Cause:

The default java heap settings for the installer is probably inadequate to complete the installation in the given environment.

The installer defaults to 16777216 bytes (16 MB) for the initial heap size and 50331648 bytes (48 MB) for the maximum heap size.

Resolution:

UNIX/Linux:
-----------

Invoke the CA WA System Agent installer with larger heap size specifications using the -jvmxms (initial heap size) and -jvmxmx (maximum heap size) options.

For example, the following invocation of the CA WA System Agent installer assigns 2GB for the initial heap and 4GB for the maximum heap.

# ./setup.bin -jvmxms 2G -jvmxmx 4G

Windows OS:
-----------


Set the following System environment variable from Computer Properties Advanced systems settings (Control Panel -> System and Security -> System -> Advanced tab -> Environment variable button).

Variable name: _JAVA_OPTIONS
Variable value: -Xms512m -Xmx1g

Click OK all the way back to the Control Panel.

Open a new cmd window and execute the command below to confirm the variable is available. 
  set | findstr "JAVA_OPT"

Then, launch the System Agent installer (setup.bin) by holding the Ctrl key down.

You should see a message in the debug command windows pop-up that says "Picked up variable _JAVA_OPTIONS: -Xms512m -Xmx1g"

Additional Information:

On UNIX/Linux systems, the CA WA System Agent installer's Java (JVM) settings, including heap size, can be verified by enabling debug using the LAX_DEBUG=true environment variable.

For example:

# LAX_DEBUG=true; export LAX_DEBUG

# ./setup.bin -jvmxms 2G -jvmxmx 4G
Options: setting JVM Initial heap size to 2G
Options: setting JVM Maximum heap size to 4G
...

...

Configuring the installer for this system's environment...

...

...

========= Virtual Machine Options ====================================
LAX properties incorporated............. OK.
classpath............................... "/tmp/install.dir.8984/InstallerData:/tmp/install.dir.8984/InstallerData/installer.zip"
main class.............................. "com.zerog.ia.installer.Main"
.lax file path.......................... "/tmp/install.dir.8984/temp.lax"
user directory.......................... "/tmp/install.dir.8984"
stdout to............................... "console"
sterr to................................ "console"
install directory....................... ""
JIT..................................... none
option (verify)......................... off
option (verbosity)...................... none
option (garbage collection extent)...... none
option (garbage collection thread)...... none
option (native stack max size).......... none
option (java stack max size)............ none
option (java heap max size)............. 4G
option (java heap initial size)......... 2G
option (lax.nl.java.option.additional).. none
...

...
Launching installer...
========= VM Command Line ============================================
options:   -Xmx4G -Xms2G
CLASSPATH:/tmp/install.dir.8984/InstallerData:/tmp/install.dir.8984/InstallerData/installer.zip: