Go to MQTT SERVER Performance test Report

Source: Internet
Author: User
Tags benchmark

Hardware environment:
Memory 4G
CPU4 Nuclear

Server and Port:
Apollo Port 61619
Mosquitto: Port 1884
ACTIVEMQ Port: 1883
Emqtt Port 1885

Test method
Concurrency test: Use Emqttd_benchmark on 192.168.6.156 to test each mqtt SERVER concurrency on 192.168.6.157
Message sending test: The local computer uses a PHP program to send 100,000 messages to each MQTT SERVER on 192.168.6.157 using a client connection.

Test time: 1 business days.

The default retain=0 non-persisted messages.

QoS0: At most one time the server interacts with the client 1 times.
QoS1: At least once the server interacts with the client 2 times.
QOS2: The server interacts with the client 4 times.

Test results:
Mosquitto:
Send Message: qos0:18.57 sec cpu:10%, qos1:86.9 second CPU 10%, qos2:157 seconds CPU 10%, retain=1 the values and retain=0 almost the same.
Concurrent connections: 1th time: 12000 Second 11000 3rd time 12200 CPU occupied 25% or so
High stability

Apollo:
Send message: QoS0 18.37 sec CPU 30%, QoS1 215 sec cpu40%, QoS2: timeout
Concurrent connections: 1th 11000 2nd time 12200 3rd time 15200 4th times 13900 cpu:45%

ActiveMQ:
Send message: QoS0 18.41 Second CPU 50%, QoS1 timeout
Concurrent connections: 1th time 28200 2nd time 28000 has 2 tests after service crashes cpu:70%

EMQTT:
Send Message: QoS0 66 sec cpu:80%, QoS1 204 sec. cpu:55%
Concurrent Connections 27600 Second 19000 3rd time 28200 4th time 28200 CPU 70%
High stability
—-

In the test, it was found that Mosquitto could not take advantage of multicore, EMQTT disk IO was high, and ACTIVEMQ accounted for high memory.

Later found to be the cause of the benchmark program, can not be high concurrency, multiple open benchmark program to execute together, then more than doubled the results of the concurrency
Conclusion: Emqtt, the highest concurrency, but high CPU consumption, stability. Message sending is slow.
Moqtuitto, high stability, low CPU consumption, high concurrency, fast message delivery.
The other 2 stability is not too high.

The above data is for reference only.

Transferred from: 78352641?utm_source=copy

Go to MQTT SERVER Performance test Report

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.