This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 18541
    
    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: 12769
    
    5
Note that the Tomcat Management App will show you total bytes sent and received.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tracing the bandwidth Occupied by each request sent from Servlet