-----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

Reply via email to