-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chandrakant,

On 11/29/11 6:37 AM, Chandrakant Solanki wrote:
> I am using apache-tomcat-6.0.26.

Can you upgrade? That version is about 18 months old and some
important updates have been included in later releases.

> My question is Tomcat Closed TIMEOUT or CLOSE_WAIT socket or is
> there any mechanism to do the same. My client is mobile based
> application.

It's a little difficult to understand your question. Can you ask in a
different way?

Do you have a mobile application that needs to connect to Tomcat and
you'd like to close the connection? Or do you have a Tomcat running
that has lots of TIMEOUT or CLOSE_WAIT connections clogging-up your
system?

> Here is server.xml's connector.
> 
> <Connector port="8080"
> protocol="org.apache.coyote.http11.Http11NioProtocol" 
> redirectPort="8443" maxKeepAliveRequests="1" maxThreads="5000" 
> processCache="500" acceptorThreadCount="1" enableLookups="false"
> disableUploadTimeout="false" connectionUploadTimeout="240000" 
> compression="on" connectionTimeout="180000" 
> compressionMinSize="2048" noCompressionUserAgents="gozilla,
> traviata" compressableMimeType="text/html,text/xml" />
> 
> 
> <Connector port="8443"
> protocol="org.apache.coyote.http11.Http11NioProtocol" 
> maxThreads="10000" processCache="500" acceptorThreadCount="1" 
> enableLookups="false" disableUploadTimeout="false" 
> connectionUploadTimeout="240000" compression="on"
> connectionTimeout="180000" compressionMinSize="2048" 
> noCompressionUserAgents="gozilla, traviata" 
> compressableMimeType="text/html,text/xml" acceptCount="100"
> scheme="https" secure="true" address="10.176.201.237"
> allowTrace="false" SSLEnabled="true" keystoreFile="...."
> keystorePass="..." SSLCertificateFile="...." 
> SSLCertificateKeyFile="...." clientAuth="false" sslProtocol="TLSv1"
> maxKeepAliveRequests="1"/>

You might want to consider using an <Executor> and connect it to both
of these connectors. That will reduce the number of threads that your
server uses. That may or may not be a good idea in your environment,
but I thought I'd mention it.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk7U+ZsACgkQ9CaO5/Lv0PBaMACfWs+i+WHVdQvYf6857txUE26p
d3oAnR6URqjNz7W4eCW08MoCDrxYM3mt
=hUD2
-----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