tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From linbo liao <llbg...@gmail.com>
Subject Re: JMX currentThreadsBusy less than connections/requests when use APR connector
Date Thu, 09 Mar 2017 01:13:11 GMT
Hi,

Here is the Connector configuration:

    <Connector port="8080"
protocol="org.apache.coyote.http11.Http11AprProtocol"
        maxHttpHeaderSize="8192"
        maxThreads="400"
        acceptorThreadCount="4"
        maxKeepAliveRequests="-1"
        enableLookups="false" disableUploadTimeout="true"
        connectionTimeout="20000" />

I use wrk, the currentThreadsBusy is higher than the value in ab testing,
but most of time is less than 40.

./wrk -t100 -c 100 -d 10s http://10.211.55.4:8080/

For APR connector, will it get one thread from the poll to deal with each
request?


2017-03-08 22:45 GMT+08:00 Christopher Schultz <chris@christopherschultz.net
>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Linbo,
>
> On 3/7/17 10:14 PM, linbo liao wrote:
> > I setup local environment to test Tomcat monitor.
> >
> > The Environment:
> >
> > Tomcat: 8.5.5 VM: Ubuntu 14.04.1 LTS HTTP PORT: 8080 IP:
> > 10.211.55.4
> >
> > Tomcat use APR connector, I test the tomcat via ab command, find
> > JMX currentThreadsBusy < 10 all of the time.
> >
> > ab -n 100000 -c 100 10.211.55.4:8080/
> >>
> >
> > I tried to search the reason but without the result. For BIO each
> > thread to handle one connection, so currentThreadsBusy can show the
> > performance of tomcat.
> >
> > But for APR connector, what's the meaning of currentThreadsBusy?
>
> Please post your <Connector> configuration.
>
> It seems that ab isn't a very good load-generator for several reasons.
> But you should be able to get more than Java 10 threads working at a tim
> e.
>
> You are probably expecting ~100 threads busy at all times, right?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJYwBkcAAoJEBzwKT+lPKRYxLQQAJsr6IWI6kRaCmEg+SMZRKco
> 8ALINQrUvkUZYvIx23wlr7cKpmZ0g02RVXKn8+usEsiZ9vBwb6ap3HV7RCM/xl33
> zaAuxYPNsJ9bMUnTTkxr5ciSvMGI1FhvTWazEHprLoiPV1RtBwKBLTbztxQTQfO4
> 0AqfRgucC0NJbEPzVwKc6FB9qUl+U3XROUCC2AKmaFIHbQDSPnCLKX3hyzaOsH7R
> cd8nr3teQxoisIT3MuhaWPMDdfdKbe0ZmPj39borGUvHwUL1kRCz3wYvoQN3kCg5
> YHxjV3B9TYqU1q0TiILuQvO1rbG8G3QLIXFz8eNdX1XwS0oIRYAJfhTqSbxBuTlm
> 1jSrS716Kd2JkmNWmoSLHFSvBUkevirh5ZL6B9SuFvV449lCgBjwV//wiE/oskbT
> 6+jKDrL0ReCw8NtfWbCaeXmltyR9ir7x4SSjT1iSpg/ZGnxmKkdiZFoR/mWDcH5G
> y4TwbmDC0RNAfC9lNCp5cBtrIZkoJM53iOtUCB22I3tco/hNB91TV8WN5RKqAHl1
> Cn7FLfSGwBQRv3UHfeWmMwxcP4Q4FxMbpqtHv2PAcjB7skcsbR6BUth9gY3FbWmF
> DvKL941SuDPLtA9IVr/nplvwlMUV/QQNi+tZXuL9Xf1GoCgcM7uVQkcuhlf+QpFm
> ELHZ5kXO3Zs7RrycRnL3
> =6bmJ
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message