-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

John,

On 2/8/19 15:24, john.e.gr...@wellsfargo.com.INVALID wrote:
>> -----Original Message----- From: Christopher Schultz
>> <ch...@christopherschultz.net> Sent: Friday, February 08, 2019
>> 11:48 AM To: users@tomcat.apache.org Subject: Re: Does Tomcat
>> count incoming connections?
>> 
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>> 
>> John,
>> 
>> 
>> You can get this count from the Connector via JMX.
>> 
>> Look at the tree under
>> /Catalina/GlobalRequestProcessor/[connector] and there is a
>> "requestCount" attribute that can be queried.
>> 
>> Looks like it's an int value, so it can overflow.
>> 
>> - -chris
> 
> Thanks but the requestCount really does appear to be requests and 
> not connections.  I have keepAliveTimeout and maxKeepAliveRequests
> at their defaults (unlimited timeout and 100 requests) and I see
> the count go up with each request, even though my client reports
> that the connection is getting reused.> I'm asking because I need
> some hard data on whether clients are reusing their connections for
> performance reasons.
I'm really sorry. I must admit I read the first sentence and not the
second and told you something you already wrote in your first post :(

I don't see anywhere that a connection count is currently available,
but it doesn't seem like it would be that much work to add it. I'm not
sure what the best place to /put it/ would be, since there really
isn't anything that coarse-grained in the JMX tree at this point.

For example, the GlobalRequestProcessor is, as the name suggests,
request-oriented. I think the ProtocolHandler is much the same. The
Connector itself is, unfortunately, mostly useless because it just
shows the configuration of the connector and nothing really live.

Hopefully Mark or Rémy will reply; they both understand the connection
management at a very low level and will probably say "already done!"
or "eww... that's going to be complicated." With luck, the former.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlxd6GYACgkQHPApP6U8
pFjshQ/9E/6rZJQFeOxG6inXp7WjeJYb4tm1tlaA+DUeWhRBVTjnl3FT7yVmD3O5
ZxXt4oelVeeCyhqWVlKOYvAPL5N24gZYJMiRJB5CA33rQrpmmiLLQ9dH6glssTDM
5BWCp2rvMMlns6fpVu7X+FEcIS+yh/Ps4Ttb6SsoRWIdFkpAChO5/qZB2uHrV15Y
1L2sKf9djmZVx3w3nmb9HmcNMTsPa/iE1PpxAcXEF566P6jxKrqhLn/nkhgFeOb4
72EUA+ctd5oPpRyCl/BbbdmPVIzRBD+HP0JAjGA4HPYO6oKoAXwvvveGwA5U3MFJ
rOQyZhfZ97a0qVC+9sqNJ6twdv+5xzJr/EybRNndKA+imMP86wC8nqAJCRHuK5Y5
YiHKJlXNu3vmqnbODyplWWIqyuKtDfIopGZQyHatRU2iV3Zki3JhfhAb1eMPjISn
dS8qY3+/y8YGbKa7ZEurEO0qdW8j4KTUKixx3Qqft7vNexzk3YAm4mN+hLgzptZk
Twlo1FD8qJEHiRUk9QB79Z8m+NqcQDdNanMg1fPeEgpdt6hzLT3P3eulE8zL6Qy2
W71cLeF4Z5/xrQhd5cdWwgFWTy/h2E4P9hmEMK+hVrPdwWRslpvBGOGWUiR93pbm
yRxou6fsi4cYX4ZWIuiJH0bRNcM27kyhdxYs5GIhh6n0MWm7IbE=
=ktWZ
-----END PGP SIGNATURE-----

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

Reply via email to