Troubleshooting
Problem
Attempts to run buildear command with pre-compile option fails with the error java.lang.OutOfMemoryError: GC overhead limit exceeded in IBM Sterling Selling and Fulfillment Suite.
Symptom
The error message will report the following stack trace:
Caused by: /opt/sterling/Foundation/properties/precompileWARCommonUtils.xml:106:
ompile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:999)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416
Cause
There is insufficient memory for pre-compilation process.
Diagnosing The Problem
The stack trace will show error messages from the buildWARCommonUtils.xml and the precompileWARCommonUtils.xml.
Resolving The Problem
Increase the value of the PRECOMPILE_MAX_MEMORY property in the build.properties located under the bin directory and execute the buildear command.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21969382