版本说明
otp_win64_20.3
rabbitmq-server-3.7.4
崩溃日志
crash.log.1
2023-03-26 16:43:10 =ERROR REPORT====
** Generic server rabbit_mgmt_external_stats terminating
** Last message in was emit_update
** When Server state == {state,8192,[{{io_file_handle_open_attempt,count},37314},{{io_file_handle_open_attempt,time},141000},{{io_read,bytes},1},{{io_read,count},1},{{io_read,time},0},{{io_reopen,count},0},{{io_seek,count},0},{{io_seek,time},0},{{io_sync,count},0},{{io_sync,time},0},{{io_write,bytes},0},{{io_write,count},0},{{io_write,time},0},{{mnesia_disk_tx,count},29},{{mnesia_ram_tx,count},189788},{{msg_store_read,count},0},{{msg_store_write,count},0},{{queue_index_journal_write,count},0},{{queue_index_read,count},0},{{queue_index_write,count},0}],{set,0,16,16,8,80,48,{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}},undefined,5000}
** Reason for termination ==
** {badarg,[{erlang,port_command,[#Port<0.7254538>,[]],[{file,"erlang.erl"},{line,3050}]},{os,cmd,2,[{file,"os.erl"},{line,253}]},{rabbit_mgmt_external_stats,get_used_fd,1,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,133}]},{rabbit_mgmt_external_stats,get_used_fd,0,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,61}]},{rabbit_mgmt_external_stats,'-infos/2-lc$^0/1-0-',2,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,175}]},{rabbit_mgmt_external_stats,emit_update,1,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,364}]},{rabbit_mgmt_external_stats,handle_info,2,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,351}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,616}]}]}
2023-03-26 16:43:10 =CRASH REPORT====
crasher:
initial call: rabbit_mgmt_external_stats:init/1
pid: <0.447.0>
registered_name: rabbit_mgmt_external_stats
exception error: bad argument: [{erlang,port_command,[#Port<0.7254538>,[]],[{file,"erlang.erl"},{line,3050}]},{os,cmd,2,[{file,"os.erl"},{line,253}]},{rabbit_mgmt_external_stats,get_used_fd,1,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,133}]},{rabbit_mgmt_external_stats,get_used_fd,0,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,61}]},{rabbit_mgmt_external_stats,'-infos/2-lc$^0/1-0-',2,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,175}]},{rabbit_mgmt_external_stats,emit_update,1,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,364}]},{rabbit_mgmt_external_stats,handle_info,2,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,351}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,616}]}]
ancestors: [rabbit_mgmt_agent_sup,rabbit_mgmt_agent_sup_sup,<0.436.0>]
message_queue_len: 1
messages: [{'DOWN',#Ref<0.1380603317.146538498.80462>,port,#Port<0.7254538>,normal}]
links: [<0.438.0>]
dictionary: [{logged_used_fd_error,true}]
trap_exit: false
status: running
heap_size: 4185
stack_size: 27
reductions: 6795153244
neighbours:
2023-03-26 16:43:10 =SUPERVISOR REPORT====
Supervisor: {local,rabbit_mgmt_agent_sup}
Context: child_terminated
Reason: {badarg,[{erlang,port_command,[#Port<0.7254538>,[]],[{file,"erlang.erl"},{line,3050}]},{os,cmd,2,[{file,"os.erl"},{line,253}]},{rabbit_mgmt_external_stats,get_used_fd,1,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,133}]},{rabbit_mgmt_external_stats,get_used_fd,0,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,61}]},{rabbit_mgmt_external_stats,'-infos/2-lc$^0/1-0-',2,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,175}]},{rabbit_mgmt_external_stats,emit_update,1,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,364}]},{rabbit_mgmt_external_stats,handle_info,2,[{file,"src/rabbit_mgmt_external_stats.erl"},{line,351}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,616}]}]}
Offender: [{pid,<0.447.0>},{id,rabbit_mgmt_external_stats},{mfargs,{rabbit_mgmt_external_stats,start_link,[]}},{restart_type,permanent},{shutdown,5000},{child_type,worker}]
服务日志
rabbit@WIN-T8RC01SUP16.log
2023-03-26 16:43:10.525 [warning] <0.970.35> Could not find handle.exe, please install from sysinternals
2023-03-26 16:58:15.219 [info] <0.1372.35> accepting AMQP connection <0.1372.35> (35.80.200.247:61268 -> 35.46.5.57:5672)
分析
服务日志中有将近15分钟的崩溃中断
暂时解决方案
升级到最新稳定的RabbitMQ服务版本