Re: Zombies and Dead WOAs... Part Two..
Re: Zombies and Dead WOAs... Part Two..
- Subject: Re: Zombies and Dead WOAs... Part Two..
- From: James Cicenia <email@hidden>
- Date: Fri, 27 Jun 2008 08:37:58 -0500
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 "example\@example.com" 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden