1 2 Previous Next 17 Replies Latest reply on Oct 5, 2007 12:00 AM by swd847

    Jboss Seam 2.0.0.CR1 toooooo slow

    nemya

      Hi,
      I've just migrated my project initially developed under Jboss Seam 1.2.1.GA + Jboss Server 4.0.5.GA to JBoss Seam 2.0.0.CR1 + Jboss Server 4.2.1.GA. The problem I'm encountering now is that it is toooo slow. Pages take too much time to load. The delay is unacceptable.
      What can this be due to? And what it is the solution?
      Thank you

        • 1. Re: Jboss Seam 2.0.0.CR1 toooooo slow
          nemya

          I've just noticed that when I'm disconnect from Internet, It doesn't work anymore and I have this exception:

          java.lang.RuntimeException: org.dom4j.DocumentException: jboss.com Nested exception: jboss.com


          It seems that Jboss Server is connecting to Jboss web site. This can explain why it is so slow.
          Is there something I can do to avoid it from connecting to the internet.
          Thank you

          • 2. Re: Jboss Seam 2.0.0.CR1 toooooo slow
            pmuir
            • 3. Re: Jboss Seam 2.0.0.CR1 toooooo slow
              nemya

              I've already updated the xsd references.
              For pages.xml:

              <?xml version="1.0" encoding="UTF-8"?>
              <pages xmlns="http://jboss.com/products/seam/pages"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">


              and for components.xml:
              <?xml version="1.0" encoding="UTF-8"?>
              <components xmlns="http://jboss.com/products/seam/components"
               xmlns:core="http://jboss.com/products/seam/core"
               xmlns:bpm="http://jboss.com/products/seam/bpm"
               xmlns:persistence="http://jboss.com/products/seam/persistence"
               xmlns:security="http://jboss.com/products/seam/security"
               xmlns:framework="http://jboss.com/products/seam/framework"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation=
               "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
               http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
               http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
               http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
               http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.0.xsd
               http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">


              But still the same problem.
              Help!

              • 4. Re: Jboss Seam 2.0.0.CR1 toooooo slow

                Seam Team,

                Can you include all versions of Seam xsd/dtd into jar?
                It seems many people keep encountering same issue.

                Thanks

                • 5. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                  swd847

                  Or log an error message if a page using an out of date schema is found, so people don't leave pages using the out of date schema's lying around forever.

                  • 6. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                    pmuir

                    swd847 - I prefer this approach, please log a jira feature request.

                    • 7. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                      nemya

                      Hi,
                      I avoided it from connecting to the internet. But the problem remains the same: It is tooo slow. It is also very slow with projects newly generated with seam-gen. Is the problem coming from Seam or from JBoss Server.
                      thank you

                      • 8. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                        nickarls

                         

                        "nemya" wrote:
                        Hi,
                        I avoided it from connecting to the internet. But the problem remains the same: It is tooo slow. It is also very slow with projects newly generated with seam-gen. Is the problem coming from Seam or from JBoss Server.
                        thank you


                        Make sure your log4j file appender is not triggering on DEBUG or something. Are there large log files in ./server/default/log?

                        • 9. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                          nemya

                          yes I have a huge server.log file growing more and more while I'm using my application. How can I stop this?

                          • 10. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                            nickarls

                            edit jboss-log4j.xml in ./server/default/conf, look for

                            <appender name="FILE"

                            and change

                            <param name="Threshold" value="DEBUG" to "INFO"

                            • 11. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                              nemya

                              In my server/default/conf/jboss-log4j.xml I have :

                              <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">


                              • 12. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                                nickarls

                                Thats log4j:s internal logging. Just change the threshold (or remote the file appender from the root logger category at the end of the conf file)

                                • 13. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                                  nemya

                                  Thank you
                                  This resolved the problem of the huge log file, but I still have a slow application. With Seam 1.2.1.GA+ JBOSS AS 4.0.5.GA response time was<1s, and now it is > 20s!!!

                                  • 14. Re: Jboss Seam 2.0.0.CR1 toooooo slow
                                    nemya

                                    Ouuuuf!
                                    I found the solution!
                                    I just edited the launch configuration of the server. In VM arguments I put -XX:MaxPermSize=256M -Xmx1024M
                                    4.0.5.GA was working fine without this config!
                                    Thank you all

                                    1 2 Previous Next