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 20:40:44 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 9/1/2011 2:00 PM, Caldarale, Charles R wrote:
>> From: David kerber [mailto:dckerber@verizon.net] Subject: Re:
>> Performance for many small requests
> 
>>> 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.
> 
> NIO may incur slightly more overhead due to thread switching.
> You'll have to measure to see if it's of any benefit.

Yes, but my guess is that it would be better than suffering through
keepalive timeouts if the clients stupidly specify "Connection:
Keep-Alive" when they don't actually intend to send multiple requests.

>>> Looks like this connector has very little configuration. Is
>>> that because you aren't using it?
> 
>> 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.
> 
> It's perfectly safe to comment it out or remove it. Doing so is 
> unlikely to have any effect on performance.

It will probably result in the creation of at least one less thread.
It's also a simpler configuration, uses (slightly) less memory, and
reduces any attack vectors an intruder might want to use.

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

iEYEARECAAYFAk5f7cwACgkQ9CaO5/Lv0PDyPwCeMKszXxJEetGetzqzrcSbFp4R
1uUAn1fM0ITBMDrgzjdHklbEmthx3cKi
=zvGH
-----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