Chuck,

thanks for the rapid and useful response.

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.

I've used your default adaptor info to extract the current number of active threads, and if they get above a reasonable number, log the request. This might help us find the cause of the problem.

Regards
Thomas

On 26/09/2008, at 1:03 PM, Chuck Hill wrote:

Hi Thomas,

On Sep 25, 2008, at 7:51 PM, Thomas wrote:

I have a deployed application that is occasionally opening a huge number of file descriptors and brining down the server. I believe that it is caused by one or more requests getting stuck, and because each worker thread opens many files, the max descriptors limit is reached.

I want to test my theory by measuring the number of worker threads that are currently open, and compare this with a similar application without the problem.

How do I measure the current number of active worker threads? It doesn't appear in the WOStats page.


Not easily.

((WODefaultAdaptor )WOApplication.application().adaptors().objectAtIndex(0)).toString()

will get you a string that contains the number you want among other things.

I'd consider going at it from a different angle: limit the number of worker threads. More than a handful or so probably indicates problems you need to deal with in terms of optimizing the implementation or deploying more instances (and servers if needed). Try launching with

<pastedGraphic.pdf>



Refer to http://developer.apple.com/documentation/WebObjects/WOAppProperties/Articles/ApplicationProperties.html#/ /apple_ref/doc/uid/TP40005337-SW1

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-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to