cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Compression in Tomcat to speed up WebI

arijit_das
Active Contributor
0 Kudos

Hi Experts,

Can I use HTTP Compression in Tomcat to speed up WebI reports ? In SAP Web Application and Query Design, we can use this to reduce network load for large datasets. Is it possible in BO?

Thanks and Regards,
Arijit

Accepted Solutions (1)

Accepted Solutions (1)

Henry_Banks
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

I believe BI4.0 uses GZIP compression for content encoding  'out of the box' .

regards,

H

arijit_das
Active Contributor
0 Kudos

Thanks Henry.

But how to be sure that it uses gzip compression by default ? I checked the server.xml file inside conf directory, but there is no compression attribute present in connector tag. Is there any other place to check for it ?

Regards,

Arijit

mike_howles4
Active Contributor
0 Kudos

Access your Tomcat server in a browser and run an HTTP traffic monitor such as Charles in the background and you should be able to see whether the HTTP response is gzipped or not.  I think maybe even your F12 developer tools in IE or the Developer console in Google Chrome would tell you.  Check the content-encoding header.

arijit_das
Active Contributor
0 Kudos

Thanks Michael.

I checked in Fiddler. Found content-encoding: gzip in response header. I believe this means the page compression is already in place.

Again, thanks to everyone for your help.

Regards,

Arijit

Henry_Banks
Product and Topic Expert
Product and Topic Expert
0 Kudos

that's the one, there's the proof !  Nice one Michael .

mike_howles4
Active Contributor
0 Kudos

Bingo!  Glad to help.

denis_konovalov
Active Contributor
0 Kudos

default tomcat connector in server.xml has compression=on.

p.s.

newest tomcats have a bug with compression which causes tomcat crashes. Some, not all BOE, workflows might be affected.

Workaround, until Tomcat fixes this bug, is to use apache web server with mod_jk and mod_deflate in front of tomcat and disable compression in tomcat.

arijit_das
Active Contributor
0 Kudos

I checked another server with BO4.0 SP6 default installation. There, in server.xml, I found the compression attribute set as on.

Probably, in earlier case the file was modified by someone. So I was confused.

Thanks to Denis for the information.

Former Member
0 Kudos

Folks,

Does compression work for BI Launchpad too?

regards

Dilkush

denis_konovalov
Active Contributor
0 Kudos

yes, it does.

and update - latest java version might have a fix for the compression issues seen before, so recomendation to turn compression off to avoid tomcat crashes is no longer valid if you use latest supported JVM.

Former Member
0 Kudos

Denis,

in one of our home grown tool which provide a detailed report out of the page performance for any web page has below recommendations. it seems like not all the .js and .css files are being compressed using gzip. in fiddler traces, i could notice only few request headers having been zipped with zzip. this is even after enabling compression in tomcat server.xml

here is the list of uncompressed files.

Enable compression

Compressing the following resources with gzip could reduce their transfer size by 1.8MiB (75% reduction).

Compressing https://enterprisebi.intel.com/BOE/port.../bobjui/dash/CDashboardTabOnlyMerge.js could save 165.7KiB (74% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...0535/shared/ure/js/min/ure-list-min.js could save 119.0KiB (83% reduction).

Compressing https://enterprisebi.intel.com/BOE/portal/1410180535/shared/dhtmllib/palette.js could save 117.3KiB (77% reduction).

Compressing https://enterprisebi.intel.com/BOE/portal/1410180535/shared/dhtmllib/dom.js could save 114.5KiB (72% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...ib/prototypeScriptaculousCompressed.js could save 109.2KiB (71% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...0535/shared/ure/js/min/ure-core-min.js could save 94.8KiB (81% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...410180535/shared/dhtmllib/prototype.js could save 94.3KiB (76% reduction).

Compressing https://enterprisebi.intel.com/BOE/portal/1410180535/shared/dhtmllib/menu.js could save 64.5KiB (78% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...d/yui/2.8.0/container/container-min.js could save 54.4KiB (74% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...s/ure/ure/js/yui_2.7.0/calendar-min.js could save 50.3KiB (75% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...Dtrue%3BpromptForUnsavedData%3Dtrue%3B could save 47.5KiB (81% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...0535/shared/yui/2.8.0/menu/menu-min.js could save 40.3KiB (72% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...5/shared/ure/js/min/ure-toolbar-min.js could save 38.3KiB (85% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...35/InfoView/DataLoader?dictionary=true could save 32.5KiB (81% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...n/1.0.0/accordionview/accordionview.js could save 31.5KiB (79% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...10180535/InfoView/js/listing_main_a.js could save 28.5KiB (75% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...red/yui/2.8.0/treeview/treeview-min.js could save 24.5KiB (73% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...2.8.0/autocomplete/autocomplete-min.js could save 24.4KiB (77% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...yui/2.8.0/datasource/datasource-min.js could save 23.4KiB (75% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...8.0/yahoo-dom-event/yahoo-dom-event.js could save 23.4KiB (64% reduction).

Compressing https://enterprisebi.intel.com/BOE/port...red/dhtmllib/custom/skin_ure/style.css could save 23.0KiB (85% reduction).

Compressing https://enterprisebi.intel.com/BOE/port.../shared/yui/2.8.0/layout/layout-min.js could save 21.6KiB (76% reduction).

Compressing https://enterprisebi.intel.com/BOE/port.../shared/dialogservice/dialogservice.js could save 21.6KiB (79% reduction).

denis_konovalov
Active Contributor
0 Kudos

your connector compression parameters in tomcat specify which files/extensions are compressed, it is not controlled at BOE level, it is controlled by connector.

Former Member
0 Kudos

denis, how can i see connector compression parameters?


denis_konovalov
Active Contributor
0 Kudos

open your server.xml in a good editor, like notepadd++ or better and look at entry called connector. it'll be listed there.

Former Member
0 Kudos


here are our compression parameters.

compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,text/json,application/json,application/javascript"

Former Member
0 Kudos

of course compression is set to ON

denis_konovalov
Active Contributor
0 Kudos

this is the type of objects that will be compressed : compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,text/json,application/json,application/javascript"

http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

http://stackoverflow.com/questions/16690321/need-step-by-step-overview-for-compression-on-tomcat

and make sure you read this one : http://scn.sap.com/docs/DOC-50325

Answers (0)