这个rabbitmq服务器有大约1,000 msg /秒 在nodejs和php中编写了多个微服务。 但是对于php应用程序,我们有时会遇到问题,这个警告
stream_socket_client(): unable to connect to tcp://RABBITSERVER:5672 (Connection timed out)
每天几次。但我预计它将为零。
我应该从哪里开始调试?
在rabbitmq startup_log
中,它会被跟踪日志
Error in log handler
====================
Event: {info_report,<0.186.0>,
{<0.26822.90>,progress,
[{supervisor,{<0.26822.90>,rabbit_channel_sup}},
{started,
[{pid,<0.26869.90>},
{name,limiter},
{mfargs,
{rabbit_limiter,start_link,
[{<<"54.169.1.173:52562 -> 128.199.88.0:5"...>>,
1}]}},
{restart_type,transient},
{shutdown,4294967295},
{child_type,worker}]}]}}
Error: function_clause
Stack trace: [{error_logger_file_h,write_event,
[{<0.1097.0>,"/var/log/rabbitmq/rabbit@rabbit-1.log",[]},
{info_report,<0.186.0>,
{<0.26822.90>,progress,
[{supervisor,{<0.26822.90>,rabbit_channel_sup}},
{started,
[{pid,<0.26869.90>},
{name,limiter},
{mfargs,
{rabbit_limiter,start_link,
[{<<"54.169.1.173:52562 -> 128.199.88.0:5672">>,
1}]}},
{restart_type,transient},
{shutdown,4294967295},
{child_type,worker}]}]}}],
[{file,"error_logger_file_h.erl"},{line,113}]},
{error_logger_file_h,handle_event,2,
[{file,"error_logger_file_h.erl"},{line,78}]},
{rabbit_error_logger_file_h,safe_handle_event,3,[]},
{gen_event,server_update,4,[{file,"gen_event.erl"},{line,522}]},
{gen_event,server_notify,4,[{file,"gen_event.erl"},{line,504}]},
{gen_event,server_notify,4,[{file,"gen_event.erl"},{line,506}]},
{gen_event,handle_msg,5,[{file,"gen_event.erl"},{line,266}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]
Error in log handler
====================
Event: {info_report,<0.186.0>,
{<0.26822.90>,progress,
[{supervisor,{<0.26822.90>,rabbit_channel_sup}},
{started,
[{pid,<0.26841.90>},
{name,channel},
{mfargs,
{rabbit_channel,start_link,
[1,<0.26838.90>,<0.26783.90>,<0.26838.90>,
<<"54.169.1.173:52562 -> 12"...>>,
rabbit_framing_amqp_0_9_1,
{user,<<"sitemind"...>>,[administrator],[...]},
<<"/">>,
[{<<...>>,...},{...}|...],
<0.26844.90>,<0.26869.90>]}},
{restart_type,intrinsic},
{shutdown,4294967295},
{child_type,worker}]}]}}
Error: function_clause
Stack trace: [{error_logger_file_h,write_event,
[{<0.1097.0>,"/var/log/rabbitmq/rabbit@rabbit-1.log",[]},
{info_report,<0.186.0>,
{<0.26822.90>,progress,
[{supervisor,{<0.26822.90>,rabbit_channel_sup}},
{started,
[{pid,<0.26841.90>},
{name,channel},
{mfargs,
{rabbit_channel,start_link,
[1,<0.26838.90>,<0.26783.90>,<0.26838.90>,
<<"54.169.1.173:52562 -> 128.199.88.0:5672">>,
rabbit_framing_amqp_0_9_1,
{user,<<"siteminder">>,
[administrator],
[{rabbit_auth_backend_internal,none}]},
<<"/">>,
[{<<"authentication_failure_close">>,bool,true},
{<<"publisher_confirms">>,bool,true},
{<<"consumer_cancel_notify">>,bool,true},
{<<"exchange_exchange_bindings">>,bool,true},
{<<"basic.nack">>,bool,true},
{<<"connection.blocked">>,bool,true}],
<0.26844.90>,<0.26869.90>]}},
{restart_type,intrinsic},
{shutdown,4294967295},
{child_type,worker}]}]}}],
[{file,"error_logger_file_h.erl"},{line,113}]},
{error_logger_file_h,handle_event,2,
[{file,"error_logger_file_h.erl"},{line,78}]},
{rabbit_error_logger_file_h,safe_handle_event,3,[]},
{gen_event,server_update,4,[{file,"gen_event.erl"},{line,522}]},
{gen_event,server_notify,4,[{file,"gen_event.erl"},{line,504}]},
{gen_event,server_notify,4,[{file,"gen_event.erl"},{line,506}]},
{gen_event,handle_msg,5,[{file,"gen_event.erl"},{line,266}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]
我使用的是rabbitmq服务器版本3.5.4
我服务器中的erlang是R16B03-1
我可以调整任何调整吗?应该在服务器或rabbitmq服务中进行调整。
请告知。