[rabbitmq-discuss] High cpu usage for Java RabbitMQ client?
Matthias Radestock
matthias at lshift.net
Tue Mar 24 21:12:50 GMT 2009
Robert,
Elsner, Robert wrote:
> What I see is that even when nothing is being pushed onto the broker,
> the java client consumes approximately one CPU (90-105%) of a dual
> core machine. When I track this down, the trace outputs this:
>
> 2 31.92% 64.00% 16949 301403 java.net.SocketInputStream.socketRead0
>
> So even though there is no data (if I kill the producer) the client is
> still very very busy.
Are you sure this is not just due to the consumers catching up?
Is the broker idle when the above happens? It may be worth running the
test through the tracer (http://www.rabbitmq.com/examples.html#tracer)
to see whether there is any unusual traffic between the client and the
server.
What versions of the broker and client are you using? What O/S? What
version of the JVM? Would it possible for you to post your producer and
consumer code?
Also, do the stack traces you get from sending the JVM a QUIT signal
offer any clues? Feel free to post them here.
Regards,
Matthias.
More information about the rabbitmq-discuss
mailing list