4 Replies Latest reply on Aug 10, 2005 10:13 AM by Peter Johnson

    ERROR -- ApplicationDispatcher[] Servlet.service() for servl

    namitajain Newbie

      Hi,
      I am running JBoss 3.2.5 on Linux with 1GHZ RAM and 180 GB hard-drive and have around 15 websites hosted on it (which are not hit so hard though).

      Once in 4-5 days I get the following stack trace of erros in my Log and the particular Servlet (called PartQueryServlet of my applications) stops responding, as a result of which some part of all the websites is down, but the JBoss server keeps running. When I restart JBoss everything comes back up.

      Please let me know what may cause this kind of error stack and what may I do to avoid it.
      I assume that trying to allocate more JVM may not resolve the problem completely. I have also tuned my code n believe that there are no memory leaks in the code.

      Looking for urgent response..
      Thanks much..
      N.J


      --------ERROR STACKTRACE-------
      07 Aug 2005 22:09:07 -- ERROR -- An exception or error occurred in the container during the request processing java.lang.OutOfMemoryError
      07 Aug 2005 22:44:41 -- ERROR -- StandardWrapperValve[PartQuery]: Servlet.service() for servlet PartQuery threw exception java.lang.OutOfMemoryError
      07 Aug 2005 22:44:51 -- ERROR -- ApplicationDispatcher[] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError
      07 Aug 2005 22:44:51 -- ERROR -- org.apache.catalina.core.StandardHostValve@1a313e8: Exception Processing ErrorPage[exceptionType=javax.servlet.ServletException, location=/errPage.jsp]
      javax.servlet.ServletException
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
      at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:396)
      at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:225)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:534)
      07 Aug 2005 22:44:51 -- ERROR -- ----- Root Cause -----
      java.lang.OutOfMemoryError