5 Replies Latest reply on Mar 17, 2008 4:34 AM by mail.micke

    bloddy helly slow!!!!!

    bobbiee

      Hello,

      after I put richfaces together with facelets, I can see very big memory like caused by java.exe process - jboss. It eats more than 2 GB of the memory and it appears everytime when ajax request is being processed. This I cant put to the production, it will destroy our server here...

      I want to ask, what is happening? I found some topics in this forum about memory lakes in the browsers, but does anybody have problem with memory lake caused by jboss??

      I am using richfaces 3.1.4.

      Thanks

        • 1. Re: bloddy helly slow!!!!!
          bobbiee

          When I try to put log on the page to see what is happening, ajax request completely blocks browser and something really strange appears inside the log window - when ajax request finish, log window closes. No help for me:(

          • 2. Re: bloddy helly slow!!!!!
            nbelaevski

            What does the stack dump show?

            • 3. Re: bloddy helly slow!!!!!
              nbelaevski

              I'm very sorry, I meant heap dump :)

              • 4. Re: bloddy helly slow!!!!!
                bobbiee

                Thanks for answer:)

                how can I reach head dump? Things got better when I change STATE_SAVING_METHOD inside the web.xml from client to the server. I think this was the main problem...

                I still have problem with memory leak. I dont want to have modal panel, cause he causes that my screen goes darker which can be bad for users. I decided to have my own "modal panel", but I dont know how to lock every components on the page while ajax request is performing. Memory leak appears also when I perform more clicks fast after each other and reproduce more ajax request in almost one time, My jboss uses almost 3GB memory. I wonder what will happen with my server, if more people will work with this in one time. Is that OK? Could you please write, what do you think about that?

                Thank you very much.

                Lukas

                • 5. Re: bloddy helly slow!!!!!
                  mail.micke

                  Hi

                  I don't think that RichFaces per say is responsible for the memory usage. You need to look inside your backing beans and other session/application scoped beans and make sure that they don't load up to much memory.
                  If possible try and profile it to see where the memory goes.

                  Regarding multiple concurrent users on your web app (load testing), I would suggest that you use JMeter[1] which can simulate this for you. Not the easiest tool to use, but it does the job. Also there is this wiki page on the myfaces website which gives some hints especially for testing JSF pages [2].

                  [1] http://jakarta.apache.org/jmeter/
                  [2] http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter

                  Good luck,
                  Micke