OutOfMemory errors reported, when installing large enterprise applications with lots of enterprise beans
 Technote (troubleshooting)
 
Problem(Abstract)
When installing large enterprise applications containing several hundreds of enterprise beans, either thru WebSphere® Administrative console or using wsadmin scripting commands, errors are reported in the Deployment Manager logs.
 
Cause
The following errors appear in the Deployment Manager logs:

DeployEJBTask I ADMA0144I: EJBDeploy: JVMST109: Insufficient space in Java heap to satisfy allocation request DeployEJBTask E ADMA0086E: An error occurred from the EJBDeploy program: An unexpected exception was thrown. Halting execution.

ADMA0144I: EJBDeploy: +++ Warning +++: java.lang.OutOfMemoryError
ADMA0144I: EJBDeploy:at java.util.HashMap.addEntry(HashMap.java(
ADMA0144I: EJBDeploy:at java.util.HashMap.put(HashMap.java(Compi
ADMA0144I: EJBDeploy:at org.eclipse.jdt.internal.core.JavaModelCache
ADMA0144I: EJBDeploy:at org.eclipse.jdt.internal.core.JavaProjectElementInfo.getPackage

In this scenario, increasing the maximum heap size for the deployment process does not help, since the OutofMemory errors are reported during the enterprise beans deployment which in itself is a separate java process with its own Heap settings

 
Resolving the problem
Change the maximum Heap setting to a higher value in the ejbdeploy.bat/sh file. The default is -Xmx256M, Increase it to -Xmx512M or -Xmx768M, depending on the number of enterprise beans.
Location of ejbdeploy.bat/sh file:

For Base - WebSphere\AppServer\deploytool\itp\
For Network deployment - under WAS_HOME\\DeploymentManager\deploytool\itp

Refer to related documentation if you experience OutOfMemory errors when deploying large applications:
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Deploy (for example: AAT or ANT or EAR/WAR/JAR)
Operating system(s): Windows
Software version: 6.1
Software edition:
Reference #: 1242052
IBM Group: Software Group
Modified date: Mar 2, 2007