aspose file tools*
The moose likes Tomcat and the fly likes Time Measuring at Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Time Measuring at Apache" Watch "Time Measuring at Apache" New topic
Author

Time Measuring at Apache

Mani Venkata Kanth
Ranch Hand

Joined: Aug 21, 2006
Posts: 39
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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15661
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Mani Venkata Kanth
Ranch Hand

Joined: Aug 21, 2006
Posts: 39
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Time Measuring at Apache
 
Similar Threads
Tomcat - stop POST response being sent to calls
set request time for servlet in apache/tomcat
setting request time out
Apache/Tomcat - Same, different ???
understanding load balancing with mod_jk and tomcat