activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Yves LEBLEU" <>
Subject 4.1.1 to 5.1.0 eating heap space
Date Tue, 24 Jun 2008 11:10:42 GMT
Hello to all,

My last chance, I've spend last hours to make it work, modifying a lot of
parameters but without any success ...

We have a web application using Spring 2.5.4 and ActiveMQ which is working
very well, with ajax access etc ... and we would like to upgrade to 5.1.0.
The configuration is very simple, no persistance and we use only temporary
Works well also but eating memory, and we finish by a beautiful "ActiveMQ
java.lang.OutOfMemoryError: Java heap space"

Does anybody has an idea of what we forgot to change ? or what is needed to
be changed when upgrading from 4.1 to 5.1 ?

Thanks for any answer or any pointer to documentation / forum I may have
missed ...


Here is the spring config :
    <bean id="brokerContainer"
        <property name="config" value="classpath:activemq.xml" />
    <bean id="wbmPrefetchPolicy"
class="org.apache.activemq.ActiveMQPrefetchPolicy" >
       <property name="topicPrefetch" value="10000"></property>
    <!-- JMS ConnectionFactory to use -->
    <bean id="jmsFactory"
        <property name="brokerURL"
            value="vm://wbm?broker.persistent=false" />
            <property name="prefetchPolicy"

    <!-- Spring JMS Template -->
    <bean id="myJmsTemplate"
        <property name="connectionFactory">
            <!-- lets wrap in a pool to avoid creating a connection per send

                <property name="targetConnectionFactory">
                    <ref local="jmsFactory" />
        <property name="pubSubDomain" value="true"></property>
        <property name="timeToLive" value="5000"></property>

And active MQ config


  <broker useJmx="false"  brokerName="wbm" xmlns="" persistent="false">

      <transportConnector uri="tcp://localhost:61618" />
      <transportConnector uri="stomp://localhost:61668"/>


          <policyEntry topic="wbm.>">
            <!-- lets force old messages to be discarded for slow consumers
              <constantPendingMessageLimitStrategy limit="30"/>



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message