• 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 ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Time Measuring at Apache

 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

We are using Apache and tomcat with mod_jk connector.
I want to calculate amount of time taken for the request at Apache side (for both request and response cycle)
means time to forward req to tomcat and get response back and send back to client through apache.

please help

thanks
 
Saloon Keeper
Posts: 28123
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're looking to determine how much of the response time is consumed by the apache connector, you're probably optimizing in the wrong place. On a typical system, where the Tomcat and apache servers are both on the same machine, the communication is done via in-memory tcp/ip and the whole process can be expected to take no more than a few milliseconds, unless you're moving really horrendous amounts of data. If the two servers are on different machines, the network overhead will raise that number, but as long as the network itself is in good shape, still not much time. The connector doesn't do a lot of intensive computing - it's basically just relaying.

Typically, a much larger component of the response time is going to come from the time spent in the backend processing (after Tomcat has received it) and on the network leading into the apache server.
 
Mani Venkata Kanth
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim Holloway,

Thank you for your response.

I have some other modules in Apache which will be executed like input and output filters for before and after tomcat processing.
So, I wanted to calculate time taken at apache front not only with the mod_jk but including.

Please give me some suggestions.

thanks
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic