tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: What is the best connector configuration for thousands of mostly idle users?
Date Tue, 11 Feb 2014 20:47:02 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jesse,

On 2/11/14, 8:24 AM, Jesse Barnum wrote:
> On Feb 11, 2014, at 4:56 AM, André Warnier <aw@ice-sa.com> wrote:
> 
>> It looks that way. But this mod_proxy parameter (disablereuse,
>> lowercase - I don't know if it matters) is in a section
>> "BalancerMember parameters", and it is not very clear if that
>> applies even if you are not using a balancer, or if it is
>> forwarded to mod_proxy_ajp. Some other options in the same page
>> specify this explicitly, but this one doesn't.
>> 
>> I guess that Mark could answer that.
>> 
>> I think that it would help, in a general sense, if there was a
>> general "translation table" somewhere showing the AJP or other
>> attributes or control parameters which exist, and to what option
>> they correspond in respectively mod_jk and
>> mod_proxy/mod_proxy_ajp. But due to the difficulty of figuring
>> this out by trial and error, probably only the respective
>> developers can do that.
>> 
>>>> But I don't remember (and did not check earlier in the
>>>> thread) if you indicated that you are using mod_proxy_ajp.
>>>> 
>>>> And to answer the previous question : yes, I believe that you
>>>> can keep a long keep-alive in Apache httpd, independently of
>>>> how httpd connects to Tomcat.
> 
> Once we started getting to around 5,000 connected users, our
> Tomcat application became overwhelmed and unresponsive using the
> AJP NIO connector. I've temporarily improved the situation by
> moving to much more powerful hardware. However, it still drops a
> few connections throughout the day.

Are you sure the problem is Tomcat? If your clients have a long
keepalive timeout with httpd and you are not using the event MPM, then
each client is tying-up an HTTP connection (and thread) while not
actually accomplishing anything. You may be starving your own clients
by not having enough connections available to httpd.

> I will experiment with other configurations on a test instance,
> and load it up using the 'ab' Apache Benchmarking tool. I will post
> back my results on this list.

I have it on good authority that ab isn't great at launching
simultaneous requests (high concurrency). Unless you have lots of
servers available to generate load, you might want to try a different
tool. (Though 5000 concurrent requests isn't much, so it will probably
suffice)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJS+oxFAAoJEBzwKT+lPKRYm8wP/jV2xIEiUYzZGeMCmQgHMoLk
b5QtYtIPuPqjxtK1pJr+oCRDIXzCJmX8jja9Qdj+VlS+Oq57Zl8ZZ4Fv2q2j2a57
cn+fIwMWr/hm8SlnveDlA5maMchPCBIyRfg7TFWs4+5fyPbROMLjDCtFPBNA2joY
2qcFJMG4qYnRZ+uVPqRmgwD/ZjADXrKXoAOX2a7uJn0mL1rDZeDG0l9TizdeSpFq
s3PrpghAIyTp3M8+RSNOiDReeHTa3/6yiHhrPUd8ppn8eXiFdN6/DzGk3SvOgynb
y1ao+mXEcc2MWC2j/GSL/TiTib3RdMWGWH3nzNARol/TVeqJsqlaWnOXTho77Qfj
/o5RVbTj/XWMG90nflBl4KZLKeTJczynT6/58dd+6YnxXOdyH8+20YHQsBAMxfVv
AVxdqBgDZxQ6FpA5JULqXqFtLhCZ9cHh333eIKMxED+wrvGQfLUxntINKkzWHv/b
26mvQzBgZ02ZzEDEmT7wOmYfWgEtiUeRr/2CBdyPXI9O2k4knF5pPEaEp5rRQOj+
ye+r1VRnYFnNpR1LijsvzpcfuwsB9WFvNzjYj+n14e1A1yl4EvizpczNFOEPWjWW
I2B1d0dp5QblW15PB1e+JZ7AaWuuCFxHV66+A+salf66zpJbhboe0Z0WYj8nG84N
sxuCAv135VeKzWD/VzVo
=6Don
-----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