activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From WenDong <>
Subject ActiveMQ with PERSISTENT will no response when consumer restart
Date Wed, 15 Apr 2009 02:19:31 GMT

Hi all,

I am using ActiveMQ5.2 as a buffer between tomcat & db2. 
tomcat send messages to mq and consumer process the messages and insert to
db2. the problem is sometimes the insert db operation takes a long time, so
the consumer could not consume the messages timely. 
At first we used NON_PERSISTENT method, but mq could only hold 10000
messages, when more messages come, mq crashed (java OutOfMemory). 
so, we want to use PERSISTENT and let mq write the messages to disk when the
consumer is busy, but as we did some tests, the mq will write messages to
disk successfully (thousands of messages), but when the consumer restart,
the mq server will no response at all, neither receiving nor sending.
My Problem is: NON_PERSISTENT could only hold 10000 messages? do the
messages in the memory? and, the PERSISTENT problem I've meet, do anybody
has the same problem or how to fixed it? 
BTW: the configuration(activemq.xml) is almost using the default values.

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

View raw message