[SQS performance] High CPU usage #4471
Labels
bug
This issue is a bug.
investigating
Issue has been looked at and needs deep dive work by OSDS.
p2
This is a standard priority issue
Describe the bug
We are facing with an issue when turn on SQS on our server which is they use 100% of the available CPU compared around 60% when turn off queue (with the same traffic).
We run a profiler:
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:
.cpuprofile
and.text
report files for 2 cases (turn on/off queue when do stress test)https://github.com/dungvv-qsoft/cpu-profile
On our production server
Queue on: (CPU/Ram usage graph - From 3:20 - 3:30)
Maximum average CPU usage is almost 100%
Queue off: (CPU/Ram usage graph - From 4:15 to 4:30)
Maximum average CPU usage is around 60%
Environment
Node version: v16.20.1
AWS-SDK version: v2.1106.0
SQS-Consumer version: v5.7.0
Snippet to initialize SQS consumer
Expected Behavior
CPU usage should be not high compared when turn off queue (with the same traffic)
Current Behavior
We are facing with an issue when turn on SQS on our server which is they use 100% of the available CPU compared around 60% when turn off queue (with the same traffic).
Reproduction Steps
Try 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)
Possible Solution
No response
Additional Information/Context
No response
SDK version used
v2.1106.0
Environment details (OS name and version, etc.)
Fargate
The text was updated successfully, but these errors were encountered: