8 Replies Latest reply on Nov 22, 2006 7:25 AM by plexiq

    Memory leak in JBoss portal 2.4

    sandeeppujar

      Version: Jboss Portal 2.4.0

      We suspect possible memory leak in this release.
      We did memory profiling for this version using Jprobe. Below is a detailed memory report.

      Summary of profiling:

      Test details:
      1. A simple page with only one portlet (user portlet) was created and was hit repeatedly using JMeter.
      2. A snap shot (SNAP1) was taken when the Jboss server was up and was taking requests. Memory was around 60MB mark
      3. Total requests around 24,000. Total time: 30 mins
      4. A snap shot (SNAP2) was taken again, when memory was at 90MB mark.
      5. Forced GC and another snap shot (SNAP3)taken. After GC the memory usage came done, but there was still a considerable increase.80 MB

      Has anybody seen this issue ?

      Here are the differences in memory in Snap shots taken.

      Diffrence between SNAP1 and SNAP2

      Package Class Count Memory
      Overall Difference 595,775 28,330,440
      java.util Hashtable$Entry [ ] 66,697 (huge) 3,730,832 (huge)
      java.util HashMap$Entry [ ] 39,780 (79.3%) 3,422,328 (82.2%)


      Diffrence between SNAP1 and SNAP3
      Package Class Count Memory
      Overall Difference 442,350 21,832,800
      java.util Hashtable$Entry [ ] 53,212 (huge) 2,975,672 (huge)
      java.util HashMap$Entry [ ] 19,177 (79.3%) 2,538,056 (82.2%)


      I can send the snap shot difference files if need be, I could not find a quick way to put the files here.

      Thanks,
      Sandeep



        • 1. Re: Memory leak in JBoss portal 2.4

          Does JMeter provide any fine-grained data? Its hard to say whether its portal code causing a leak or some underlying component.

          We host jboss.org on portal 2.2, and it serves anywhere from 3-5 million pagea a month on a HP DL380, 2x3GHz CPU, 2G RAM, and don't see the problem you describe, so any extra data you can provide would help.

          • 2. Re: Memory leak in JBoss portal 2.4
            sandeeppujar

            We did not have this issue with portal 2.2 .
            We have observed this only with 2.4. We do have detailed class level memory usage, I could not post those files here. I will email them to you so that you can have a look.

            • 3. Re: Memory leak in JBoss portal 2.4

              Got it, thanks.

              • 4. Re: Memory leak in JBoss portal 2.4
                rsreddy_tsky

                We are planning to use Jboss Portal 2.4 GA.

                We would like to know whether the above mentioned Memory Leak problem still exists in the version Jboss Portal 2.4 GA.

                Please help us by providing this information at the earliest.

                Thanks & Regards,
                RS REDDY

                • 5. Re: Memory leak in JBoss portal 2.4
                  kakihiko

                  We are also planning to use JBoss Portal 2.4 GA.

                  We hope the memory leak problem has been solved.

                  Thanks.

                  • 6. Re: Memory leak in JBoss portal 2.4
                    yamazak

                    To JBoss Portal2.4.0-GA, we are concerned about memory leak problem.
                    We have checked about the memory usage of JBoss Portal 2.4.0-GA while JMeter loaded http request.
                    The result was that JVM memory usage was increasing during JMeter sended http request. Finally, the server was downed.

                    Test Details

                    to:test server
                    1.Installed JBoss Portal 2.4.0-GA to Windows PC.
                    2.Connected Oracle to the portal server.
                    3.Started up server.

                    to:client machine
                    4.Started up JMeter.
                    5.Configured as below:
                    -Number of Threads:20
                    -Ramp up Period:20
                    -Loop:forever

                    -Test plan
                    |
                    |-http request:http://***:8080/portal
                    |-Timer:5000ms

                    6.Began the test plan.

                    Result
                    JVM memory usage was increasing during load.
                    About four hours later, Server was downed by OutOfMemoryException.

                    I'm facing a seriouse problem.
                    What do I missing?

                    Thanks.

                    • 7. Re: Memory leak in JBoss portal 2.4

                      Send me the snapshots and any usefull data that can help us to find out what's going on : my address is julien at jboss dot com

                      • 8. Re: Memory leak in JBoss portal 2.4
                        plexiq

                        Don't know if this is any help, but anyway:

                        We are also having a leak running JBoss Portal 2.4 on JBoss AS 4.0.5 w/ EJB3 on our production server (running JVM 1.5.0_08 / 64Bit).

                        Strange thing is we cant reproduce the leak on our testing machines (all 32-bit). So, i am wondering if the tests by yamazak and sandeeppujar were done on 64Bit or 32Bit machines.