"OutOfMemoryError: GC overhead limit exceeded" in Spectrum


Spectrum crashes, and upon investigation of the wrapper.log, the error "OutOfMemoryError: GC overhead limit exceeded" can be found around the time of the crash.


The "OutOfMemoryError: GC overhead limit exceeded" error can happen if too much time is being spent in garbage collection. Similar OutOfMemory errors can happen for other reasons.


UPDATED: June 19, 2018

Start by finding out how much memory your machine currently has available for it. Spectrum v12.0 and up requires a minimum of 16GB of memory on your system. Older versions require a minimum of 8GB of memory. If your system does not have the minimum required memory for your version of Spectrum, you will need to add memory to the system, or change to a different machine to meet the minimum requirements.

Next, follow these steps to adjust the Spectrum Java heap settings:

1) Navigate to your Spectrum install location's /server/bin/wrapper directory and open the wrapper.conf file. In that file there are two properties that need to be modified for increasing the Java heap size:

Depending on your version of Spectrum, your starting values for these properties may be different, but you should see an initial and maximum heap size in the file:

# Initial Java Heap Size (in MB) 

# Maximum Java Heap Size (in MB) 

Increase the values for both these properties in multiples of 1024. Do not set either value to a number higher than the amount of memory your system has available. Do not set the initial heap size to a number larger than the maxiumum.

We recommend you also take into account how much memory your machine's Operating System requires to run properly, as well as whether or not there are other programs that run on the machine in order to decide on the proper heap settings. 

2) After you adjust these properties, save the wrapper.conf file. Then, restart Spectrum so the changes take effect.

If you still see OutOfMemory errors after making this change, contact Technical Support for further assistance.

Environment Details

Products Affected: Spectrum Technology Platform


  • No Downloads