-
1. Re: ** Performance Questions..
nbelaevski Feb 1, 2009 8:38 AM (in response to nohacks)Hello,
Configure GZipping for this resources using built-in server compressor. Also take a look at this issue: https://jira.jboss.org/jira/browse/RF-1941 it is dedicated to Yahoo performance rules. -
2. Re: ** Performance Questions..
nohacks Feb 1, 2009 11:50 AM (in response to nohacks)Wow...that is a great group of posting.
We are having a lot of the same issues. The app is about to go into development and is dog slow loading first page. About 7 or 8 seconds. Then reload is 1 second. This is not acceptable for us.Sergey Smirnov - 12/Dec/08 01:16 PM
Implementing tasks of this issue requires the structural changes in the code. I.e. the issue is clarified as development, but not just a bug fix. RichFaces 3.3.0 is in the QA phase now. The code freeze already happened about three weeks ago. If we start the development now, we should have to re-start the QA process after that. That is not acceptable scenario. This issue was not in the list for statement of work for 3.3.0. We have already offer to include it to 3.3.1 development. If RedHat guys agree it will be. No answer from they side yet.
Have we seen any progress in this matter?
Thanks for all the great posts.
Phil.. -
3. Re: ** Performance Questions..
nohacks Feb 1, 2009 12:35 PM (in response to nohacks)Hi again,
This looks like it could help us.
Grzegorz Dubicki - 18/Jul/08 06:48 AM
We have set both CSS and JS to me merged (org.richfaces.LoadStyleStrategy = ALL, org.richfaces.LoadScriptStrategy = ALL, org.ajax4jsf.COMPRESS_SCRIPT = false), changed the default Expires of RF-generated elements to more that 1 day (org.ajax4jsf.DEFAULT_EXPIRE = 2592000) and set Gzipping all the plain texts by Tomcat and this helped *a lot* with the first load time.
How do we do this with RF ??
Thanks Phil -
4. Re: ** Performance Questions..
nbelaevski Feb 1, 2009 5:23 PM (in response to nohacks)Read this: http://jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/SettingsForDifferentEnvironments.html#WebApplicationDescriptorParameters
and that: http://jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/ArchitectureOverview.html#ScriptsandStylesLoadStrategy
Configure GZipping as described in the documentation for application server used. -
5. Re: ** Performance Questions..
nohacks Feb 4, 2009 4:40 PM (in response to nohacks)Configure GZipping as described in the documentation for application server used.
I am using Tomcat as a server. I don't see it explains how to setup gzip.
My pages are running very slow. Load times are running 7 to 8 seconds a page. I tested the Stored procs and they load very quick.
Any help out there?
This is what I get when I test it with yslow.254k 8.516secs
Performance Grade: F (51)
D 1. Make fewer HTTP requests
F 3. Add an Expires header
F 4. Gzip components
A 5. Put CSS at the top
D 6. Put JS at the bottom
A 7. Avoid CSS expressions
n/a 8. Make JS and CSS external
A 9. Reduce DNS lookups
A 10. Minify JS
A 11. Avoid redirects
A 12. Remove duplicate scripts
D 13. Configure ETags
Thanks
Phil -
6. Re: ** Performance Questions..
nbelaevski Feb 4, 2009 5:02 PM (in response to nohacks)Take a look here: http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
-
7. Re: ** Performance Questions..
nohacks Feb 4, 2009 5:26 PM (in response to nohacks)Thanks for your reply.
I am using Tomcat with AJP for load balancing. I found this post and it make me believe it is not supported with AJP.
I wonder if there is plan to add compression support for the AJP
connector in Tomcat 5.5.x / 6.x ?
The compression works well on HTTP connector, could it be possible to
add this stuff to the AJP connector.
Apache 2.x could do the compression on the fly, but if the machines
are on a limited bandwitdh lan (for example a WAN), it could help to
reduce the response size also in AJP side.
Do you know how I could fix this issue? I would be nice to allow the richfaces to have an expires on it and cache.F 3. Add an Expires header
These components do not have a far future Expires header:
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTorg/richfaces/renderkit/html/css/basic_classes.xcss/[snip]
*
ParamsHeadersPost
Response Headers
Date: Tue, 03 Feb 2009 23:44:45 GMT
Server: Apache
X-Powered-By: JSF/1.2
Cache-Control: max-age=86400
Last-Modified: Tue, 03 Feb 2009 23:40:00 GMT
Expires: Wed, 04 Feb 2009 23:42:36 GMT
Content-Length: 6932
Keep-Alive: timeout=15, max=93
Connection: Keep-Alive
Content-Type: text/css
Loading...
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTorg/richfaces/renderkit/html/css/extended_classes.xc[snip]
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTcss/toolBar.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf
*
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTcss/dropdownmenu.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw__.[snip]
*
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTcss/menucomponents.xcss/DATB/eAF7sqpgb-jyGdIAFrMEaw_[snip]
*
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTorg.ajax4jsf.javascript.AjaxScript.jsf
*
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTorg/ajax4jsf/javascript/scripts/form.js.jsf
*
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTorg.ajax4jsf.javascript.PrototypeScript.jsf
*
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTscripts/menu.js.jsf
*
* [HTTP headers] (2/4/2009) http://72.74.221.112/testApp/a4j_3_2_2-SNAPSHOTorg/richfaces/renderkit/html/scripts/utils.js.jsf -
8. Re: ** Performance Questions..
nohacks Feb 5, 2009 10:49 AM (in response to nohacks)We are trying anything to make this load quicker and it is not working. Any help out there?
Is 7 to 8 seconds load normal?
We have 50 mb down and 20 mb up on a fiber line. Bandwidth is there for this app.
Phil -
9. Re: ** Performance Questions..
nbelaevski Feb 5, 2009 6:42 PM (in response to nohacks)Ok, cache is already there. You can set expires to more than one day using context parameters. I've already posted links for that.
For me it takes 6-8 sec to load livedemo main page. You can use Firebug to diagnose loading time: -
10. Re: ** Performance Questions..
nbelaevski Feb 5, 2009 6:49 PM (in response to nohacks)Apache 2.x could do the compression on the fly, but if the machines
are on a limited bandwitdh lan (for example a WAN), it could help to
reduce the response size also in AJP side.
You should configure GZipping at Apache level. Compression of data transferred by AJP makes sense only if your Tomcat and Apache are connected by slow line.