For our application, it's not that complicated. All we need to know is the number of bytes sent and received over the wire. We aren't using SSL, redirects, etc.
-----Original Message----- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: October 22, 2007 11:26 PM To: Tomcat Developers List Subject: Re: Measuring bytes sent and received from and to Tomcat ------------------------------------------------------------------------ --- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server ------------------------------------------------------------------------ --- ----- Original Message ----- From: "Dave Rathnow" <[EMAIL PROTECTED]> To: "Tomcat Developers List" <dev@tomcat.apache.org> Sent: Monday, October 22, 2007 10:00 PM Subject: Measuring bytes sent and received from and to Tomcat ===================================================== Hi there, interesting question, more I think about it, more complicated it gets ;) Dont think its easy from TC, its too sophisticated, compression, SSL, redirects, dispatches, clustering... think its hard to get a true network measurement. I would plunder something like TCPMon https://tcpmon.dev.java.net/source/browse/tcpmon/ Its a NB plugin so can play with it first.... Its really just a (bind - client) ie port 8080 to 8081 type idea - so its easy to install, and easy to setup across multiple sites, clusters etc etc. Steal this (relay or tunnel) code and just mod it... I think you will be able to modify it for client IP's cookies, special headers... anything and then call it from a browser and get client billing breakdowns.... maybe... ============================================== We have an application that collects data from, and sends data to, remote embedded devices. Traditionally we have used TCP and UDP to send and receive data over satellite. The latest release of our product will be using other communication medium with our devices making HTTP request to our application that is running under JBoss/Tomcat. The way we bill our clients is by charging them a usage fee based on the number of bytes being sent over the air/wire. Because of this, we need to have a accurate count of the number of bytes sent and received from each site, which is uniquely identified by it's IP address. Using either UDP and TCP this is simple as we are in control of the end socket. Is there a way we can do the same thing with Tomcat? It's simple for us to measure the number of byte in the payload of the HTTP request/response, however that isn't enough. We need to know the total number of bytes being sent and received for each HTTP request. Can someone suggest a way I could get an accurate count of these bytes? Thanks, Dave. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]