activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From christyc <>
Subject Getting OutOfMemoryError: Java heap space
Date Thu, 13 Jul 2006 20:36:48 GMT

Maybe this is obvious, but I've been scouring the forum and website and am
thinking that we have a configuration problem (hopefully) and not a bug. 
Anyway, we have multiple users as publishers and am trying to test the
persistentence capability by not having any consumers consume messages.  We
have some requirements that 1 million messages must be persisted and in our
current test, we generate up to 400k messages and then get OutOfMemoryError
: Java heap space coming from ActiveMQ.  From what I see on the website,
having topics that are durable should be persisted to the database and
spooled to disk.  We pretty much are using the out of a box activemq.xml
configuration, but I don't see derby directories or the journal directories
getting touched.  It seems like we don't have the derby database configured
correctly.  We are using durable topics with asynch sending and memory
management is set to 0 (which I thought I  picked up as being unlimited). 
How can you verify that the data is being spooled to disk and derby?  Here's
our activemq.xml:

 <beans xmlns="">


    <broker persistent="true" useJmx="true">

    <!--  Use the following to set the broker memory limit (in bytes) -->
        <usageManager id="memory-manager" limit="0"/>

    <!-- In ActiveMQ 4, you can setup destination policies -->
           <policyEntry topic="FOO.>">
              <strictOrderDispatchPolicy />
              <lastImageSubscriptionRecoveryPolicy />

          <policyEntry topic="">
               <strictOrderDispatchPolicy />


               <constantPendingMessageLimitStrategy limit="1000000"/>


          <journaledJDBC journalLogFiles="5"
dataDirectory="${activemq.home}/activemq-data" />

       <transportConnector name="default" uri="tcp://localhost:61616"
       <transportConnector name="stomp"   uri="stomp://localhost:61613"/>

      <!-- by default just auto discover the other brokers -->
      <networkConnector name="default" uri="multicast://default"/>


View this message in context:
Sent from the ActiveMQ - User forum at

View raw message