|
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.
- 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.
- 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 |
|
|
|
|
|
|