10 Replies Latest reply on Aug 21, 2008 7:29 AM by rajeshchande

    mod_jk intermittently loosing connection to jboss 4.2


      I have a Debian (stable) server which is running Apache 2.2.3, and using mod_jk to connect to my application running within JBoss.

      I have been running with this using JBoss 4.0.5 for many months, without issue. I just upgraded to JBoss 4.2.0. Things start off fine, however after running for a while (last night it took 6.5 hours) the mod_jk logs start showing these errors:

      [Wed Jun 06 07:45:00 2007][29336:14016] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (948): (node1) can't receive the response message from tomcat, network problems or tomcat is down (*MyIP*:8009), err=-104
      [Wed Jun 06 07:45:00 2007][29336:14016] [error] ajp_get_reply::jk_ajp_common.c (1566): (node1) Tomcat is down or refused connection. No response has been sent to the client (yet)
      [Wed Jun 06 07:45:00 2007][29336:14016] [error] ajp_service::jk_ajp_common.c (1928): (node1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port

      These errors do NOT happen with each request. They happen perhaps one out of five, although it seems to fluctuate. Most requests work, but many don't. There are NO errors in the JBoss logs. I have tried using and my actual non-loopback IP address and the same thing happens.

      I can fix it by restarting JBoss, then everything works, for a few hours at least, before the problem starts up again.

      Has anyone seen anything like this? Any ideas on what I can do? I'd hate to have to move back to JBoss 4.0.5, as I would like to use the newer libraries without having to load my own in.

      Please help.