Archiva

Error 500 Unable to load class for JSP

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.2-M1
  • Fix Version/s: None
  • Component/s: Web Interface
  • Labels:
    None
  • Number of attachments :
    0

Description

Twice now after Archiva 1.2-M1 has been running for a while on my laptop (including several sleep/wake cycles), I get this error when visiting the main page. The logs appear normal. Restarting the app "fixes" it.

HTTP ERROR: 500

Unable to load class for JSP

RequestURI=/archiva/
Caused by:

org.apache.jasper.JasperException: Unable to load class for JSP
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:463)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
Caused by: java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
... 41 more

Caused by:

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:463)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:722)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:404)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)

Powered by Jetty://

Issue Links

Activity

Hide
Brett Porter added a comment -

that's an out of memory error

Show
Brett Porter added a comment - that's an out of memory error
Hide
Wendy Smoak added a comment -

This happened again today... Maven builds were failing, and when I checked Archiva I found the same Error 500.

Is there any info I can capture that would help track it down?

Show
Wendy Smoak added a comment - This happened again today... Maven builds were failing, and when I checked Archiva I found the same Error 500. Is there any info I can capture that would help track it down?
Hide
Carlos Sanchez added a comment -

I have built an rpm from archiva and i'm getting the same error every time I install it. After restarting the server works.

The files are there in the tmp directory and permissions seem to be ok

tmp/Jetty_0_0_0_0_8080_root____.z49yad/jsp/org/apache/jsp/index_jsp.class
tmp/Jetty_0_0_0_0_8080_root____.z49yad/jsp/org/apache/jsp/index_jsp.java

Show
Carlos Sanchez added a comment - I have built an rpm from archiva and i'm getting the same error every time I install it. After restarting the server works. The files are there in the tmp directory and permissions seem to be ok tmp/Jetty_0_0_0_0_8080_root____.z49yad/jsp/org/apache/jsp/index_jsp.class tmp/Jetty_0_0_0_0_8080_root____.z49yad/jsp/org/apache/jsp/index_jsp.java
Hide
Carlos Sanchez added a comment -

I'm using archiva 1.2.1 btw, but also happened with a previous version. I'm wondering if there's some environment variable. Java versions are the same, 1.6.0 and OS is CentOS 5.2

Show
Carlos Sanchez added a comment - I'm using archiva 1.2.1 btw, but also happened with a previous version. I'm wondering if there's some environment variable. Java versions are the same, 1.6.0 and OS is CentOS 5.2
Hide
Brett Porter added a comment -

this should be resolved by the memory enhancements in 1.3

Show
Brett Porter added a comment - this should be resolved by the memory enhancements in 1.3
Hide
Ben Foster added a comment -

We're running 1.3 and consistently getting this error after Archiva has been running for a couple days.

Show
Ben Foster added a comment - We're running 1.3 and consistently getting this error after Archiva has been running for a couple days.
Hide
Brett Porter added a comment -

Ben, do you have any additional data? What are your heap settings, platform, repository sizes?

Show
Brett Porter added a comment - Ben, do you have any additional data? What are your heap settings, platform, repository sizes?
Hide
Ben Foster added a comment -

Hi Brett. Sure - we're running as a standalone service on Windows Server 2003. 2 repositories: One with 24362 files, the other with 2746 files. I assume the heap settings are configured in wrapper.conf? But both the initmemory and maxmemory are commented out (default).

Show
Ben Foster added a comment - Hi Brett. Sure - we're running as a standalone service on Windows Server 2003. 2 repositories: One with 24362 files, the other with 2746 files. I assume the heap settings are configured in wrapper.conf? But both the initmemory and maxmemory are commented out (default).
Hide
Brett Porter added a comment -

are you able to run jconsole to connect when it happens and report on whether memory is an issue in one of the heaps? Are there any other exceptions in the Archiva logs?

I'm not entirely sure if it is actually a memory issue - I have a larger repository, the default memory settings, and run for much longer periods of time without issue.

It could be related to being a service - though that doesn't explain the issues seen by Wendy and Carlos.

Did you experience this with a previous version?

Show
Brett Porter added a comment - are you able to run jconsole to connect when it happens and report on whether memory is an issue in one of the heaps? Are there any other exceptions in the Archiva logs? I'm not entirely sure if it is actually a memory issue - I have a larger repository, the default memory settings, and run for much longer periods of time without issue. It could be related to being a service - though that doesn't explain the issues seen by Wendy and Carlos. Did you experience this with a previous version?
Hide
Ben Foster added a comment - - edited

Not that this tells much, but below is the stacktrace in wrapper.log when I get the error. I didn't see any other relevant info in the other logs. I had to enable the JMX agent on the Archiva process. Once the problem pops back up, I'll take a look in jconsole and see what I see. Is there any information in particular you'd like from there?
Yes, I think we did see this problem in earlier versions, but it seems to be more prevalent now.


INFO | jvm 1 | 2010/03/11 10:33:59 | 2010-03-11 10:33:59.197::WARN: /archiva/
INFO | jvm 1 | 2010/03/11 10:33:59 | java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
INFO | jvm 1 | 2010/03/11 10:33:59 | at java.net.URLClassLoader$1.run(Unknown Source)
INFO | jvm 1 | 2010/03/11 10:33:59 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2010/03/11 10:33:59 | at java.net.URLClassLoader.findClass(Unknown Source)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:204)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:190)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:122)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:639)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:192)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
INFO | jvm 1 | 2010/03/11 10:33:59 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:493)
INFO | jvm 1 | 2010/03/11 10:33:59 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
INFO | jvm 1 | 2010/03/11 10:33:59 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
INFO | jvm 1 | 2010/03/11 10:33:59 | at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
INFO | jvm 1 | 2010/03/11 10:33:59 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.Server.handle(Server.java:326)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

Show
Ben Foster added a comment - - edited Not that this tells much, but below is the stacktrace in wrapper.log when I get the error. I didn't see any other relevant info in the other logs. I had to enable the JMX agent on the Archiva process. Once the problem pops back up, I'll take a look in jconsole and see what I see. Is there any information in particular you'd like from there? Yes, I think we did see this problem in earlier versions, but it seems to be more prevalent now.


INFO | jvm 1 | 2010/03/11 10:33:59 | 2010-03-11 10:33:59.197::WARN: /archiva/ INFO | jvm 1 | 2010/03/11 10:33:59 | java.lang.ClassNotFoundException: org.apache.jsp.index_jsp INFO | jvm 1 | 2010/03/11 10:33:59 | at java.net.URLClassLoader$1.run(Unknown Source) INFO | jvm 1 | 2010/03/11 10:33:59 | at java.security.AccessController.doPrivileged(Native Method) INFO | jvm 1 | 2010/03/11 10:33:59 | at java.net.URLClassLoader.findClass(Unknown Source) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:204) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:190) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:122) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:639) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:192) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) INFO | jvm 1 | 2010/03/11 10:33:59 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:493) INFO | jvm 1 | 2010/03/11 10:33:59 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) INFO | jvm 1 | 2010/03/11 10:33:59 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:413) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) INFO | jvm 1 | 2010/03/11 10:33:59 | at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) INFO | jvm 1 | 2010/03/11 10:33:59 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.Server.handle(Server.java:326) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) INFO | jvm 1 | 2010/03/11 10:33:59 | at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
Hide
Brett Porter added a comment -

From jconsole - looking at which heap is exhausted, if any at all.

Show
Brett Porter added a comment - From jconsole - looking at which heap is exhausted, if any at all.
Hide
Brett Porter added a comment -

did you find any more information?

Show
Brett Porter added a comment - did you find any more information?
Hide
Ben Foster added a comment -

Hey Brett - of course, as soon as I enable jconsole, it stops crashing. That is the only difference I made to the config and now it's been almost 2 weeks strong. Odd considering I was getting the error after only having restarted a few days earlier. I'll continue to keep an eye on it.

Show
Ben Foster added a comment - Hey Brett - of course, as soon as I enable jconsole, it stops crashing. That is the only difference I made to the config and now it's been almost 2 weeks strong. Odd considering I was getting the error after only having restarted a few days earlier. I'll continue to keep an eye on it.
Hide
Brett Porter added a comment -

Let us know how you go

Show
Brett Porter added a comment - Let us know how you go
Hide
Ben Foster added a comment -

Ok, we were able to reproduce with jconsole running. I'm still not sure what I should look at, but the heap memory usage hovers between 40-50Mb, with pretty regular climb/GC cycles.

Show
Ben Foster added a comment - Ok, we were able to reproduce with jconsole running. I'm still not sure what I should look at, but the heap memory usage hovers between 40-50Mb, with pretty regular climb/GC cycles.
Hide
Brett Porter added a comment -

that's still a little under the default limit. there are 5 graphs at the bottom right of jconsole - which of them is consistently maxed out? You can click on them to get their name and chart.

You could try changing the max setting in wrapper.conf to see if it helps to something like 128m

Show
Brett Porter added a comment - that's still a little under the default limit. there are 5 graphs at the bottom right of jconsole - which of them is consistently maxed out? You can click on them to get their name and chart. You could try changing the max setting in wrapper.conf to see if it helps to something like 128m
Hide
Ben Foster added a comment -

OK:
Eden Space: Climbs from 0-100%
Survivor Space: Hovers between ~20-99% (usually closer to the 99% end)
Tenured Gen: Pretty constant around 75%

Code Cache: Constant ~50%
Perm Gen (shared-rw): Constant ~55%
Perm Gen (shared-ro): Constant ~70%
Perm Gen: Constant ~70%

I'll set the max memory to 128m, restart, and see if we have a problem in a little while.

Show
Ben Foster added a comment - OK: Eden Space: Climbs from 0-100% Survivor Space: Hovers between ~20-99% (usually closer to the 99% end) Tenured Gen: Pretty constant around 75% Code Cache: Constant ~50% Perm Gen (shared-rw): Constant ~55% Perm Gen (shared-ro): Constant ~70% Perm Gen: Constant ~70% I'll set the max memory to 128m, restart, and see if we have a problem in a little while.
Hide
Brett Porter added a comment -

more memory issues were fixed in 1.3.3 - if this problem persists with that please let us know

Show
Brett Porter added a comment - more memory issues were fixed in 1.3.3 - if this problem persists with that please let us know

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: