Hi All,
We have several web applications deployed on WAS 6.0.X version. We are getting following exception while accessing particular page of the application -
JSPG0049E: /flight/BC_FlightPriceChangePage.jsp failed to compile :
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError
at com.sun.tools.javac.v8.util.Name.fromChars(Name.java(Compiled Code))
at com.sun.tools.javac.v8.util.Name.fromString(Name.java(Inlined Compiled Code))
at com.sun.tools.javac.v8.util.Name$Table.fromString(Name.java(Compiled Code))
at com.sun.tools.javac.v8.JavaCompiler.parse(JavaCompiler.java:228)
at com.sun.tools.javac.v8.JavaCompiler.parse(JavaCompiler.java:262)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:345)
at com.sun.tools.javac.v8.Main.compile(Main.java:586)
at com.sun.tools.javac.Main.compile(Main.java:85)
at com.ibm.ws.jsp.translator.compiler.StandardJspCompiler.runCompile(StandardJspCompiler.java:128)
at com.ibm.ws.jsp.translator.compiler.StandardJspCompiler.compile(StandardJspCompiler.java:98)
at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:106)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:298)
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java(Compiled Code))
at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java(Compiled Code))
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.mechsoft.b2c.common.action.BC_B2CRequestFilter.doFilter(BC_B2CRequestFilter.java:121)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Seeing this it is clear that the system is going OutOfMemory during
JSP compilation. Also note that application is working fine for other pages for JSP is already compiled. Now onward it is giving error for the pages which are being first time accessed and hence not yet compiled.
Heap size setting is default. We have not override the JVM Configuration Setting.
The Machine Configuration is as Below-
1- Windows 2000
2 - 4 GB RAM
1- Can any body tell me how to resolve this issue?
2- If I go for Precompiled JSPs then how it can be done while creating WAR of the application? We are using
Maven to build the application.