Recovery using the existing persistence stores is very resource intensive, and occurs by default when the queue is autovivified. You can alleviate the problem somewhat by forcing queue recovery at startup by explicitly listing the queue in your broker config:

http://incubator.apache.org/activemq/configure-startup-destinations.html

That will mean startup takes ages, but then the first queue consumer to join won't be so bad off.

If you have large messages and a large prefetch then you might also be getting hurt by the initial prefetch burst. As a test try lowering prefetch to 1 and see if there's a performance difference.

John

On Dec 20, 2006, at 5:59 AM, Arboz wrote:


I have persistent queue with a lot of messages. Size of queue is very large.
Create consumer operation isn't accomplished for long time.

Why it's happened? What can I do?

Thank you.
--
View this message in context: http://www.nabble.com/createConsumer% 28Quque%29-tf2859903.html#a7990492
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Reply via email to