0 Replies Latest reply on Aug 16, 2005 2:58 PM by abitha

    mod-jk Tomcat JBoss problem in production

    abitha

      Im not sure if this the right forum for this,but here goes - We use Jboss 3.2.6 with JBOssCache for replication, and mod-jk for load balancing. We are running in a cluster, but sometimes we have this problem even without the cluster (the problem is exacerbated with multiple app servers)

      Our problem is that: we have mod jk with jboss. When the load is high, after an hour or so (sometimes the time interval varies), mod jk gets locked up (ie, does not take in any more connections), and one or more of the appserver instances die with java defunct processes. I have to forcekill the app server instance to make the setup work again. This never happens in development, and always in production. Any insight on this will be very greatly appreciated. Because of this we are unable to deploy the cluster.

      Another exception we see in the logs is:

      I get this exception, every few minutes in the log, although they dont seem to be doing anything (please see below).

      Thanks!

      -----

      2005-08-16 10:47:52,415 WARN [org.apache.jk.common.ChannelSocket] Error registering request
      2005-08-16 10:49:44,986 ERROR [org.apache.commons.modeler.Registry] Error registering jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest111

      javax.management.InstanceAlreadyExistsException: jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest111 already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:704)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:212)
      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1018)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:326)
      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)
      2005-08-16 10:49:44,987 WARN [org.apache.jk.common.ChannelSocket] Error registering request