• 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: Measuring the worker thread count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Measuring the worker thread count


  • Subject: Re: Measuring the worker thread count
  • From: Lachlan Deck <email@hidden>
  • Date: Sat, 27 Sep 2008 22:09:57 +1000

(Taking to webobjects-dev...) Ultimately - the related question is: I've noticed, anecdotally at least, that if a particular request throws exceptions then some resources for that request might not get released. So is there a way of forcing the releasing of resources once a request is done?

On 26/09/2008, at 4:19 PM, Guido Neitzer wrote:

On 26-Sep-08, at 12:03 AM, Thomas wrote:

The server has a low CPU load and low request rate, so it's not the server. I believe that some requests are causing a deadlock in their worker thread, and these build up until the max descriptors limit is reached.

Best you can do is getting a thread dump and check what the hanging threads where doing and fix that. So limiting the number of worker threads will still help as you will notice it earlier when an application hangs.


Easiest way:

Find the hanging instance process id with:

ps -auxwww | grep ApplicationLogfileName-1

Send a QUIT signal:

kill -QUIT <pid>

Find the thread dump in the webobjects.log file if you specified:

#!/bin/sh
$@ 1>>/var/log/webobjects.log 2>&1 &

in:

/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ Resources/SpawnOfWotaskd.sh

That will give you more information than logging the requests ...

cug

--
Real World WebObjects Bootcamp at the Big Nerd Ranch:
http://www.bignerdranch.com/classes/real-world_webobjects.shtml

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

with regards, --

Lachlan Deck



_______________________________________________
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


  • Prev by Date: Re: Handling Many2Many relationship
  • Next by Date: Re: caseInsensitiveLike unknown operator exception
  • Previous by thread: Re: Handling Many2Many relationship
  • Next by thread: Deployed app performance degrades over time
  • Index(es):
    • Date
    • Thread