File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 20514

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: 17410

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Difference between http thread and ajp threads
jQuery in Action, 3rd edition