Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Tomcat 5.5.16 threads and SSL problem

A J Rodrigues

2006-12-01


Hi

I am fighting with Tomcat for a couple of days and I cannot find a cause
to the problem.

I am using Tomcat 5.5.16 and it is configured to run HTTP on port 8081
and HTTPS on port 8444.

The problem:
The application runs properly over HTTP. However over HTTPS the number
of threads keep increasing and they remain busy forever.
When the maximum of threads is reached the Tomcat hangs.

I reviewed all the code and all database connections are closed after
use. I checked directly in the database and there are not open connections.

I have tested the application using Tomcat 5.0.19 and it works perfectly
in both HTTP and HTTPS. The threads are released after use.


The connector configuration is the following:

<!-- Define a non-SSL HTTP/1.1 Connector on port 8081 -->
<Connector port="8081" maxHttpHeaderSize="8192" maxThreads="150"
 minSpareThreads="25" maxSpareThreads="75" enableLookups="false"
 redirectPort="8444" acceptCount="100" connectionTimeout="20000"
 disableUploadTimeout="true" />

<!-- Define a SSL HTTP/1.1 Connector on port 8444 -->
<Connector port="8444" maxHttpHeaderSize="8192"
 maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
 enableLookups="false" disableUploadTimeout="true"
 acceptCount="100" scheme="https" secure="true"
 clientAuth="false" sslProtocol="TLS"
 SSLEngine="on"
 SSLCACertificateFile="/home/helmet/thawteintermediate.crt"
 SSLCertificateFile="/home/helmet/intranet.crt"
 SSLCertificateKeyFile="/home/helmet/intranet.key" />

<!-- Define an AJP 1.3 Connector on port 8010 -->
<Connector port="8010"
 enableLookups="false" redirectPort="8444" protocol="AJP/1.3" />


Any ideas?

Thanks a lot.
Ant?nio


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.