On 03/12/2018 09:24, Saurav Sarkar wrote:
> Hi All,
>
> I want to know the connector's protocol which is being used in my tomcat 8
> container and clear the behaviour of request handling
>
> We have a cloud foundry based application running on java build pack.
>
> Below is the connector settings in server.xml
>
> <Connector port="${http.port}"
>
> bindOnInit="false"
>
> compression="on"
>
>
> compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json"
>
> allowTrace="false"
>
> address="${connector.address}"
>
> maxHttpHeaderSize="8192"
>
> maxThreads="200"
>
> server="tomcat" />
>
>
> It does not show any connector details.
>
>
> My thread dumps shows http-nio-exec threads and reaches to maximum of 200
> threads.
>
>
>
> Does that mean Nio connector is used ?
Yes.
> But i am not able to address more than 200 threads . I understand that if
> Nio connector is used then maxThreads values be ignored and i can at least
> accept more requests.
maxThreads is not ignored in your configuration.
That configuration will support a maximum of 200 concurrent requests and
10000 concurrent connections.
Note that with HTTP keep-alive connections are often idle (not currently
processing request) so concurrent connections > concurrent requests.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]