[rabbitmq-discuss] High cpu usage for Java RabbitMQ client?

Elsner, Robert Robert.Elsner at echostar.com
Tue Mar 24 23:08:36 GMT 2009


I have implemented the Basic.Qos to limit to 10 the prefetch size.  All
of my messages are marked as immediate, so that if a client gets backed
up, my understanding is that the message will be silently dropped for
that queue.  This seems to be the case, if I add a queue but do not
consume messages, the broker does not continually consume extra memory.

The broker is from the mercurial repository, the last status that hg
info reports is this:

changeset:   922:e4c723649145
branch:      bug19356
tag:         tip
parent:      921:1f4653fa63c9
parent:      853:1c307e454a52
user:        Essien Ita Essien <essiene at gmail.com>
date:        Thu Feb 19 08:46:15 2009 +0100
summary:     Merge with upstream default

The java client is from the same pull, on the same day.

All of these are running on Linux, generally Ubuntu (my development box)
but I setup the broker to run on Debian 5.0.  JVM version build

I can reduce the code to a simple example.  The outline is basically I
have a few runnable's that open a channel, perform QoS, open an
exchange, and bind a queue.  They then sit in a loop using
.nextDelivery() from the QueueingConsumer.

> Also, do the stack traces you get from sending the JVM a QUIT 
> signal offer any clues? Feel free to post them here.


I will follow up with some equivalent code samples later, I'm just
trying to narrow down where the problem is, and prefer to not waste too
much time from other people if no one has seen this issue but me.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stack_traces.txt
Url: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20090324/373d653f/attachment.txt 

More information about the rabbitmq-discuss mailing list