3 Replies Latest reply on Feb 19, 2008 9:31 AM by christian.bauer

    Performance Problems after migrating to Seam 2.0.0.GA

      Hi all,
         First of all, congratulations on the new seam framework web site.
        
      We had an exisiting application running on Seam 1.1.0CR1. Our client came up with new features and we thought Seam 2.0.0 will help us implement these new features (especially with rich faces). So after one month, we finally succeed in a full migration to Seam 2.0.0.GA



      Our application is using EJB 3.0, Seam 2.0.0.GA, rich faces, facelets, hibernate ...etc



      With the 1.1.0CR1 version, we have had to do some performance tuning mainly with hibernate and managed to get a 10 fold improvement in performance.


      In persistence.xml, we used the following hibernate properties:



               <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect" />
                  <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
                  <property name="hibernate.transaction.flush_before_completion" value="true" />
      
                  <!--  Mods to cache 01.05.2007 -->
                   <property name="hibernate.cache.use_query_cache" value="true"/>
                  <property name="hibernate.jdbc.wrap_result_sets" value="true"/>
                      <!--  End of Mods -->
                      
                     <property name="transaction.auto_close_session" value="true" />
                  <property name="hibernate.show_sql" value="false" />
                  
                  <!--<property name="org.hibernate.SQL" value="false" />            
                  <property name="org.hibernate.type" value="false" />                        
                  <property name="org.hibernate.tool.hbm2ddl" value="false" />                                    
                  <property name="org.hibernate.pretty" value="false" />                                                
                  <property name="org.hibernate.cache" value="false" />                                                            
                  <property name="org.hibernate.transaction" value="false" />                                                            
                  <property name="org.hibernate.jdbc" value="false" />                                                            
                  <property name="org.hibernate.hql.ast.AST" value="false" />                                                            
                  <property name="org.hibernate.secure" value="false" />                                                            
                  <property name="org.hibernate" value="false" />    
      




      And we disabled all DEBUG level logs for hibernate, disabled Hibernate SQL output ..etc



      One of the main feature of the application is import of data contained in an XML file. We have an XML file of around 11,000 lines which is processed by the seam application and the data in entered in various tables. These data are relevant for a questionnaire which contains MCQ questions of all kinds.



      With the 1.1.0CR1 version, we were able to import this XML file in under 3 minutes, and now it takes around 12-15 minutes on average to import this file !!


      This is a major performance bottleneck for us and our client needs to go in production with this version by the end of this week.


      Any help on how to improve performance would be greatly appreciated.



      Kind Regards,
      Jankee Yogesh



      P.S: The page to post the topic is refreshing each time, to display the preview of the post. I lost the whole content of my post two times :(. Is there any way to work around this. Thnx













        • 1. Re: Performance Problems after migrating to Seam 2.0.0.GA
          christian.bauer

          P.S: The page to post the topic is refreshing each time, to display the preview of the post. I lost the whole content of my post two times :(. Is there any way to work around this. Thnx

          The page does not refresh, just part of the page. Please describe what exactly lost the whole content means.

          • 2. Re: Performance Problems after migrating to Seam 2.0.0.GA

            Just noticed that the reply button on your post gave me an HTTP 404 Error.


            By the whole content, i mean everything that i typed in the Message textbox was lost.



            Regards,
            Yogesh

            • 3. Re: Performance Problems after migrating to Seam 2.0.0.GA
              christian.bauer

              The 400 (not 404) was fixed just now.


              I need a clear description from you:



              • What browser are you using?




              • What does lost the whole content mean? Did it disappear by itself? Did you type something? If yes, then what did you type?




              • Are you sure that the whole page refreshed even if you did not click on anything?



              Basically, what someone would need to reproduce your problem.


              P.S. The same is true for your original question: With a description like it was fast before, now it is slow and no details about what you are doing, nobody can help you.