Re: thread recovery

2016-04-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mahudeswaran,

On 4/25/16 2:03 AM, Mahudeswaran A wrote:
> Let's assume mutex.wait being called in one of the tomcat thread. 
> The thread state is still RUNNABLE but the thread does nothing and 
> just waiting.
> 
> Is there any functionality in tomcat to automatically recovery for 
> these threads either through some configurations? For e.g. if
> there are threads in the same state for more than 7 or 8 hours...

If Tomcat code is wait for hours (and it's a problem), then it's a bug
in Tomcat. I think that's rather unlikely.

If you have Object.wait() calls in your own code, perhaps what you
really want to do is change those to Object.wait(timeout) with a
sufficiently long timeout not to cause any performance problems, but
which can allow a thread to "recover" even if the mutex never received a
notify() call.

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlcfj54ACgkQ9CaO5/Lv0PAGGwCgmhUYGT6YUIA0eZgBdSO8vG0m
UsIAnjMXV9vf/OuLZ+x6fv4yGmOQJ7dV
=Y7Ri
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



thread recovery

2016-04-24 Thread Mahudeswaran A
Hi All,
Let's assume mutex.wait being called in one of the tomcat thread.
The thread state is still RUNNABLE but the thread does nothing and just waiting.

Is there any functionality in tomcat to automatically recovery for these 
threads either through some configurations?
For e.g. if there are threads in the same state for more than 7 or 8 hours...

Thanks & Regards



Idle thread recovery?

2008-01-25 Thread Craig Berry
My tomcat 6.014 instance is configured with an HTTP 1.1 listener with
maxSpareThreads="50", but after a period of heavy use that allocates 200
connector threads, when usage falls again the extra threads never seem
to be shut down.  I'd expect to eventually see the connector thread
count fall to 50.  Is there something I'm missing?

 

-- 

Craig Berry (x 5046)