IntelliJ Java IDE
The moose likes Tomcat and the fly likes Some of AJP threads keep working all the time Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Some of AJP threads keep working all the time" Watch "Some of AJP threads keep working all the time" New topic
Author

Some of AJP threads keep working all the time

Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 110
Hello,

I have a big problem with Apache/Tomcat server. From time to time, some the ajp threads start to "hang". I take listing from JBoss JMX Console - CPU utilization and see that for example 4 ajp workers (during different things, like loading content for page) are taking much more CPU than others, like 10x or 20x more. Furthermore, they should finish relatively quick, because for example they are loading the data for index page.

My question is, can I somehow configure Apache/Tomcat/Connectors so it does not allow for such long operations?

Regards,
Michal
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 12513

To the best of my knowledge, all these threads should be doing is proxying data between Apache and Tomcat. Are you transmitting large quantities of data?


One of the most odious afflictions that Business has inflicted on the modern English language is "pro-active". Most of the time it's simply redundantly used in place of the simple old word "active". And a good deal of the rest of the time it means "You're not overworked enough yet, so go out and find more!"
Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 110
No, when I preview some of those request, they for example are loading the page - it is AJAX enabled, but anyway, how to explain the thread is running all the time for 34 hours (and server up time is 38)?
 
 
subject: Some of AJP threads keep working all the time
 
Threads others viewed
understanding load balancing with mod_jk and tomcat
Tomcat 6.0.29 - deadlocks when loading shared classes
Any reason to have more MaxThreads than # of CPU Cores ?
Thread to create and load large list of images
Struggling with configuration of Tomcat through Apache mod_proxy_ajp
developer file tools