activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patrik <>
Subject Unbrowsable ghost message using ActiveMQ running LevelDB and Camel.
Date Tue, 13 Nov 2012 16:33:21 GMT

We have experienced some problems with "ghost" messages running:
ActiveMQ 5.6 running KahaDB and Camel 2.9.2

These "ghost" messages appears to be pending, but when we try to consume or
browse them, they are gone.
Fortunately they reappear when we restart the broker.
In the past six month we have only got three of these messages in
production, so it has been very hard to debug these.

We tried to test:
ActiveMQ 5.7 running LevelDB and Camel 2.10.2

And now we can reproduce this "ghost" message almost every time running this

	public static void main(String[] args) throws Exception {
		DefaultCamelContext context = new DefaultCamelContext();
		send(context, 4000);
		read(context, 4000);

	private static void send(DefaultCamelContext context, int count) throws
Exception {
		ProducerTemplate producer = context.createProducerTemplate();
		for (int i=1; i<=count; i++) {

	private static void read(DefaultCamelContext context, int count) throws
Exception {
		ConsumerTemplate consumer = context.createConsumerTemplate();
		for (int i=1; i<=count; i++) {
			System.out.println("reciving: " + i);

Some keys to reproduce this problem is:
* LevelDB.
* Greater chance with more and larger messages.
* Produce all messages before starting to consume.

We can find similar questions about this issue but with older versions and
upgrading as the solution.

Should we just upgrade to:
ActiveMQ 5.7 running KahaDB and Camel 2.10.2
or are we doing something wrong?

Patrik Björk

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

View raw message