4 Replies Latest reply on Nov 7, 2003 1:51 AM by pvamstel

    java.lang.OutOfMemory

    pvamstel

      It has been a long time again.

      I'm no into the queue's but i'm creating a durable Topic which is read by a MDB. This all works great if i do not drop more than 500 messages on the queue (Topic).

      If i drop a 1000 it fails by number 644.

      I've been playing around a bit and what i see is that that each and every message is written to the
      $JBOSS_HOME\server\default\data\hypersonic\default.script

      When it is about the 15mb jboss throws a OutOfMemoryException and dies not so gracefully.

      When i startup i have to throw away a lot of file just to get it up and runnig again.

      Isn't it possible to configure the topic that the duration of the messages is about 1sec

      All help and suggestions are welcome.

      grt Patrick

        • 1. Re: java.lang.OutOfMemory

          Please post your jboss version, there were many bugs in topics
          the early jboss3.0 releases

          Also this question has been asked many times before.
          Use search on MessageCache or HighMemoryMark

          Regards,
          Adrian

          • 2. Re: java.lang.OutOfMemory
            pvamstel

            Sorry i forgot

            Jboss version 3.2.2

            And thx for the search tips

            • 3. Re: java.lang.OutOfMemory
              pvamstel

              Just look in docs/examples/jms

              for configuring the persistant mechanism

              • 4. Re: java.lang.OutOfMemory
                pvamstel

                I now know what the actual problem was.

                When deploying a MDB to a durable topic a client-id was created. I did not specify a client id in the jboss.xml so every time a new id was created.

                Since it is a durable subscription everytime i deployed the same MDB a new client id was added and the old ones remained.

                This meant that all messages where persisted because my old mdb's were not consuming them.

                Stupid me

                Maybe this will help some other stupid guy in the future.