Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumer bring high CPU usage when close_cb not specified in connection constructor #58

Open
dizpers opened this issue Jul 10, 2014 · 1 comment

Comments

@dizpers
Copy link
Contributor

dizpers commented Jul 10, 2014

I use haigha.connections.rabbit_connection.RabbitConnection class to get connection instance. I have almost 100% CPU usage (with no messages in queues) when the following conditions are True:

  • there is no close_cb specified to connection
  • I try to self._channel.basic.consume(queue='bad_queue', consumer=self._consume) and bad_queue not in RabbitMQ in this moment
@awestendorf
Copy link
Member

Sorry for the long delay, it's been a busy summer of product launches.

Have you been able to isolate why this is happening, what it's spinning on? Are you using greenlets, or blocking sockets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants