This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Internals of Tomcat/Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Internals of Tomcat/Apache" Watch "Internals of Tomcat/Apache" New topic
Author

Internals of Tomcat/Apache

Karthik D
Greenhorn

Joined: Sep 21, 2002
Posts: 4
Hello All,
I am a newbie to Apache/Tomcat.Currently I am working in a project which uses Servlets/JSPs
running under Cocoon(for XSLT)+Tomcat 4.0.1 with
Apache 1.3.19 as the web server.
We are performing stress/load testing of the application and trying to find out some metrics
(like response time etc).We are not in a position to use any standard stress test tools from Rational/Silk/Load Runner.I tried to find any freely available stress test tools.But couldn't get any.
Let me come to the point.Actually I have the
following questions
- How Apache processes client requests??
(i.e does it spawns a process/thread for each
client request)
- How does mod_jk works?(module which redirects the requests from Apache to Tomcat I suppose)

Why I have these questions is I would like to know the internals of these components for a better understanding.
Moreover we would like to know at each stage(Apache<-->Tomcat<-->Cocoon) how much time the processing takes and where the delay could be.
May be it is some sort of profiling web applications.
I searched the Web as well Tomcat Documentation site/Apache but couldn't get much info.
If anyone has good pointers(books,websites)
kindly let me know.
Thanks & Regards,
Karthik
Ravi Veera
Ranch Hand

Joined: Jun 23, 2001
Posts: 127
You could use Jakarta jmeter to do some load testing/profiling. While it's not full featured as the commercial tools it will help you get a good handle on things. The online documentation is good enough to get you started and going.
It will also help if you can load test these components individually. That will give you a better idea of overheads.
For e.g First run the tests with Tomcat, Then with Apache and mod_jk.
Also if you can identify the use cases which are going to be most frequently used that will help you focus your efforts in the right direction.
There is one book on Tomcat by James Goodwill but I didn't like it and I won't recommend it. it covers the configuration part of Tomcat and dosen't touch on the internals.
Regards
Ravi
 
wood burning stoves
 
subject: Internals of Tomcat/Apache