Emqx: Crash for high load

Created on 20 Jan 2017  路  3Comments  路  Source: emqx/emqx

Environment

  • OS: centos 6.5
  • Erlang/OTP: 19/8.2
  • EMQ: 2.0.5

Description

2017-01-20 22:27:11 =ERROR REPORT====
* Generic server <0.2562.263> terminating
*
Last message in was {inet_async,#Port<0.5082058>,56318,{ok,<<16,32,0,6,77,81,73,115,100,112,3,0,0,20,0,18,48,54,48,48,49,48,49,48,48,48,48,48,55,57,53,53,51,53>>}}
* When Server state == {client_state,{esockd_connection,[#Port<0.5082058>,#Fun,[]]},["42.233.31.10",58,"34161"],{{42,233,31,10},34161},{42,233,31,10},34161,true,running,undefined,#Fun,{proto_state,{{42,233,31,10},34161},#Fun,false,undefined,<0.2562.263>,undefined,undefined,undefined,undefined,false,undefined,undefined,1024,undefined,undefined,undefined},[{max_clientid_len,1024},{max_packet_size,65536},{client_idle_timeout,30}],undefined,undefined}
*
Reason for termination ==
** {{timeout,{gen_server2,call,[<0.3146.0>,{start_session,false,{<<"060010100000795535">>,undefined},<0.2562.263>},120000]}},[{gen_server2,call,3,[{file,"src/gen_server2.erl"},{line,340}]},{emqttd_protocol,process,2,[{file,"src/emqttd_protocol.erl"},{line,168}]},{emqttd_client,received,2,[{file,"src/emqttd_client.erl"},{line,264}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,601}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,667}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
2017-01-20 22:27:11 =CRASH REPORT====
crasher:
initial call: emqttd_client:init/1
pid: <0.5792.256>
registered_name: []
exception exit: {{timeout,{gen_server2,call,[<0.3134.0>,{start_session,false,{<<"060116100001172118">>,undefined},<0.5792.256>},120000]}},[{gen_server,terminate,7,[{file,"gen_server.erl"},{line,812}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,247}]}]}
ancestors: [<0.3207.0>,<0.3206.0>,esockd_sup,<0.2024.0>]
messages: [{inet_async,#Port<0.5166589>,56073,{error,closed}}]
links: [<0.3207.0>]
dictionary: []
trap_exit: false
status: running
heap_size: 987
stack_size: 27
reductions: 604
neighbours:

Most helpful comment

Can You please provide the solution .
I am also facing the same error

All 3 comments

閿欒鏃ュ織2017-01-20 22:26:47.315 [error] <0.13826.262> CRASH REPORT Process <0.13826.262> with 0 neighbours exited with reason: {timeout,{gen_server2,call,[<0.3153.0>,{start_session,false,{<<"060011100000521438">>,undefined},<0.13826.262>},120000]}} in gen_server:terminate/7 line 812
2017-01-20 22:26:47.315 [error] <0.2161.263> CRASH REPORT Process <0.2161.263> with 0 neighbours exited with reason: {timeout,{gen_server2,call,[<0.3157.0>,{start_session,false,{<<"060177100001807449">>,undefined},<0.2161.263>},120000]}} in gen_server:terminate/7 line 812
2017-01-20 22:26:47.315 [error] <0.3207.0> Supervisor 'esockd_connection_sup - <0.3207.0>' had child connection started with emqttd_client:start_link([{max_clientid_len,1024},{max_packet_size,65536},{client_idle_timeout,30}]) at <0.13826.262> exit with reason {timeout,{gen_server2,call,[<0.3153.0>,{start_session,false,{<<"060011100000521438">>,undefined},<0.13826.262>},120000]}} in context connection_crashed
2017-01-20 22:26:47.315 [error] <0.26359.262> CRASH REPORT Process <0.26359.262> with 0 neighbours exited with reason: {timeout,{gen_server2,call,[<0.3125.0>,{start_session,false,{<<"060116100000339528">>,undefined},<0.26359.262>},120000]}} in gen_server:terminate/7 line 812
2017-01-20 22:26:47.315 [error] <0.3207.0> Supervisor 'esockd_connection_sup - <0.3207.0>' had child connection started with emqttd_client:start_link([{max_clientid_len,1024},{max_packet_size,65536},{client_idle_timeout,30}]) at <0.2161.263> exit with reason {timeout,{gen_server2,call,[<0.3157.0>,{start_session,false,{<<"060177100001807449">>,undefined},<0.2161.263>},120000]}} in context connection_crashed
2017-01-20 22:26:47.315 [error] <0.3207.0> Supervisor 'esockd_connection_sup - <0.3207.0>' had child connection started with emqttd_client:start_link([{max_clientid_len,1024},{max_packet_size,65536},{client_idle_timeout,30}]) at <0.26359.262> exit with reason {timeout,{gen_server2,call,[<0.3125.0>,{start_session,false,{<<"060116100000339528">>,undefined},<0.26359.262>},120000]}} in context connection_crashed
2017-01-20 22:26:47.315 [error] <0.31899.262> gen_server <0.31899.262> terminated with reason: {timeout,{gen_server2,call,[<0.3150.0>,{start_session,false,{<<"060177100000917551">>,undefined},<0.31899.262>},120000]}} in gen_server2:call/3 line 340

Invalid issue, closed

Can You please provide the solution .
I am also facing the same error

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbrzozoski picture jbrzozoski  路  4Comments

rootqa picture rootqa  路  3Comments

heyoka picture heyoka  路  3Comments

nerdial picture nerdial  路  3Comments

stefano055415 picture stefano055415  路  4Comments