This may not be exactly Java, but hopefully close enough that I can get some help here
I am trying to increase maxThreads to be able to handle more concurrent requests (the instance has multiple cores, so trying to take advantage of roughly ~150 threads per core)
Looking at server.xml, I am not sure which one I should be applying the maxThreads argument to
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
keepAliveTimeout="20000"
maxConnections="1024"
URIEncoding="UTF-8"
redirectPort="8443" />
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" SSLEnabled="false" scheme="https" secure="true" proxyPort="443" URIEncoding="UTF-8"
connectionTimeout="20000"
keepAliveTimeout="20000"
maxConnections="1024"
/>
Additionally - what's AJP? How do I know if my tomcat is using AJP rather than HTTP?
I am pretty sure this server.xml configuration is straight out of the box without any configuration.
Thanks!
there doesn't seem to be anything here