Announcement Announcement Module
Collapse
No announcement yet.
OutOfMemory when no ActiveMQ broker Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • OutOfMemory when no ActiveMQ broker

    We are using ActiveMQ through Spring JMS. We are using CachingConnectionFactory .. When we have the brokerURI pointing to something invalid AMQ location - then the process gets OutOfMemory after 8-12 hours of running.. The following is the exception logged. Is this a configuration issue?


    Exception in thread "DefaultQueueContainer-1" java.lang.OutOfMemoryError: Java heap space
    at edu.emory.mathcs.backport.java.util.concurrent.Cop yOnWriteArrayList.add(CopyOnWriteArrayList.java:11 9)
    at org.apache.activemq.management.JMSStatsImpl.addCon nection(JMSStatsImpl.java:53)
    at org.apache.activemq.ActiveMQConnection.<init>(Acti veMQConnection.java:193)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:276)
    Exception in thread "TestTopicContainer-1" Exception in thread "DefaultTopicContainer-1" at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:243)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:211)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teConnection(ActiveMQConnectionFactory.java:158)
    at org.springframework.jms.connection.SingleConnectio nFactory.doCreateConnection(SingleConnectionFactor y.java:343)
    at org.springframework.jms.connection.SingleConnectio nFactory.initConnection(SingleConnectionFactory.ja va:290)
    at org.springframework.jms.connection.SingleConnectio nFactory.createConnection(SingleConnectionFactory. java:227)
    at org.springframework.jms.support.JmsAccessor.create Connection(JmsAccessor.java:184)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.createSharedConnection(AbstractJmsLis teningContainer.java:378)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.refreshSharedConnection(AbstractJmsLi steningContainer.java:363)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.refreshConnectionUntilSuccessful(De faultMessageListenerContainer.java:785)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.recoverAfterListenerSetupFailure(De faultMessageListenerContainer.java:767)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.run(Def aultMessageListenerContainer.java:898)
    at java.lang.Thread.run(Unknown Source)
    java.lang.OutOfMemoryError: Java heap space
    at org.apache.activemq.openwire.OpenWireFormat.<init> (OpenWireFormat.java:60)
    at org.apache.activemq.openwire.OpenWireFormat.<init> (OpenWireFormat.java:67)
    at org.apache.activemq.openwire.OpenWireFormatFactory .createWireFormat(OpenWireFormatFactory.java:60)
    at org.apache.activemq.transport.TransportFactory.cre ateWireFormat(TransportFactory.java:179)
    at org.apache.activemq.transport.TransportFactory.doC onnect(TransportFactory.java:115)
    at org.apache.activemq.transport.TransportFactory.doC onnect(TransportFactory.java:43)
    at org.apache.activemq.transport.TransportFactory.con nect(TransportFactory.java:77)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teTransport(ActiveMQConnectionFactory.java:227)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:242)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:211)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teConnection(ActiveMQConnectionFactory.java:158)
    at org.springframework.jms.connection.SingleConnectio nFactory.doCreateConnection(SingleConnectionFactor y.java:343)
    at org.springframework.jms.connection.SingleConnectio nFactory.initConnection(SingleConnectionFactory.ja va:290)
    at org.springframework.jms.connection.SingleConnectio nFactory.createConnection(SingleConnectionFactory. java:227)
    at org.springframework.jms.support.JmsAccessor.create Connection(JmsAccessor.java:184)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.createSharedConnection(AbstractJmsLis teningContainer.java:378)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.refreshSharedConnection(AbstractJmsLi steningContainer.java:363)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.refreshConnectionUntilSuccessful(De faultMessageListenerContainer.java:785)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.recoverAfterListenerSetupFailure(De faultMessageListenerContainer.java:767)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.run(Def aultMessageListenerContainer.java:898)
    at java.lang.Thread.run(Unknown Source)
    java.lang.OutOfMemoryError: Java heap space
    at edu.emory.mathcs.backport.java.util.concurrent.Cop yOnWriteArrayList.add(CopyOnWriteArrayList.java:11 9)
    at org.apache.activemq.management.JMSStatsImpl.addCon nection(JMSStatsImpl.java:53)
    at org.apache.activemq.ActiveMQConnection.<init>(Acti veMQConnection.java:193)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:276)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:243)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teActiveMQConnection(ActiveMQConnectionFactory.jav a:211)
    at org.apache.activemq.ActiveMQConnectionFactory.crea teConnection(ActiveMQConnectionFactory.java:158)
    at org.springframework.jms.connection.SingleConnectio nFactory.doCreateConnection(SingleConnectionFactor y.java:343)
    at org.springframework.jms.connection.SingleConnectio nFactory.initConnection(SingleConnectionFactory.ja va:290)
    at org.springframework.jms.connection.SingleConnectio nFactory.createConnection(SingleConnectionFactory. java:227)
    at org.springframework.jms.support.JmsAccessor.create Connection(JmsAccessor.java:184)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.createSharedConnection(AbstractJmsLis teningContainer.java:378)
    at org.springframework.jms.listener.AbstractJmsListen ingContainer.refreshSharedConnection(AbstractJmsLi steningContainer.java:363)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.refreshConnectionUntilSuccessful(De faultMessageListenerContainer.java:785)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer.recoverAfterListenerSetupFailure(De faultMessageListenerContainer.java:767)
    at org.springframework.jms.listener.DefaultMessageLis tenerContainer$AsyncMessageListenerInvoker.run(Def aultMessageListenerContainer.java:898)
    at java.lang.Thread.run(Unknown Source)
    Last edited by sbua; May 3rd, 2010, 04:10 PM.
Working...
X