3 Replies Latest reply on May 21, 2010 2:19 PM by Nick Belaevski

    CPU trouble on 3.3.3.Final

    Lotfi Mellouk Master

      Hi all,

       

      Im moving from 3.3.2.GA to 3.3.3.Final, but I get some  regression, the first one concerns modalPanel scroller, setting  scroll on modalPanel seems not working,  I  updated modalPanels code to use a div inside modalPanel.

       

      the second and the most important is the CPU overload,  when the user log on, CPU grows to  99%..

      do you have any advice about this??

       

      Best regards!

        • 1. Re: CPU trouble on 3.3.3.Final
          Ilya Shaikovsky Master

          code snippets and conditions to reproduce both problems needed to check the problems sources.

          • 2. Re: CPU trouble on 3.3.3.Final
            Lotfi Mellouk Master

            Im using a4j:commandButton, aj4:status, on the login page,

            the target page contains just  tabPanel used as menu with empty body.

             

             

            perhabs a part of the web.xml can help..

             

             

            <context-param>
              <param-name>facelets.DEVELOPMENT</param-name>
              <param-value>false</param-value>
             </context-param>
             <context-param>
              <param-name>facelets.LIBRARIES</param-name>
              <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
             </context-param>
             <context-param>
              <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
              <param-value>server</param-value>
             </context-param>
             <context-param>
              <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
              <param-value>com.sun.facelets.FaceletViewHandler</param-value>
             </context-param>
             <context-param>
              <param-name>com.fimat.helper.phaseTracker.cphase</param-name>
              <param-value>ANY_PHASE</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.LoadScriptStrategy</param-name>
              <param-value>ALL</param-value>
             </context-param>
             <context-param>
              <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
              <param-value>true</param-value>
             </context-param>
             <context-param>
              <param-name>facelets.REFRESH_PERIOD</param-name>
              <param-value>2</param-value>
             </context-param>
             <context-param>
              <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>
              <param-value>NEKO, TIDY</param-value>
             </context-param>
             <context-param>
              <param-name>org.apache.myfaces.USE_ENCRYPTION</param-name>
              <param-value>false</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
              <param-value>enable</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.CONTROL_SKINNING</param-name>
              <param-value>enable</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.SKIN</param-name>
              <param-value>corporate_skin</param-value>
             </context-param>
             <context-param>
              <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
              <param-value>true</param-value>
             </context-param>
             <context-param>
              <param-name>org.apache.myfaces.ERROR_HANDLING</param-name>
              <param-value>false</param-value>
             </context-param>
             <context-param>
              <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>
              <param-value>true</param-value>
             </context-param>
             <context-param>
             
              <param-name>com.sun.faces.verifyObjects</param-name>
              <param-value>false</param-value>
             </context-param>
             <context-param>
              <param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>
              <param-value>refRes/</param-value>
             </context-param>
             <context-param>
              <param-name>org.richfaces.LoadStyleStrategy</param-name>
              <param-value>ALL</param-value>
             </context-param>
             <filter>
              <display-name>Ajax4jsf Filter</display-name>
              <filter-name>ajax4jsf</filter-name>
              <filter-class>org.ajax4jsf.Filter</filter-class>
              <init-param>
               <param-name>createTempFiles</param-name>
               <param-value>true</param-value>
              </init-param>
              <init-param>
               <param-name>maxRequestSize</param-name>
               <param-value>143482880</param-value>
              </init-param>
             </filter>
             <filter>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
              <init-param>
               <param-name>maxFileSize</param-name>
               <param-value>20m</param-value>
              </init-param>
             </filter>
             <filter>
              <filter-name>extensionsFilter</filter-name>
              <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
              <init-param>
               <param-name>uploadMaxFileSize</param-name>
               <param-value>100m</param-value>
              </init-param>
              <init-param>
               <param-name>uploadThresholdSize</param-name>
               <param-value>100k</param-value>
              </init-param>
              <init-param>
               <param-name>uploadRepositoryPath</param-name>
               <param-value>/temp</param-value>
              </init-param>
             </filter>
            
             <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              
              <servlet-name>Faces Servlet</servlet-name>
             </filter-mapping>
             <!--
                    extension mapping for serving page-independent resources (javascript,
                    stylesheets, images, etc.)
                -->
             <filter-mapping>
              <filter-name>MyFacesExtensionsFilter</filter-name>
              <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
             </filter-mapping>
             <filter-mapping>
              <filter-name>extensionsFilter</filter-name>
              <url-pattern>*.shtml</url-pattern>
             </filter-mapping>
             <filter-mapping>
              <filter-name>ajax4jsf</filter-name>
              <url-pattern>/*</url-pattern>
              <dispatcher>REQUEST</dispatcher>
              <dispatcher>FORWARD</dispatcher>
              <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>
            
            • 3. Re: CPU trouble on 3.3.3.Final
              Nick Belaevski Master

              Can you please create stack trace for the stuck thread?