Will this detect the "no instance available" message?


On Jun 27, 2008, at 7:29 AM, Pierce T. Wetter III wrote:

Ok, here it is.

<deadlockFinder.pl.zip>


Be sure and change "[EMAIL PROTECTED]" on line 20 to something appropriate for you.

What it does is every 5 minutes it looks at all the running java processes looking for WebObjects applications. It uses the same mechanism as wotaskd to "ping" the app via curl. If the app doesn't respond within 10 seconds, it increments a counter. If the counter counts up to 6, it starts sending out a warning email. If it counts up to 12, it does:

killall -9 hsdbd; jstack $pid

to grab a stack crawl, then kills the app and emails the stack crawl. You have to run this script with sufficient privileges on all of your app servers.

Pierce



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      (Webobjects-deploy@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to