Support Article
OutOfMemoryError: Java heap space
SA-69086
Summary
When installing a new Pega 7.4 instance, database installation fails.
The install scripts fails in 30 to 40 minutes.
Error Messages
[java] [pool-4-thread-1] [ ] [ ] [ ] (deploy.internal.InstallerImpl) INFO - Started import of pr4_rule_file_binary_6_07.10.01.zip (54 of 100)
[java] [pool-4-thread-1] [ ] [ ] [ ] (internal.loaders.FastLoader) INFO - Performing Fast Deployment with Batch Enabled: true
[java] JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at - please wait.
...
[java] Caused by: java.lang.OutOfMemoryError: Java heap space
Steps to Reproduce
Not Applicable
Root Cause
A defect or configuration issue in the operating environment.
The heap sized is incorrect.
Resolution
Make the following change to the operating environment:
For IBM JVM and JAVA 1.7 and earlier, set the following in setupDatabase.properties.
jvm.arg.mem.max=-Xmx=4096m
For Java 1.8 and later, set the following in setupDatabase.properties.
jvm.arg.mem.max=-XX:MaxHeapSize=4096m
Published January 4, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.