tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Cryder" <christi...@granitepeaks.com>
Subject RE: Configuring Tomcat connections
Date Thu, 15 Jan 2004 20:47:50 GMT
Ok, so I tried upgrading to Tomcat 5.0.16, and I am still seeing similar
results (slightly better).

I am hitting the standard HelloWorld servlet
(http://localhost:8080/servlets-examples/servlet/HelloWorldExample). When I
get over about 16-17 simultaneous connections, I start getting connect
expections.

I am using the default server configuration from server.xml (and once again,
changing these values does not seem to make any difference whatsoever):

    <Connector port="8080"
       maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
       enableLookups="false" redirectPort="8443" acceptCount="100"
       debug="0" connectionTimeout="20000"
       disableUploadTimeout="true" />

So how come I can't get more than 20 connections at a time? What gives???

Christian

(I am running on Win2K Pro, by the way; latest service packs, 512 MB Ram)
----------------------------------------------
Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
----------------------------------------------
"Coffee? I could quit anytime, just not today"


> -----Original Message-----
> From: Christian Cryder [mailto:christianc@granitepeaks.com]
> Sent: Thursday, January 15, 2004 2:32 PM
> To: Tomcat-User
> Subject: Configuring Tomcat connections
>
>
> Can someone offer some suggestions on configuring the number of
> connections
> Tomcat 4.1 will accept? I am using a stress tester to access the sample
> servlet (http://localhost:8080/examples/servlet/HelloWorldExample).
> Somewhere around 14-15 concurrent requests, I start seeing
> "java.net.ConnectException: Connection refused: connect"
>
> Looking in the Tomcat server.xml file, I see
>
>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>                port="8080" minProcessors="5" maxProcessors="75"
>                enableLookups="true" redirectPort="8443"
>                acceptCount="10" debug="0" connectionTimeout="20000"
>                useURIValidationHack="false" />
>
> I assume this is the connector I'm going through (since my URL is
> referring
> to port 8080). According to the docs
> (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/webapp.html)
> acceptCount and maxProcessors should affect this behavior, but I am not
> seeing any changes when I adjust them upwards. Should I be looking
> elsewhere? Anyone have any suggestions?
>
> Thanks,
> Christian
> ----------------------------------------------
> Christian Cryder
> Internet Architect, ATMReports.com
> Project Chair, BarracudaMVC - http://barracudamvc.org
> ----------------------------------------------
> "Coffee? I could quit anytime, just not today"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message