By default, the Tomcat server uses 10 threads. It can be useful to increase the number of threads.
To set the maximum number of threads, change the maxThreads setting in the server.xml file, located in the Tomcat directory’s /conf folder. For a four CPU machine set maxThreads to 100; for an eight CPU machine set maxThreads to 200. For example:
<Connector port="8484" redirectPort="8443" connectionTimeout="20000" protocol="HTTP/1.1"/ maxThreads=”100” >