activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From HU <>
Subject Broker used up the memory
Date Fri, 22 Sep 2006 10:14:48 GMT

I did a test as below:
1, use below codes to start a broker thread that only create 2 queues:

BrokerService broker = new BrokerService();
ActiveMQConnectionFactory connectionFactory;
connectionFactory = new ActiveMQConnectionFactory(

2, create a sender thread and  a consumer thread which use the 2 queues.
3, Send a mesesage from sender thread through a queue then receive the
message on the consumer thread.
4, Send a message from consumer thread through another queue and recieve the
message on the sender thread.
5, repeat 3 and 4.

After send about 380 messages from sendder thread, an error occurred on the
broker thread which is:
Thread[ActiveMQ Transport server: tcp//XXX:61616]( Interrupting...
(Exception OutOfMemoryError)
 OpenWireFormat.<int>(int) Line:62

Could someone tell me please how to resolve the problem.
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message