File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Performance and the fly likes Tracing the bandwidth Occupied by each request sent from Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Tracing the bandwidth Occupied by each request sent from Servlet" Watch "Tracing the bandwidth Occupied by each request sent from Servlet" New topic
Author

Tracing the bandwidth Occupied by each request sent from Servlet

Ramesh Jothimani
Ranch Hand

Joined: May 05, 2011
Posts: 70

I have a distributed application installed across various computers across the network . When the PC's network bandwidth is low , the application is taking very long time to respond . The bandwidth is not too low . I would like to Optimize the code.

I would like to trace out the bandwidth occupied by each request sent from a servlet ? Is there any specific tool for getting the same ?


Please provide some suggestions to solve this .
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

I'm sure you could write a servlet filter which kept track of the size of the responses being sent (assuming that's what you meant by "bandwidth").
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Note that the Tomcat Management App will show you total bytes sent and received.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tracing the bandwidth Occupied by each request sent from Servlet