Hung JBoss/Tomcat instances and "ignored" shutdown requests

I kept hearing about how people were using "kill" in Tomcat shutdown scripts, as they'd shutdown an instance but it would still be running. Further attempts to shutdown after the initial one would say something to the effect of "already shut down" or some-such.

I hadn't been experiencing this, and said so publicly-- at which point I promptly started to experience this locally when running certain unit tests.

It sorta bugged me, and having a semi-reproducible set up, I figured what the hell, might as well troubleshoot.

For Schlitz and giggles, I cycled httpd after causing a "hung" process, and what do you know, JBoss finished shutting down.

I think this is something in the way folks have AJP set up. I'm playing with some settings, namely the "connectionTimeout" attribute in the Tomcat AJP connector config, and the "ping" attribute for mod_proxy.

I'll update this when I have a chance to see if one of them worked-- I'm troubleshooting while doing real work, so I don't shut down often. =]

Update:

Well, so far, after adding the connectionTimeout attribute to the AJP connector in deploy/jbossweb.sar/server.xml, I haven't had the shutdown problem.

I'm unconvinced so far, but so far, so good.

Here are some mod_proxy docs:

http://httpd.apache.org/docs/2.3/mod/mod_proxy.html

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Hem Talreja's Gravatar Hi,

I experienced this yesterday.

Mac Snow Leopard
JBoss 1.5.1
Railo 3.1
CF 9 beta1 (32 bit)

I am using the default JDK that is a part of mac.

Hope this helps.
Let me know if you would like me to zip up the jboss directory and provide you with a download of the same.

-Hem
# Posted By Hem Talreja | 9/14/09 7:36 AM
coldshen's Gravatar Try adding the connectionTimeout attribute, and if it works, that'll help convince me that it is really the fix. I'm unsure what a good setting is, but I think it's like 60000? 300 is apparently way, way too low.

Yeah, I dunno if this is really the fix, but it's on the right track probably.
# Posted By coldshen | 9/16/09 1:32 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.9.3.000. Contact Blog Owner