Troubleshooting
Problem
When following command is executed, out of memory is coming when below script compiles java files. deployer.sh -t entitydeployer Entitydeployer target is also called from Fix Pack installation. Similar out of memory can occur from Fix Pack installation also.
Symptom
Out of memory error when [javac] target is invoked as part of entitydeployer. javac target compiles all the database java files generated earlier as part of entitydeployer.
Cause
Less memory available to compile all the database java files together.
Diagnosing The Problem
deployer.sh script does not read java arguments from environment. It reads java arguments from sandbox.cfg file. Following two parameters are read from sandbox.cfg file
ADDITIONAL_ANT_COMPILER_TASK_ARGS
ADDITIONAL_ANT_JAVA_TASK_ARGS
Resolving The Problem
1. Edit sandbox.cfg file and edit following two parameters. Increase memory parameters
ADDITIONAL_ANT_COMPILER_TASK_ARGS
ADDITIONAL_ANT_JAVA_TASK_ARGS
2. Run setupfiles.sh
After above two steps entitydeployer can be executed again.
Sample value for above parameters
ADDITIONAL_ANT_COMPILER_TASK_ARGS=-J-Xms1024m -J-Xmx1664m
ADDITIONAL_ANT_JAVA_TASK_ARGS=-XX\:MaxPermSize\=512m
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21640843