tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Gupta" <amit.gu...@computerware.co.in>
Subject Doubts with tomcat
Date Mon, 08 Nov 2004 04:43:14 GMT
Hello everybody,

I have following section in server.xml

<Connector port="8080"

maxThreads="25" minSpareThreads="5" maxSpareThreads="15"

enableLookups="false" redirectPort="8443" acceptCount="100"

debug="0" connectionTimeout="20000" 

disableUploadTimeout="true" />

<!-- Note : To disable connection timeouts, set connectionTimeout value

to 0 -->


<!-- Note : To use gzip compression you could set the following properties :


compression="on" 

compressionMinSize="2048" 

noCompressionUserAgents="gozilla, traviata" 

compressableMimeType="text/html,text/xml"

-->

<!-- Define a SSL HTTP/1.1 Connector on port 8443 -->

<!--

<Connector port="8443" 

maxThreads="25" minSpareThreads="5" maxSpareThreads="15"

enableLookups="false" disableUploadTimeout="true"

acceptCount="100" debug="0" scheme="https" secure="true"

clientAuth="false" sslProtocol="TLS" />

-->

<!-- Define an AJP 1.3 Connector on port 8009 -->

<Connector port="8009" 

enableLookups="false" redirectPort="8443" debug="0"

protocol="AJP/1.3" />

I have following queries:

1) When I start tomcat with above server.xml , it creates 9 process with same output on shell.
it is 

/usr/java/jdk1.5.0//bin/java -Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath
/usr/java/jdk1.5.0//lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/commons-logging-api.jar
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp
org.apache.catalina.startup.Bootstrap start. 

I configured tomcat to run with minSpareThreads="5" then why it start with 9 threads?

2) In tomcat , port 8080 is redirected to SSL port 8443. Why NON-SSL port is redited to SSL
port?

Please help me to understand these basics.

Amit Gupta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message