Re: Restarting a hung process

Jonathan Rentzsch <[email protected]> Fri, 25 Feb 2005 16:00:45 -0800
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
On Feb 25, 2005, at 2:47 PM, John Pollard wrote:
> I guess the lifebeat thread of a hung app instance keeps on happily 
> running so there is no way for JavaMonitor to kill a hung app is 
> there? Does anyone have a script to check if their app instances are 
> actually responding to requests and to kill them if not?

Not quite what you're asking for but my drop-in Seppuku framework will 
detect deadlocked instances and have the instance kill itself off:

<http://rentzsch.com/share/Seppuku-0.dmg>

It relies on WOFrameworkInitializer:
<http://rentzsch.com/share/WOFrameworkInitializer-0.dmg>

Background info slides here:
<http://rentzsch.com/cawug/woWebLogSlides>

| Jonathan 'Wolf' Rentzsch   http://rentzsch.com
| Red Shed Software           http://redshed.net
|     "better" necessarily means "different"