"java.lang.OutOfMemoryError" when opening a large EAR file with wsadmin on v5.0
 Technote (troubleshooting)
 
Problem(Abstract)
The wsadmin scripting tool relies on the JVM™ default heap size specific to the operating system, which is often not sufficient. In this case, java.lang.OutOfMemoryError exceptions are seen when deploying large applications.
 
Cause

Test1 - sample1.ear file (10 MB)

wsadmin>$AdminApp taskInfo sample1.ear MapWebModToVH

Result: successful

Test2 - sample2.ear file (75 MB)

wsadmin>$AdminApp taskInfo sample2.ear MapWebModToVH

Result:
WASX7015E: Exception running command: "$AdminApp taskInfo sample2.ear
MapWebModToVH"; exception information:
com.ibm.bsf.BSFException: error while eval'ing Jacl expression:
java.lang.OutOfMemoryError

wsadmin client is requesting a default heap size from the operating system because there is no -Xms128m -Xmx256m in theJava™ command. Windows® and other operating systems have larger default heap sizes. On some platforms, different maintenance levels can have different heap settings.

 
Resolving the problem
PQ73288
This fix provides a wsadmin command option -javaoption that is used to specify Java standard and non-standard option,for example:

wsadmin>$AdminApp taskInfo sample1.ear MapWebModToVH -javaoption -Xms128m -javaoption -Xmx256m

Result: successful

PQ73288 is available from Fix Pack 2 (5.0.2)

 
 
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
Operating system(s): Solaris
Software version: 5.0.1
Software edition:
Reference #: 1176964
IBM Group: Software Group
Modified date: Aug 13, 2004