activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zouzounos <>
Subject VM Transport problem when closing connections
Date Mon, 24 Sep 2007 10:22:24 GMT

I'm using activemq4.1.1 under tomcat 6. I am using the next entry in the
 <Resource name="jms/ConnectionFactory" auth="Container"
type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS
Connection Factory"

As the d=ocumentation says, the broker is created upon creation of a
The problem that i face is that after releasing the connection using
Connection.close() (and if no other connection is still active) the broker,
together with all its queues, go down. So when another connection (say a
Consumer connection) is established, the broker goes live again but there is
nothing inside the queues for the consumer to receive, since it seems that
the queues are recreated from scratch.

If the producer does not close the connection, then the broker is always
active, but the connection objects + all other backport objects created by
the connection are never garbage collected. This eventually, leads to Heap
Memory Error.

When the broker runs  in tcp mode tcp://localhost:port as a separate
process, everything works fine in all cases.

Does anyone has an idea why is this happening with the embedded broker?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message