2 Replies Latest reply on Sep 25, 2003 10:32 AM by shoran

    memory leak?

    shoran

      I have a session bean that calls an entity bean that reads a row from a mysql (doesn't matter what the backend is) database in a loop. At the end of the loop I call the Runtime class to get the free memory. Each time I run a test client reading 10,000 rows, I have about 30Mb less free memory until the jvm runs out of memory. I have tweaked the standardjboss.xml's max-capacity for each entity type. I set it to 100 in an effort to constrain bean creation and encourage reuse. I see the beans passivate, but memory consumption grows. Is there an issue with getting rid of the EJBObject associated with the bean? I am on Win2k pro, JBoss 3.2.1.

      Thanks,
      Seth

        • 1. Re: memory leak?
          shoran

          I ran my test in 3.2.2 RC3 and there was no leak. Looks like it has been fixed from 3.2.1.

          Seth

          • 2. Re: memory leak?
            shoran

            As it turns out, connections were not being released properly, because in transaction-service.xml true was set by default. In later versions of jboss this is false and there are no leaks.

            Seth