java - spring-rabbit client using lots of cpu -


i running spring-boot application in ec2 on c3.large machine. initializes spring-rabbit client, starts own thread.

after profiling application using yourkit, see lot of time spent inside rabbit client thread, inside: com.rabbitmq.client.impl.amqconnection$mainloop.run() down in java.io.datastream.readunsignedbyte()

to me looks there while loop continuously blocks on getting input on socket rabbitmq server.

has run this? reading profiling results correctly? there way make amqp client non-blocking?

that code (com.rabbitmq.client) in underlying amqp-client (rabbitmq java client) code used spring amqp.

to me looks there while loop continuously blocks on getting input on socket rabbitmq server.

yes, when blocks waiting data, not use cpu - when data available method return. it's not spinning cpu waiting data.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -