This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Difference between http thread and ajp threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Difference between http thread and ajp threads" Watch "Difference between http thread and ajp threads" New topic
Forums: Threads and Synchronization Tomcat

Difference between http thread and ajp threads

Radhika Chavan

Joined: Jun 12, 2013
Posts: 3
I am using tomcat and web application is deployed on it.Can some one tell me ,when http threads are created and when ajp thread???
I have to monitor ajp thread pool,so how application should be so ajp threads are created.
Please guide me....
Henry Wong

Joined: Sep 28, 2004
Posts: 19346

Tomcat specific question. Adding this topic to the Tomcat forum.


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16476

Tomcat uses thread pools, and according to what I read superficially in the documentation, each Connector object has its own thread pool. Pools are constructed with a fixed initial size, and (in many cases), allowed to grow and shrink to predefined limits.

I would expect that the internal Tomcat monitoring mechanisms (such as jmx) can be used to track the pool sizes over time.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Difference between http thread and ajp threads