tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Performance for many small requests
Date Thu, 01 Sep 2011 17:15:03 GMT
-----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.

> 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?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5fvZcACgkQ9CaO5/Lv0PBoFgCgt/8pP7YiQsfn6QK2hQypuaSQ
XsgAn3znWPovPxKRfOmirkaJ1hPAVUG3
=rkks
-----END PGP SIGNATURE-----

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


Mime
View raw message