On 9/1/2011 1:15 PM, Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David,
>
> On 9/1/2011 10:40 AM, David kerber wrote:
>> I'm having some somewhat minor performance issues, not performing
>> quite as well as my Win2k machine with TC 5.5. Could somebody look
>> at my server.xml and recommend some tweaks for handling tons of
>> very small requests,<150 bytes per request. The requests are sent
>> with a single http post, from ~600 remote sites collecting data
>> every few seconds to minutes.
>
> If the requests are small and you are making them individually, you
> might want to either disable HTTP keepalives or have your clients
> specify "Connection: close" in their request headers. You could also
> use the NIO connector which allows you to have fewer threads serve
> more requests without the keepalive-expiration delay.
Thanks, I'll take a look at this.
>
>> Would one of the thread pools help this situation?
>
> Probably not, but I think thread pools (aka<Executor>s) are a good
> idea because they can take threads out-of-service when not in use.
>
>> <!--<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
>> maxThreads="300" minSpareThreads="4"/> --> <Connector port="1024"
>> protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
>> maxThreads="600" acceptCount="100" minSpareThreads="10"
>> socketBuffer="16384" />
>>
>> <!--<Connector executor="tomcatThreadPool" port="8080"
>> protocol="HTTP/1.1" connectionTimeout="10000" redirectPort="8443"
>> /> -->
>>
>> <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
>
> Looks like this connector has very little configuration. Is that
> because you aren't using it?
That's correct. I didn't touch it because I don't know what to do with
it, and didn't know if deleting it would cause a problem.
D
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
|