• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Zombies and Dead WOAs... Part Two..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Zombies and Dead WOAs... Part Two..
      • From: James Cicenia <email@hidden>
References: 
 >Zombies and Dead WOAs... Part Two.. (From: John Lennard <email@hidden>)
 >Re: Zombies and Dead WOAs... Part Two.. (From: Ian Coleman <email@hidden>)

  • Prev by Date: Re: are you able to fill this form?
  • Next by Date: Re: Class cast exception thrown in in EODistributionContext
  • Previous by thread: Re: Zombies and Dead WOAs... Part Two..
  • Next by thread: Re: Zombies and Dead WOAs... Part Two..
  • Index(es):
    • Date
    • Thread