• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp failed to compile : The system is out of resources.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, first you need to find out what is causing the problem. If just compiling a JSP is causing the system to run out of memory, then it must be an extremely large JSP. Even so, no matter how large it is, I wouldn't expect to see that. But precompiling your JSPs would certainly avoid that problem.

(You precompile the JSPs when you install the EAR file. There's a checkbox for that.)

But as I said, I suspect there is more to the problem than just JSP compilation. Have a look at what you are storing in sessions. Consider using persistent sessions (where Websphere can write session data to a database). Also see whether you are storing large amounts of data in request scope; this data will not last long but if you have a lot of simultaneous requests then it could be a problem.
 
reply
    Bookmark Topic Watch Topic
  • New Topic