Using JSPBatchCompiler to compile JavaServer Pages results in a java.lang.OutOfMemoryError
 Technote (troubleshooting)
 
Problem(Abstract)
Using the JSPBatchCompiler to compile JSPā„¢ resources can result in a java.lang.OutOfMemoryError when the application contains too many JSP resources in a single subdirectory. Since JSP resources can vary in content, there is no definite limit on when the error condition is reached.
 
Cause
The JSPBatchCompiler does not set a default -Xmx setting for the compilation of the JSP resources.
 
Resolving the problem
There are two possible solutions to this problem.
  1. Because the JSPBatchCompiler parses and compiles web module JSP files one directory at a time, it might be necessary to create subdirectories within the web module to avoid the java.lang.OutOfMemoryError condition.
  2. Within the JSPBatchCompiler.bat/sh file, add -Xmx512M to the following line. Base the increase on the capacity of your system.

    %JAVA_HOME%\bin\java -Xmx512M %CONSOLE_ENCODING% %CLIENTSAS% -Dserver.root=%WAS_HOME% -Dws.ext.dirs=%WAS_EXT_DIRS% -classpath %WAS_CLASSPATH% com.ibm.ws.bootstrap.WSLauncher org.apache.jasper.compiler.ibmtools.JspBatchCompiler %*
 
 
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 > JSP
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1141556
IBM Group: Software Group
Modified date: Mar 27, 2006