[Bug]: High CPU usage #416
-
Describe the bug- Issue: High cpu usage Testing on the local server to be able to generate flame graph With Queue enabled, It shows the initial spike is too high on resources occupied This is non queue test, the initial spike is not too high compared with queue turning on: Evidence: Testing on our production server Queue on: (CPU/Ram usage graph - From 3:20 - 3:30) Queue off: (CPU/Ram usage graph - From 4:15 to 4:30) Your minimal, reproducible exampleNone Steps to reproduceTry to run a stress test on the api that using sqs-consumer lib -> The CPU usage increase significantly (It's not that high if we turn off the queue) Expected behaviorCPU usage should be not high compared when turn off queue (with the same traffic) How often does this bug happen?Every time Screenshots or VideosNo response Platform
Package versionv5.7.0 AWS SDK versionv2.1106.0 Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I'm going to convert this to a discussion as without a proper reproduction, there's no task for us here. For a bug ticket, we'd need exactly the area that SQS Consumer is actually responsible and there are a few other variables at play here including how you are using SQS Consumer, what your infrastructure setup is, the aws-sdk library, etc, etc. Feel free to raise an issue if you ever pin point the issue and it is with SQS Consumer. |
Beta Was this translation helpful? Give feedback.
-
code snippet to initialize the sqs-consumer
|
Beta Was this translation helpful? Give feedback.
I'm going to convert this to a discussion as without a proper reproduction, there's no task for us here.
For a bug ticket, we'd need exactly the area that SQS Consumer is actually responsible and there are a few other variables at play here including how you are using SQS Consumer, what your infrastructure setup is, the aws-sdk library, etc, etc.
Feel free to raise an issue if you ever pin point the issue and it is with SQS Consumer.