You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Laurent Perez <ha...@gmail.com> on 2005/12/13 10:38:09 UTC
mod_jk troubles under heavy load
Hello
I'm using Apache2 + mod_jk + Tomcat 5.0.25 for a customer web site,
everything seems to work ok, but under heavy load, the following error
randomly appears inside my catalina.out :
12 déc. 2005 14:46:53 org.apache.commons.modeler.Registry registerComponent
FATAL: Error registering
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest39683
javax.management.InstanceAlreadyExistsException:
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest39683
at mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123)
at mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054)
at mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
at mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
12 déc. 2005 14:46:53 org.apache.jk.common.ChannelSocket registerRequest
ATTENTION: Error registering request
I'm puzzled with this "InstanceAlreadyExistsException" exception,
because I'm only using one Tomcat instance, with one worker.
After this error happens, the site is still running, but performance
is slowly degrading, too many tomcat threads - I presume one for every
mod_jk request - are created and do not seem to be cleanup up, the cpu
slowly raises to 100%, and a few hours later I have to restart Tomcat
because every request goes timeout.
Is it a known performance problem and are there tips to avoid this ?
Thanks for any input
Laurent
--
<a href="http://in-pocket.blogspot.com">http://in-pocket.blogspot.com
- Mobile world, technology and more</a>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk troubles under heavy load
Posted by Laurent Perez <ha...@gmail.com>.
Hi Peter
> a) Use a newer tomcat release 5.0.30 better 5.5.9 or higher
> b) <5.0.30 has a memory leak with registering stats as jk requests
> use request.registerRequests=false inside you worker2.properties
Unfortunately I can't really switch my tomcat version, because my
webapp is colocated with another client one which "requires" 5.0.25.
Thank you very much for this bug report, I wasn't aware of this, and
this thread http://marc.theaimsgroup.com/?l=tomcat-user&m=113297418730693&w=2
describes exactly the problems I'm experiencing, so I'll add this
property and check the load afterwards.
Thanks again
Laurent
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: mod_jk troubles under heavy load
Posted by Peter Rossbach <pr...@objektpark.de>.
a) Use a newer tomcat release 5.0.30 better 5.5.9 or higher
b) <5.0.30 has a memory leak with registering stats as jk requests
use request.registerRequests=false inside you worker2.properties
Peter
Laurent Perez schrieb:
>Hello
>
>I'm using Apache2 + mod_jk + Tomcat 5.0.25 for a customer web site,
>everything seems to work ok, but under heavy load, the following error
>randomly appears inside my catalina.out :
>
>12 déc. 2005 14:46:53 org.apache.commons.modeler.Registry registerComponent
>FATAL: Error registering
>Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest39683
>javax.management.InstanceAlreadyExistsException:
>Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest39683
> at mx4j.server.MBeanServerImpl.register(MBeanServerImpl.java:1123)
> at mx4j.server.MBeanServerImpl.registerImpl(MBeanServerImpl.java:1054)
> at mx4j.server.MBeanServerImpl.registerMBeanImpl(MBeanServerImpl.java:1002)
> at mx4j.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:978)
> at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
> at org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
> at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
> at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
> at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
> at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
> at java.lang.Thread.run(Thread.java:534)
>12 déc. 2005 14:46:53 org.apache.jk.common.ChannelSocket registerRequest
>ATTENTION: Error registering request
>
>I'm puzzled with this "InstanceAlreadyExistsException" exception,
>because I'm only using one Tomcat instance, with one worker.
>
>After this error happens, the site is still running, but performance
>is slowly degrading, too many tomcat threads - I presume one for every
>mod_jk request - are created and do not seem to be cleanup up, the cpu
>slowly raises to 100%, and a few hours later I have to restart Tomcat
>because every request goes timeout.
>
>Is it a known performance problem and are there tips to avoid this ?
>
>Thanks for any input
>Laurent
>
>--
><a href="http://in-pocket.blogspot.com">http://in-pocket.blogspot.com
>- Mobile world, technology and more</a>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org