Re: Measuring the worker thread count
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