• 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: recognising dead instances
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recognising dead instances


  • Subject: Re: recognising dead instances
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 25 Jan 2010 13:10:27 -0800


On Jan 25, 2010, at 12:31 PM, Pascal Robert wrote:


Le 10-01-25 à 15:12, Chuck Hill a écrit :


On Jan 25, 2010, at 5:35 AM, Pascal Robert wrote:


Le 10-01-25 à 01:40, Lachlan Deck a écrit :

Hi all,

just polling for ideas / techniques people use in detecting dead instances. Naturally when there's lots of instances running in deployment it can be hard to know if a particular instance has locked up for some reason (and this can sometimes have a flow on affect with the adaptor).


We use Nagios with the check_http module (bundled with the default Nagios plugins). We check a DirectAction that simply returns "OK" and nothing else, but we will add two more checks : one that will fetch a very small dataset with EOF and another one by raw JDBC. By doing one check by EOF and one by JDBC, we can see if it's a EOF deadlock or not. The most important thing: don't check a page that use sessions! If you try to stop an app cleanly but Nagios or other tools keeps creating new sessions, you might have a fun time.

As for checking specific instances, you can specific the instance number in the URL, but the problem is that the HTTP adaptor will send you to another instance if the checked instance is dead. BUT you can use Wonder's variant of JavaMonitor to check if a specific instance is up or not.

Or, more easily, have the instance number returned in the response (e.g. "4 OK") so that the script can verify that the result is from the correct instance.

Like the patch in WONDER-450 JIRA ?

No, that is something different. The monitor actions are interesting, but harder to use from a shell script.



Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
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


References: 
 >recognising dead instances (From: Lachlan Deck <email@hidden>)
 >Re: recognising dead instances (From: Pascal Robert <email@hidden>)
 >Re: recognising dead instances (From: Chuck Hill <email@hidden>)
 >Re: recognising dead instances (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: How to set jvmOptions for an eclipse project?
  • Next by Date: Re: How to set jvmOptions for an eclipse project?
  • Previous by thread: Re: recognising dead instances
  • Next by thread: Re: recognising dead instances
  • Index(es):
    • Date
    • Thread