emqx / emqtt-bench

Lightweight MQTT benchmark tool written in Erlang
https://www.emqx.com
Apache License 2.0
511 stars 132 forks source link

The script runs out with errors #89

Open cxb1135139661 opened 3 years ago

cxb1135139661 commented 3 years ago

emqtt_bench pub -t t -h emqx-server -s 16 -q 0 -c 10 -I 10

=ERROR REPORT==== 2-Nov-2020::18:01:46.003333 === Error in process <0.113.0> with exit value: {function_clause,[{dtls_v1,corresponding_tls_version, ['tlsv1.3'], [{file,"dtls_v1.erl"},{line,55}]}, {dtls_v1,all_suites,1,[{file,"dtls_v1.erl"},{line,41}]}, {ssl,cipher_suites,2,[{file,"ssl.erl"},{line,987}]}, {emqtt_bench,'-all_ssl_ciphers/0-lc$^0/1-0-',1, [{file,"/opt/emqtt-bench/src/emqtt_bench.erl"}, {line,408}]}, {emqtt_bench,'-all_ssl_ciphers/0-lc$^0/1-0-',1, [{file,"/opt/emqtt-bench/src/emqtt_bench.erl"}, {line,408}]}, {emqtt_bench,all_ssl_ciphers,0, [{file,"/opt/emqtt-bench/src/emqtt_bench.erl"}, {line,408}]}, {emqtt_bench,ssl_opts,2, [{file,"/opt/emqtt-bench/src/emqtt_bench.erl"}, {line,398}]}, {emqtt_bench,connect,4, [{file,"/opt/emqtt-bench/src/emqtt_bench.erl"}, {line,302}]}]}

cxb1135139661 commented 3 years ago

Running other commands is the same error

cxb1135139661 commented 3 years ago

[root@clare-network emqtt-bench]# erl Erlang/OTP 22 [erts-10.4] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]

Eshell V10.4 (abort with ^G)

HJianBo commented 3 years ago

Hi @cxb1135139661 This looks to be a bug that does not support TLS 1.3. You can try to use OTP 22. for example 22.3 with a newer installation.

cxb1135139661 commented 3 years ago

The problem is solved. Thank you

HJianBo commented 3 years ago

Reopen the issue, it's probably a bug and we'll try to fix it.

cxb1135139661 commented 3 years ago

Why is the test number of a single server and single network adapter always less than 33 thousand.... There is optimization https://docs.emqx.net/broker/latest/cn/tutorial/tune.html

HJianBo commented 3 years ago

Hi @cxb1135139661 Try to the latest code from the master branch. It should be fixed

Loxchen commented 3 years ago

I got the same issue too

source code from latest master branch Erlang/OTP 21 [erts-10.2]

[lox@localhost emqtt-bench]$ ./emqtt_bench conn 192.168.56.102 -c 1 =ERROR REPORT==== 29-Dec-2020::10:29:28.813638 === Error in process <0.98.0> with exit value: {function_clause,[{dtls_v1,corresponding_tls_version, ['tlsv1.3'], [{file,"dtls_v1.erl"},{line,55}]}, {dtls_v1,all_suites,1,[{file,"dtls_v1.erl"},{line,41}]}, {ssl,cipher_suites,2,[{file,"ssl.erl"},{line,478}]}, {emqtt_bench,'-all_ssl_ciphers/0-lc$^0/1-0-',1, [{file,"/home/lox/emq-build/emqtt-bench/src/emqtt_bench.erl"}, {line,437}]}, {emqtt_bench,'-all_ssl_ciphers/0-lc$^0/1-0-',1, [{file,"/home/lox/emq-build/emqtt-bench/src/emqtt_bench.erl"}, {line,437}]}, {emqtt_bench,all_ssl_ciphers,0, [{file,"/home/lox/emq-build/emqtt-bench/src/emqtt_bench.erl"}, {line,437}]}, {emqtt_bench,ssl_opts,2, [{file,"/home/lox/emq-build/emqtt-bench/src/emqtt_bench.erl"}, {line,427}]}, {emqtt_bench,connect,4, [{file,"/home/lox/emq-build/emqtt-bench/src/emqtt_bench.erl"}, {line,308}]}]}

Loxchen commented 3 years ago

when I upgraded the erlang env to esl-erlang_23.2.1, and rebuilt, it worked fine

CH1NL1ANG commented 3 years ago

我安裝的otp_src_23.3.tar.gz这个版本,仍然存在此问题 image

HJianBo commented 3 years ago

@CH1NL1ANG Could update the latest codes from master branch, and try it again