Skip to content
New issue

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

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

Already on GitHub? # to your account

JNAMessageQueue#take has excessive CPU usage #405

Open
jesse-gallagher opened this issue Jan 31, 2024 · 1 comment
Open

JNAMessageQueue#take has excessive CPU usage #405

jesse-gallagher opened this issue Jan 31, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jesse-gallagher
Copy link
Collaborator

When using JNAMessageQueue#take as part of a server addin, I found that it kept the CPU core it was running on at about 50% usage when idle. To test the alternate case, I made a get(long, TimeUnit) alternative method that uses MQGet instead of MQScan, and that sits at essentially 0% usage at all times. MQScan may be superior for some cases, but it'd make sense to replace methods like #take with MQGet-based implementations.

@jesse-gallagher jesse-gallagher added the bug Something isn't working label Jan 31, 2024
@jesse-gallagher
Copy link
Collaborator Author

Hmm, not just CPU - looks like it rapidly consumes memory, too, going from an expected baseline of about 200MB to 750MB in less than a minute, and continuing from there.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant