• 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: 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
  • Follow-Ups:
    • Re: Zombies and Dead WOAs... Part Two..
      • From: "Pierce T. Wetter III" <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>)
 >Re: Zombies and Dead WOAs... Part Two.. (From: "Pierce T. Wetter III" <email@hidden>)

  • Prev by Date: Re: Class cast exception thrown in in EODistributionContext
  • Next by Date: Re: WebObjects - Project Wonder
  • Previous by thread: Re: Zombies and Dead WOAs... Part Two..
  • Next by thread: Re: Zombies and Dead WOAs... Part Two..
  • Index(es):
    • Date
    • Thread