tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From icewind <icewi...@yahoo.com>
Subject Intermittent Performance Problems
Date Thu, 30 Oct 2003 20:42:06 GMT
Hello,

I'm having performance issues that are hard to pin
down. Every so often, the site's performance will
slow to an absolute crawl for some period of time, and
the only solution is to restart tomcat or wait for the

problem to "fix itself", which it sometimes does. 


My cocoon app is hosted on tomcat version 4.1.18
running on SunOS 5.8 with specs as follows:

/usr/local# prtconf -v
System Configuration:  Sun Microsystems  sun4u
Memory size: 1024 Megabytes
System Peripherals (Software Nodes):

SUNW,Ultra-250

    <snip -- gobs of peripheral stuff & drivers>

/var/adm# psrinfo -v
Status of processor 0 as of: 10/02/03 15:08:50
  Processor has been on-line since 07/11/03 11:38:48.
  The sparcv9 processor operates at 400 MHz,
        and has a sparcv9 floating point processor.
Status of processor 1 as of: 10/02/03 15:08:51
  Processor has been on-line since 07/11/03 11:38:49.
  The sparcv9 processor operates at 400 MHz,
        and has a sparcv9 floating point processor.


So, in summary, the machine is a dual ultrasparc, with
1GB ram. The JDK version is j2sdk1.4.1_01. 




The last time I noticed this performance problem, the
following entries were in catalina_log:

2003-10-22 12:24:28 CoyoteAdapter An exception or
error occurred in the container during the request
processing
java.lang.OutOfMemoryError

2003-10-22 16:21:32 CoyoteAdapter An exception or
error occurred in the container during the request
processing
java.lang.OutOfMemoryError

2003-10-22 16:23:10 CoyoteAdapter An exception or
error occurred in the container during the request
processing
java.lang.OutOfMemoryError

2003-10-22 22:52:03 CoyoteAdapter An exception or
error occurred in the container during the request
processing
java.lang.OutOfMemoryError



During this time, I also get entries in localhost_log
of the following form:

2003-10-22 16:15:50 StandardWrapperValve[5cam]:
Servlet.service() for servlet 5cam threw exception
javax.servlet.ServletException: Servlet execution
threw an exception
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
        at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
        at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590)
        at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
        at java.lang.Thread.run(Thread.java:536)
----- Root Cause -----
java.lang.OutOfMemoryError



So, based on these two things, the problem seems to be
a memory issue. I run java with the -Xmx200000000
option when I start tomcat. I used this because I have
a development server that runs this same cocoon
application fine. However, the development server is
running linux on x86 and may have different versions
of the JDK installed so perhaps the two aren't really
comparable. The other difference between the
production (the one im having problems with) and
development server is that on the production server,
I'm using mod_jk in conjunction with apache whereas on
the development server, tomcat serves all pages by
itself.


If anyone could point me in the right direction on how
to solve this issue, I'd appreciate it. If there is
any further information I could provide that would be
helpful, please let me know!

Thanks

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message