2 Replies Latest reply on Dec 25, 2003 12:00 AM by eweber

    OutOfMemoryError in Topic

    eweber

      Hello all.

      I have subscribers not deployed so I can see what the Topic can hold.
      After I publish about 60MB worth of text messages, I get an OutOfMemoryError and an EOFException.
      Could someone help me with this please? (Surely I can store much more than 60MB, right?) This happens even when I wait a few seconds between publishing. However, I am keeping the messages from expiring, as I said, to see what the Topic can hold.

      -Erik

      [JBossMQ] INCOMING: (TX=null)ID16 => Topic@testTopic
      [JBossMQ] java.lang.OutOfMemoryError
      [JBossMQ] <<no stack trace available>>
      [EmbeddedTomcatSX] java.io.EOFException
      [EmbeddedTomcatSX] at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1907)
      [EmbeddedTomcatSX] at org.jbossmq.distributed.server.DistributedJMSServerUILClient.waitAnswer(DistributedJMSServerUILClient.java:107)
      [EmbeddedTomcatSX] at org.jbossmq.distributed.server.DistributedJMSServerUILClient.addMessage(DistributedJMSServerUILClient.java:211)
      [EmbeddedTomcatSX] at org.jbossmq.SpyConnection.sendToServer(SpyConnection.java:387)
      [EmbeddedTomcatSX] at org.jbossmq.SpySession.sendMessage(SpySession.java:383)

        • 1. Re: OutOfMemoryError in Topic
          eweber

          Um, I forgot to mention that I am developing with 1.3 on RH Linux 6.2 with 256MB RAM, JBoss 2.2.2/Tomcat 3.2.2. I have tried killing all other processes during JBoss testing, but it doesn't seem to have any impact.

          -Erik

          • 2. Re: Another transaction problem
            eweber

            Hi Guys,
            thanks for the help. Unsurprisingly it was my code at fault - switching to CMT gave me a more helpful stack trace. The constructor of the LoggingEvent object doesn't work in the MDB but does in a stand alone client.

            Thanks again,
            jim