aspose file tools*
The moose likes Tomcat and the fly likes Is there a way to monitor (Record) the data passed across Tomcat to the Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Is there a way to monitor (Record) the data passed across Tomcat to the Client" Watch "Is there a way to monitor (Record) the data passed across Tomcat to the Client" New topic
Author

Is there a way to monitor (Record) the data passed across Tomcat to the Client

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
Is there a way to calculate/measure the (total) data passed across tomcat to the client. I mean is there a way to analyze the number of requests received and the data returned ??
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
You could write a servlet filter that sums up all request and response contents.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Other options:

1. Write your own Valve. This will allow a lower-level analysis that not only sees more of the steering data, but also applies to all applications in Tomcat, not just one (and requires no mods to the apps). Before doing so, however, check the standard set of Tomcat valves. One of them might already do what you want.

2. Use a network sniffer. This will give you the truest picture, because it will allow you to monitor all traffic coming to/from Tomcat's ports and includes the network headers in the data count. It also means that you can get stats without mods to either the apps or Tomcat. However, being one step above the wire means that actual direct examination of the contents of the network packets is only possible for data that isn't being transmitted unencrypted.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there a way to monitor (Record) the data passed across Tomcat to the Client