This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

Internals of Tomcat/Apache

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
    Bookmark Topic Watch Topic
  • New Topic