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

CoreMessageReceiver.returnMesagesLoopDaemon is being executed too often causing higher CPU consumption #405

Open
ertwroc opened this issue Jul 23, 2020 · 0 comments
Assignees

Comments

@ertwroc
Copy link

ertwroc commented Jul 23, 2020

Actual Behavior

CoreMessageReceiver.returnMesagesLoopDaemon is scheduled to be executed every millisecond even if there are neither prefetched messages nor pending receivers, causing unnecessary higher CPU usage.

Expected Behavior

Solution to this could be to use blocking queue and its take() method or poll(time, unit) instead of poll() for prefetchedMessages and pendingReceives collections.

Versions

  • OS platform and version: Windows 10 enterprise
  • Maven package version or commit ID: 3.2.0 (related code looks the same as in version 3.4.0)
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