3 Replies Latest reply on Feb 25, 2005 5:14 PM by adrian.brock

    OutOfMemory on the JMS Client Side

    ilan1

      Hi,

      I have build jbossmq configuration in order to use JbossMQ as a standalone messaging server.

      The problem I have is in the client side (not in JbossMQ server).
      After few hours I get OutOfMemory exceptions in my client code.

      My application acts as a Topic Publisher as well as Topic Subscsriber each use its own connection.

      I have noticed that once the Subscsriber connection is created the applicate starts to consume more and more memory (few KB each second) until it reaches OutOfMemory.

      I am using Jboss version 4.0.1 on JRE 1.4.2_05


      Thanks,
      -Ilan


        • 1. Re: OutOfMemory on the JMS Client Side
          jgc195

          Hi,

          Are you consuming the messages using a Message Driven Bean?

          I've experienced similar symptoms with version 3.2.6 using a MDB to consume messages from a queue. My work around was to write my own consumer - I created a Managed bean that creates x instances of my consumer. I can therefore manage memory use very tightly be configuring the number of instances of the consumer are created.

          Hope that's of some help.

          J

          • 2. Re: OutOfMemory on the JMS Client Side
            razor_harm

            You might want to switch to a 'real' db such as PostgreSQL or MySQL

            • 3. Re: OutOfMemory on the JMS Client Side

              I don't think the DB Implementation would affect what happens on the client.

              Nothing more to add, the question is unanswerable as it stands.

              The orignal poster doesn't even show the jvm config or any attempt
              to profile the application to find out what is using the memory.