permaculture playing cards*
The moose likes Tomcat and the fly likes Measure compression? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Measure compression?" Watch "Measure compression?" New topic
Author

Measure compression?

Milind Mahajan
Ranch Hand

Joined: Oct 23, 2000
Posts: 77
Hello,

I have a web application deployed in Tomcat 4.0. I have added a filter to compress the content served. My question is - is there any way I can measure the size of the server response (content served per URL) so that I can quantify the compression. For example, I disable the compression and the size of the response for a URL is, say, X kilobytes. I enable the compression and I get the size of the same URL is, say, Y kilo bytes. Now by comparing X and Y, I know how much is the compression. I prefer do it on server side since I have tried some browser plug-ins in IE (my application runs on IE only) and they aren't helpful for this purpose.

Thanks in advance,

-Milind
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Measure compression?
 
Similar Threads
Welcome files
HttpURLConnection - caching - headers
How to compress jsp?
URL-Pattern, Internet Explorer and Flash Videos
WSAD with external HTTP Server