I am not qualified to describe the difference between
org.apache.tomcat.service.PoolTcpConnector and
org.apache.tomcat.service.SimpleTcpConnector.  The former is apparently the
default for Tomcat 3.2.1, as I did not change it.  I would have guessed that
the pool connector supports the use of a pool of threads to handle requests
(rather than creating a new thread to handle each request).  From a quick
look at the code, it appears objects to handle reading the request and
returning the response are pooled, but it is not clear that threads are
pooled.

The backlog parameter can be set for either or both the Http server and
Jserv (servlet) server by placing it between the appropriate <Connector> and
</Connector> tags.

The backlog parameter is used when constructing a java.net.ServerSocket.
Ultimately, it is passed to the listen() function, telling the TCP/IP stack
the number of connections that may be queued before refusing connections.
The default within the Tomcat code I am reading is 100.  To successfully
handle 500 "simultaneous" clients, as in your test code, I needed to set
this to 500 for the Http connector.  I was also able to make the test fail
for a small number of clients by setting this to a low number.

Scott

----- Original Message -----
From: "siddharth aggarwal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 12:14 AM
Subject: Re: Re: performance of apache SOAP


Hi,
 Thanks a lot Scott, for your effort. I'm sure it will solve my problem.
 I have a small doubt about the backlog parameter that you have mentioned in
the excerpt from server.xml that you have given from your mail

In my file it looks something like

<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
    <Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
    <Parameter name="port" value="8080"/>
</Connector>

<Connector className="org.apache.tomcat.service.SimpleTcpConnector">
    <Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
    <Parameter name="port" value="8007"/>
</Connector>

Where you have written
className="org.apache.tomcat.service.PoolTcpConnector" , I have
"className="org.apache.tomcat.service.SimpleTcpConnector"

what is the difference between the two.

Secondly, in my server.xml file, where should I insert the backlog
parameter.

Thirdly, what is the significance parameter? Does it put an upper limit on
the no. of connections it can take. Can I increase this number?

thanks in advance.
regard,
siddharth








Reply via email to