activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave cawthorn <>
Subject AMQ 4.0.1 Memory Leak/Hang
Date Tue, 04 Jul 2006 10:25:09 GMT


I have a simple test case that is failing at the moment. It goes like this

1 create a connection/session/producer
2 create a connection/session/consumer
3 create a message and send
4 readnext message on the consumer
5 close every thing
6 loop from 1 again

I've tried to configure amq to use persistence so I wont run into memory
problems (and can support failover with a replicated message store) but when
i run the test it just consumes memory (amq jvm) till it hangs the client
when trying to create a session.

here is my config - any ideas?

<!-- START SNIPPET: xbean -->
<beans xmlns="">
  <broker persistent="true" useJmx="false">
	  	<usageManager id="memory-manager" limit="100000000"/>
	   <managementContext connectorPort="1199"

	<!-- In ActiveMQ 4, you can setup destination policies -->  
          <policyEntry topic=">" memoryLimit="50000000"/> 
          <policyEntry queue=">" memoryLimit="50000000"/> 
     <jdbcPersistenceAdapter dataSource="#sequoia-ds" />
       <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"/> -->
      <networkConnector name="host1 and host2"
uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
  <!--  This xbean configuration file supports all the standard spring xml
configuration options -->
  <!-- Postgres DataSource Sample Setup -->


<bean id="sequoia-ds" class="com.mchange.v2.c3p0.ComboPooledDataSource"
    <property name="driverClass"
value="org.continuent.sequoia.driver.Driver" />
    <property name="jdbcUrl" value="jdbc:sequoia://"
    <property name="user" value="postgres" />
    <property name="password" value="postgres" />
    <property name="minPoolSize" value ="6" />
    <property name="maxPoolSize" value="18" />
    <property name="acquireIncrement" value="3" />


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

View raw message