• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Connector - high cpu usage

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello I have a problem with Tomcat running at 25% CPU useage. I have identified from the web that this is probably a problem with the ISAPI connector, but have found no information on how to fix this.

I am running Tomcat 5.5.20 on IIS 5, on Windows 2000 server.

I am using the binary connector for windows I have tried 2 versions 1.2.14.0 and the latest 1.2.19.0 but I still have the problem.
Below is my workers file, I wonder if there is anything in here that might help


Any hints or tips that I might bring this under control would be gratefully appreciated. By the way on my development version, of the same application, there is no problem but this is running through port number direct to Tomcat and not over IIS.

cheers
Martin
 
Martin Thorpe
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok for anyone who might be interested it appears that I have fixed the problem, although I will have to monitor it over the next couple of days.

What I did in the end was to alter the connector in the Tomcat server.xml file:

so in tomcatRoot\conf\server.xml

I changed this line, which was the default Tomcat shipped with:


To be this


So specifying amount of threads and a connectionTimeout seems to sort it. Now it runs up to 16 - 25% when processing but drops straight back to 00 once finished as opposed to be constantly at 25%.

Hope it helps, I'll update if the problem re-occurs.

Thanks for reading
cheers
Martin
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Martin,

THANK YOU !!! That was an increadibly HUGE help!!

I did not see this as identified in Apache's bugzilla and thus just submitted it as it presents show stopper for those needing to run Tomcat behind IIS and who are not lucky to find this page.
Here is the submitted bug report:
https://issues.apache.org/bugzilla/show_bug.cgi?id=47088

Jeff
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since there is a known bug in the tcnative Tomcat connector leading to 100% CPU load:

could you please check, if you have the native Tomcat connector running (aka
known as tcnative or APR connector)? It's running as part of Tomcat, not in the web server.

If so, which version of Tomcat and tcnative are you using, and can you please
try once, whether the problem also goes away by disabling tcnative?

Thanks

Rainer
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic