[SQS performance] High CPU usage #4470
Unanswered
dungvv-qsoft
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions