IBM Support

Out of memory error while running entitydeployer

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

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Performance","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF002","label":"AIX"},{"code":"PF033","label":"Windows"}],"Version":"9.2.1;9.2;9.1;9.0","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21640843