Re: Zombies and Dead WOAs... Part Two..
Re: Zombies and Dead WOAs... Part Two..
- Subject: Re: Zombies and Dead WOAs... Part Two..
- From: "Pierce T. Wetter III" <email@hidden>
- Date: Fri, 27 Jun 2008 05:29:32 -0700
Ok, here it is.
Attachment:
deadlockFinder.pl.zip
Description: Zip archive
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