10 Replies Latest reply on Jun 23, 2009 11:03 AM by Christopher McCann

    The performance problem of richfaces in IE

    Hu Ecko Newbie

      The performance of richfaces is limited when runs in IE browser, the performance will be better when runs in Firefox;
      How to do the performance tuning?
      Would you like to share some experiences about richfaces?

      Thank you very much!!!

        • 1. Re: The performance problem of richfaces in IE
          Stephan W. Newbie

          Im very interested in some performance-tunings tips, too.

          We are currently developing a portal application with jboss portal 2.6.5GA and richfaces 3.2.2. The target (client)platform is Windows 2000 (SP4) with IE6 (SP1) and we've got massive performance problems while working with our portal-application in this combination. The IE uses up to 500MB of ram and works realy slowly. We guess a memory-leak in richfaces framework or an error in WindowsScriptingHost. Using Firefox is quite a little bit faster, but far away from a acceptable performance.
          A complete page refresh takes up to 30 seconds, the server cpu-usage never reaches 10 percent while the client-cpu works with 100 percent usage all the time.
          With Windows XP the performance is good, could be better, but a page refresh is done in 3-4 seconds.

          We searched alot and didnt found anything helping us. I Just want to know if there are any known Bugs with JBoss Portal, Richfaces & Windows 2000. If someone got a solution for our problem, we would be very thankful :)

          kind regards
          stephan

          • 2. Re: The performance problem of richfaces in IE
            Hu Ecko Newbie

             

            "swatermeyer" wrote:
            Im very interested in some performance-tunings tips, too.

            We are currently developing a portal application with jboss portal 2.6.5GA and richfaces 3.2.2. The target (client)platform is Windows 2000 (SP4) with IE6 (SP1) and we've got massive performance problems while working with our portal-application in this combination. The IE uses up to 500MB of ram and works realy slowly. We guess a memory-leak in richfaces framework or an error in WindowsScriptingHost. Using Firefox is quite a little bit faster, but far away from a acceptable performance.
            A complete page refresh takes up to 30 seconds, the server cpu-usage never reaches 10 percent while the client-cpu works with 100 percent usage all the time.
            With Windows XP the performance is good, could be better, but a page refresh is done in 3-4 seconds.

            We searched alot and didnt found anything helping us. I Just want to know if there are any known Bugs with JBoss Portal, Richfaces & Windows 2000. If someone got a solution for our problem, we would be very thankful :)

            kind regards
            stephan


            As i knowed, JSF RI and richfaces have the memory-leak problem, the slow performance is serious in IE6(7) when the web page contains one hundred controls or more, it's sooooooooooo sloooooooowly, but in Firefox, this case, it works much better than IE.

            • 3. Re: The performance problem of richfaces in IE
              Stephan W. Newbie

              In our portal the difference betweeen those two browsers is noticeable but instead of 30 seconds in IE it takes 25 seconds in firefox/opera etc.

              Which OS do you use? W2K, WinXP or another one?

              • 4. Re: The performance problem of richfaces in IE
                Hu Ecko Newbie

                 

                "swatermeyer" wrote:
                In our portal the difference betweeen those two browsers is noticeable but instead of 30 seconds in IE it takes 25 seconds in firefox/opera etc.

                Which OS do you use? W2K, WinXP or another one?


                I am using WinXP...
                it took 25 seconds to response a web page? how much times your server took to process request? how complicated your page is?

                • 5. Re: The performance problem of richfaces in IE
                  Hu Ecko Newbie

                  Here is an abstract posted on http://blogs.msdn.com/ie/default.aspx
                  "
                  Hello again, this is Peter Gurevich, Performance PM (among other things) for IE7. We have heard a lot of requests to improve our Jscript engine, especially now that AJAX sites are becoming more prevalent on the web. I want you all to know that we have been listening and have recently made some great fixes to our engine to improve the garbage collection routine and to reduce unbounded memory growth. You should see noticeable improvements on AJAX sites in the Release Candidate we shipped last week. I want you also to know that performance of the object model and JavaScript engine will be an area that we focus on strongly in future releases.

                  While investigating the performance issues on script heavy sites we noticed several design patterns that resulted in less than optimal script performance. Changing these design patterns on the site end often resulted in huge performance wins (4x to 10x increase) to the user, so I wanted to share these recommendations with everyone.

                  To that end, this blog will be the first in a 3 part series focusing on developing performance optimized scripts for web pages, covering the following:

                  1. Symbolic Look-up recommendations
                  2. JavaScript code inefficiencies
                  3. Script and performance considerations specific to Internet Explorer
                  "

                  Please let me know if there are other useful performance topics you’d like to hear about.

                  • 6. Re: The performance problem of richfaces in IE
                    Stephan W. Newbie

                     

                    it took 25 seconds to response a web page? how much times your server took to process request? how complicated your page is?


                    The server isn't busy for more than 2-3 seconds to handle the request. Our application is a plattform for bank & leasing companies, with a lot of webservice calls and mathematical calculations. but this aint the problem, because the server does all this work and most of the time he's doing nothing (except the 2-3 seconds to handle the requests) ;)

                    Your link to MSDN sounds interessting, sounds we are not the only ones having problems with the JS performance in IE. Hope a fix for IE will also fix our problem...

                    • 8. Re: The performance problem of richfaces in IE
                      Hu Ecko Newbie

                      Here is a question about richfaces:
                      In my web page, there is a input box like this:

                      <h:inputText>
                       <a4j:support event="onblur" ajaxSingle="true" action="#{managedBean.method}" />
                      </h:inputText>


                      Now the question is:
                      when the "onblur" event is trigered, the inputText value will be posted to server for processing, but i found that the others control in the form were also posted(by firebug, can see the posted data), why?
                      But the richfaces documentation describe the "ajaxSingle" attribute like this:
                      "When "ajaxSingle" attribute value is "true" , it orders to include only a value of the current component (along with <f:param> or <a4j:action> param values if any) to the request map"

                      If my understanding is correct, whether that all control data are posted will cause the performance problem?

                      • 9. Re: The performance problem of richfaces in IE
                        Arne Könnecker Newbie

                        Try adding

                        <context-param>
                        <param-name>org.richfaces.LoadStyleStrategy</param-name>
                        <param-value>ALL</param-value>
                        </context-param>

                        <context-param>
                        <param-name>org.richfaces.LoadScriptStrategy</param-name>
                        <param-value>ALL</param-value>
                        </context-param>

                        to the web.xml which will make RichFaces download all the css and js as big cache-able files.

                        • 10. Re: The performance problem of richfaces in IE
                          Christopher McCann Newbie



                          I’m not sure where else to turn, and I could certainly use some ideas on this role…The position I have is in the north suburbs of Chicago, IL. The gentleman this individual will work with is a former CIO of a large, multinational CPG firm. He is exceptionally bright, dynamic, energetic, and accomplished. He has a real passion for eCommerce and has gained significant traction with multiple companies here in Chicago. His team is very adept in client facing roles; the results they’ve delivered have brought additional projects. This opening is with a large retailer in the north suburbs of Chicago, IL that is completely revamping their eCommerce strategy. It’s a two to 3 month gig centered on performance tuning. Here’s what we are looking for:





                          DUTIES: You will be responsible for: (1) Installation and configuration of JBOSS Application Server; (2) Utilizing tools to monitor the health and performance of the system; (3) Sharp shooting issues as a Subject Matter Expert (SME) with the client; (4) Troubleshooting problems and making suggestions for improved performance tuning and system integrity; (5) Implement a performance monitoring tool as it relates to JBoss.



                          REQUIRED:

                          Must have 2 years of SOLID/CURRENT JBOSS middleware installation and configuration.
                          Must have 2 years of strong/current Solaris.
                          Must have strong/current experience with Apache.
                          Must have understanding of the eCommerce software stack.


                          The Kicker:



                          If someone has implemented an open source tool for performance monitoring/tuning, they are a stone cold lock! There’s additional detail available at http://cmc-source.blogspot.com.



                          Thanks again!