3 Replies Latest reply on Jun 10, 2009 4:38 AM by Nick Belaevski

    How to improve render response speed?

    Lotfi Mellouk Master

      Hi all,

      Im using h:commandButton for navigation. I have to improve navigation speed, especially, when the rendered page contains comboBox, selects and inputs components.
      Here the code for navigation:

      <h:commandButton value="Search" action="search_users"
      styleClass="#{bean.viewUsersStyle}" immediate="true"
      disabled="#{bean.disabledSearch}"
      actionListener="#{bean.viewUsersControl}">
      </h:commandButton>

      I do not use redirect for navigation.
      Im using Facelets 1.1.13, RF 3.3.1.GA, myfaces 1.2.4, tomcat 5.5.

      Here JSF phase log:


      INFO PhaseListener 2009-06-10 08:55:40,747 - BEFORE RESTORE_VIEW(1)
      INFO PhaseListener 2009-06-10 08:55:40,747 - AFTER RESTORE_VIEW(1)
      INFO PhaseListener 2009-06-10 08:55:40,747 - BEFORE APPLY_REQUEST_VALUES(2)
      INFO PhaseListener 2009-06-10 08:55:40,778 - AFTER APPLY_REQUEST_VALUES(2)
      INFO PhaseListener 2009-06-10 08:55:40,778 - BEFORE RENDER_RESPONSE(6)
      INFO PhaseListener 2009-06-10 08:55:42,512 - AFTER RENDER_RESPONSE(6)



      Best regards!



        • 1. Re: How to improve render response speed?
          Nick Belaevski Master

          Hi,

          If force_parser is not switched on, RF does minimal processing for the non-Ajax pages and this processing is very fast. First try updating to the latest MyFaces or consider testing with JSF RI. Have you checked where time is spent using profiler?

          • 2. Re: How to improve render response speed?
            Lotfi Mellouk Master

            thanks for quick response

            "nbelaevski" wrote:

            If force_parser is not switched on, RF does minimal processing for the non-Ajax pages and this processing is very fast

            I dont set force_parser parameter on web.xml, I defined only
            <context-param>
             <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
             <param-value>NEKO,TIDY,NONE</param-value>
             </context-param>


            "nbelaevski" wrote:

            First try updating to the latest MyFaces or consider testing with JSF RI

            I'll try with the latest Myfaces, testing with JSF RI require many changes.
            "nbelaevski" wrote:

            Have you checked where time is spent using profiler?


            how can I use the profiler?
            I have just used JSF Phase tracker, And I rermarked, when the page is emty and contains only a rich:panel, the navigation is very speed.






            • 3. Re: How to improve render response speed?
              Nick Belaevski Master

               

              "lmk" wrote:
              "nbelaevski" wrote:

              Have you checked where time is spent using profiler?


              how can I use the profiler?
              I have just used JSF Phase tracker, And I rermarked, when the page is emty and contains only a rich:panel, the navigation is very speed.

              There is number of commercial either free profiler tools for Java. Use the one that you like - check Internet for guides and tutorials: http://www.google.com.by/search?hl=be&rlz=1C1GGLS_enBY315BY315&q=java+application+performance+profiling&btnG=Шукаць&meta=