2 Replies Latest reply on Jun 8, 2005 5:26 PM by ehansen

    CurrentMemoryUsage skyhigh...

    arnoraps

      When i run my application for about 2 hours, the java.exe grows up to 615 MB, but whithout out of memory errors. When i look in the jmx console i see that the MessageCache bean reports the CurrentMemoryUsage is 516 MB, but my MaxMemoryMark is 60 MB (highmemorymax is 50 MB)

      I use mysql-jdbc2-service for my jms database.

      Most message here are about out of memory errors and hsqldb, but i have no clue why the memory usage is so high, even with the default normal memory mark settings.

        • 1. Re: CurrentMemoryUsage skyhigh...

          I've added a link to the Memory Usage/MessageSoftening wiki page to the FAQ,
          and also added some big bold letters at the top of that page just to avoid
          any possible misunderstanding of what it does.
          http://www.jboss.org/wiki/Wiki.jsp?page=MessageSoftening

          • 2. Re: CurrentMemoryUsage skyhigh...
            ehansen

            How much memory should a soft reference use?

            Using the default cache settings, my memory usage (based on the Windows Task Manager) was about 200MB more when there was 100,000 messages waiting to be consumed than when the queue was empty. The total java memory was at 300MB. So, assuming that most of the refrerences were soft, this would indicate that each soft reference was using 2K. Does this sound right?

            I didn't look at the actual MBean properties when the JMS queue was in that state, but I plan to build up the queue to 100,000 messages and try it again.

            Thanks,
            Eric Hansen