View Full Version : Explorer Demo: Performance loading first time
majain
04-29-2008, 09:17 AM
Darell,
The initial loading of Explorer Demo is taking anywhere from 8 to 12 seconds. Same is true for my Ext GWT custom app.
However, the subsequent loading of forms/pages is almost instantaneous.
I do have a loading-indicator on the initial screen like yours.
Is there an easy way to reduce this initial loading either thro' compression or any other means?
Thanks,
Majain
Cameron Braid
04-29-2008, 06:27 PM
Yeah, they should configure their apache server to use mod_deflate.
This would would compress the 570k .cache.html file down to around 170k
majain
04-29-2008, 08:04 PM
Thanks for your reply.
I've my app deployed into weblogic with apache in the front.
Would mod_deflate configuration on apache still work?
Thanks in advance.
Majain
Cameron Braid
04-29-2008, 08:27 PM
yes - I run my webapp in tomcat and use mod_proxy to connect apache to tomcat.
majain
04-29-2008, 09:13 PM
Thanks. I'll give a try.
majain
04-29-2008, 11:44 PM
I've added the following lines to the end of conf/httpd.conf file:
LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/javascript
But I see no difference in file sizes and download times.
Any insight?
majain
04-30-2008, 02:15 PM
Darell,
Is it possible to configure the Explorer Demo website to use http compression either via using mod_deflate or other means?
This would help demonstrate how to boost performance of Explorer Demo sample and EXT GWT apps in general.
Thanks,
majain
darrellmeyer
04-30-2008, 02:44 PM
mod_deflate was activated last night:
http://www.whatsmyip.org/mod_gzip_test/
http://extjs.com/explorer/438A57D6F7DB2B372272AC19C05E9728.cache.html
Original Size: 567 KB
Gzipped Size: 168 KB
Data Savings: 70.37%
majain
04-30-2008, 03:18 PM
Awesome!!!
Btw, I've added the following lines to the end of conf/httpd.conf file but I see no difference in download time.
LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/javascript
This is what I see in the apache access log:
[30/Apr/2008:15:15:40 -0400] "GET /gwttool/3D1D2CCD0EBB19BA2C5A699A2CC28B65.cache.html HTTP/1.1" 304 -
Am I missing anything?
I appreciate your response.
Thanks,
Majain
majain
04-30-2008, 03:59 PM
I also added loggin as follows but the deflate.log is always empty.
DeflateFilterNote Input input_info
DeflateFilterNote Output output_info
DeflateFilterNote Ratio ratio_info
LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
CustomLog logs/deflate.log deflate
majain
04-30-2008, 06:12 PM
Never mind. I'd screwed the logs and couldn't see the changes.
It looks much better now.
Thanks
Majain
irwinm
05-01-2008, 11:50 AM
Darrell,
Could you please describe how you set up your configuration for the demo application?
I have been following this thread and have done the config as described, but I am still not seeing any compression happening for my app. Maybe a snapshot of your config?
Thanks so much.
majain
05-02-2008, 11:22 AM
Darell,
Do you think you can post the snapshot of your apache config that enables compression for Explorer demo?
Thanks.
darrellmeyer
05-03-2008, 11:51 PM
From a earlier post in this thead:
mod_deflate was activated last night:
http://www.whatsmyip.org/mod_gzip_test/
http://extjs.com/explorer/438A57D6F7...728.cache.html (http://extjs.com/forum/../explorer/438A57D6F7DB2B372272AC19C05E9728.cache.html)
Original Size: 567 KB
Gzipped Size: 168 KB
Data Savings: 70.37%
Are you not seeing this?
ExtRocks
05-04-2008, 02:43 AM
LoadModule deflate_module modules/mod_deflate.so
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE application/x-httpd-eruby
AddOutputFilterByType DEFLATE text/html
#Highest 9 - Lowest 1
DeflateCompressionLevel 9
#Optional
#Skip browsers with known problems
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
#Optional
#Logging
DeflateFilterNote ratio
LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"' deflate
CustomLog /etc/httpd/logs/deflate_log deflate
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.