Out of memory error while running entitydeployer

Technote (troubleshooting)


Problem(Abstract)

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

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Sterling Order Management
Performance

Software version:

9.0, 9.1, 9.2, 9.2.1

Operating system(s):

AIX, Linux, Windows

Reference #:

1640843

Modified date:

2013-06-27

Translate my page

Machine Translation

Content navigation