Forum Discussion

Pankaj_71762's avatar
Pankaj_71762
Icon for Nimbostratus rankNimbostratus
Apr 08, 2009

Compression Statistics

Hello,

 

 

I enabled compression on F5 LTM. And checked "b profile http show all"

 

Following is the output which makes me believe that no compression is happening.

 

All Compression stats are zero.

 

 

PROFILE Compress_x.x.x.x HTTP parent: http

 

| virtual servers: x.x.x.x_9081

 

| requests (total, max, GET, POST) = (230, 23, 227, 3)

 

| requests (v0.9, v1.0, v1.1) = (0, 0, 230)

 

| responses (v0.9, v1.0, v1.1) = (0, 0, 230)

 

| responses (2xx, 3xx, 4xx, 5xx) = (223, 3, 4, 0)

 

| response size ( <1k, 1-4k, 4-16k, 16-32k, 32-64k)

 

| ( 112, 40, 26, 21, 31)

 

| Set-Cookie header insertions = 0

 

|

 

| COMPRESSION STATISTICS --

 

| total bytes (pre, post, null, saved) = (0, 0, 0, 0.00%)

 

 

Following is the profile:

 

 

defaults from http

 

compress enable

 

compress content type include "text/html"

 

compress content type exclude "application/(xml|x-javascript)" "image/" "text/css"

 

compress gzip level 5

 

 

What am I missing?

 

 

Thanks

 

 

 

 

4 Replies

  • Hi,

     

     

    You can verify that compression is happening by using a tool like Http Analyzer for IE or HttpFox for Firefox, just install it, navigate in your site and verify that the items are being compressed checking if the response header: "content-encoding" is present for the items you want to compress.

     

     

    Regards,

     

    Jose Oyervides.
  • Another great tool to use is fiddler which you can find at http://www.fiddler2.com/fiddler2/

     

     

    In the response window I think it even shows you which responses are encoded/compressed rather than plain text.

     

     

    Hope this helps.

     

     

    Carl B
  • Thank you.

     

    The compression doesn't happen until I include text/* and exclude text/css.

     

     

    Compression statistics show correct data. But somehow with above profile there is no compression.