Bench only one 1 cpu per time #1439
Replies: 3 comments 3 replies
-
Hi @ducanh2110, the MQTTX CLI is built on Node.js, which is inherently single-threaded, so by default, it won't utilize all CPU cores. We've recognized this limitation and plan to investigate ways to improve connection performance and count in future updates. Meanwhile, could you share more details about your current use case with the bench and the maximum connections you're achieving? It will help us benchmark and see where improvements can be made—apologies for the delayed response, and thanks for your feedback. |
Beta Was this translation helpful? Give feedback.
-
Hi @ysfscream . We are aiming for create more than 15k ccu by the bench. We are using emqtt-bench but it bench with wss. We want to bench with wss |
Beta Was this translation helpful? Give feedback.
-
Hi @ducanh2110 . I spent some time implementing the ability to enable multi-processes in the Unfortunately, it seems that there is no good way in Node.js to limit CPU usage to simulate reaching the bottleneck of a single process. This may require system-level restrictions, but unfortunately, I don't have a suitable testing environment at hand to test it. If you are interested, I can share with you an installation package for testing with this feature. I hope you can share your test results as well. |
Beta Was this translation helpful? Give feedback.
-
I am doing bench with mqttx but when I use top command to see only 1 CPU usage. Not all of my CPU. Anw to raise all cpu being used to make more connection?
Beta Was this translation helpful? Give feedback.
All reactions