Sunday, March 27, 2011

Tomcat Service is consuming 100% CPU memory

Update the server.xml (tomcatRoot\conf) as follows: 

Existing Settings:

<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
    enableLookups="false"  redirectPort="8443"  protocol="AJP/1.3"/>


Proposed Settings:

<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
      enableLookups="false"  redirectPort="8443"  protocol="AJP/1.3"
      maxThreads="50"  minSpareThreads="5"  maxSpareThreads="20"
      acceptCount="100"  connectionTimeout="2000"/>