activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uma...@comcast.net
Subject Peer transport mode: AMQ4.1 runs out of heap space
Date Fri, 23 Mar 2007 21:23:54 GMT

Environment:
    JDK1.6
    ActiveMQ 4.1
    Linux Kernel 2.6.17-1.2630

Setup:
   VM1 on local workstation configured with Peer transport
   Topics: 2 published
   Number of subscribers: 2
   Queues: None
   Broker configuration:
         <bean id="jmsFactory"
		class="org.apache.activemq.ActiveMQConnectionFactory">
		<property name="brokerURL">
		   <value>peer://mybus/defaultgroup?persistent=false</value>
		</property>
	</bean>

   VM2 (remote configured exactly the same as above).

Problem:
========
  VM1 keeps issuing the message:
          WARNING: Could not start network bridge between: vm://defaultgroup?network=true
and
           tcp://vm2:4850 due to: java.net.UnknownHostException: vm2 Mar 22, 2007 2:55:28
AM 
           org.apache.activemq.network.DiscoveryNetworkConnector onServiceAdd

and after a day runs out of heap space as shown below. Hardly any messages are published
the topics (there are no queues). What could be causing this problem? Is this a known problem
in ActiveMQ 4.1? 

Any hints greatly appreciated!
    


INFO: Establishing network connection between from vm://defaultgroup?network=true to tcp://vm2:4850
Exception in thread "Multicast Discovery Agent Notifier" 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.createWireFormat(TransportFactory.java:179)
        at org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:115)
        at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:64)
        at org.apache.activemq.network.DiscoveryNetworkConnector.onServiceAdd(DiscoveryNetworkConnector.java:100)
        at org.apache.activemq.transport.discovery.multicast.MulticastDiscoveryAgent$2.run(MulticastDiscoveryAgent.java:342)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:619)
Mar 22, 2007 3:53:46 AM org.apache.activemq.network.DiscoveryNetworkConnector onServiceAdd
                   

Mime
View raw message