Tomcat Hang problem on Sun Solaris

Hi All,

Few days back we started facing problem with Tomcat server. The problem Tomcat was facing of abrupt hanging issue when application goes on peak on Sun Solaris.
So I would like to highlight the action taken to fix the issue.

1. Thread dumps : They have played a crucial part in identifying the Hang issue on Tomcat.
Please read the article to fecth Threads dumps on Tomcat.

2. Max Thread: The real problem I have identified was of Maximum Threads allocation was very less defined (40).

To Configure
<tomcat home>/conf/server.xml
<Connector connectionTimeout=”20000″ maxThreads=”300″ port=”8080″ protocol=”HTTP/1.1″ redirectPort=”8444″/>

3. DBCP : Few connections were blocking the threads, statement timeout was -1. and plenty of leaked connections. And after that we have observed the issue on Tomcat got resolved.

4.  Max Wait: Maximum time to wait for a dB connection to become available in ms, An Exception is thrown if
this timeout is exceeded.  Set to -1 to wait indefinitely. And this was found to be the culprit. Again we have configured it to 10000 insted of -1 (But it always depend upon your requirements).
Set this in
<Tomcat home>/conf/server.xml [ context path ]

5. Disable SSLEngine in the AprLifecycleListener directive (server.xml)
<Listener className=”org.apache.catalina.core.AprLifecycleListener” SSLEngine=”off” />

Hope this helps.

R Vashi

1 thought on “Tomcat Hang problem on Sun Solaris

  1. Gabriele Bulfon

    Hi, did your Tomcat hang forever or just for a while?
    In my case, I happen to have this problem sometimes during the day on some Solaris 10 installations running on VMWare: it just freezes for say 1 minute and then goes on again.


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.