(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 PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/lachlan.deck%40gmail.com

This email sent to [EMAIL PROTECTED]

with regards,
--

Lachlan Deck



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to