Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Internals of Tomcat/Apache  RSS feed

Karthik D
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Ravi Veera
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!