Amit,

You really need to post questions on the appropriate list and AVOID posting
to inappropriate lists.  It's like the story of the boy who cried wolf.
Pretty soon, you might be ignored by people who feel you are rudely and
needlessly eating up their important list-reading minutes, as has been
suggested before in different words on the Struts-user list.

That being said, to try and address your questions here are my suggestions:

***** It would have helped in the investigation of your email if you had
been kind enough to remove the areas commented out by <!-- ... --> marks.  I
did that in the below included version of your email and it makes things
cleaner and clearer.

1. Go into your Tomcat Manager application and click on Server Status.  It
will describe each connector you have installed (HTTP on port 8080 and
AJP/1.3 on port 800).  Mine shows 25 Threads (my minSpareThreads setting)
for HTTP and 4 threads for AJP.  Since you have 5 for the HTTP and an AJP
configured, if it defaults, like mine, to 4, then you have 9 threads
running.  If you are using Tomcat as a stand-alone WITHOUT any HTTPD in
front of it, then you should probably comment out the AJP connector.  It is
really (to my knowledge) only useful if Apache HTTPD or IIS is setup at a
web server to pass on Java requests to Tomcat.  If you don't do that, don't
enable it as you did.


2. Why are some regular HTTP requests on port 8080 being forwarded to port
8443.  You should read the Tomcat docs on connectors at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html

It states: If this Connector is supporting non-SSL requests, and a request
is received for which a matching <security-constraint> requires SSL
transport, Catalina will automatically redirect the request to the port
number specified here.

So, do you have any security constraints for your module that might cause
this behavior to be invoked?  Security constraints are often used in
relation to login pages or pages which require roles to access them.

Regards,
David

-----Original Message-----
From: Amit Gupta [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 11:43 PM
To: Tomcat Users List; Struts Users Mailing List
Subject: Doubts with tomcat


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

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


<!-- 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/e
ndorsed -classpath
/usr/java/jdk1.5.0//lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar:/usr/l
ocal/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/usr/local/tomcat -D
catalina.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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to