RabbitMQ不定时宕机,求解

1. MQ突然与2022年03月26日 23点34分 宕机,宕机时候的服务器CUP和内存平均在30%左右,很稳定,无异常跳跃性波动。并且MQ的内存设置为0.66(上一次宕机是因为内存不够故服务器升配)距离上次宕机间隔16天,本次报错信息如下,请各位专业人士解惑:

日志摘要:

日志:operation none caused a connection exception connection_forced: "broker forced connection closure with reason 'shutdown'"

日志详情:

=ERROR REPORT==== 25-Mar-2022::23:23:19 ===
Error on AMQP connection <0.29011.539> (1x2.1x.xxx.1xx:xxxx -> 1x2.1x.1xx.1xx:5672, vhost: 'vhost_name', user: 'user_name', state: running), channel 0:
operation none caused a connection exception connection_forced: "broker forced connection closure with reason 'shutdown'"

=ERROR REPORT==== 25-Mar-2022::23:23:19 ===
** Generic server <0.2395.0> terminating
** Last message in was {notify_down,<0.2392.0>}
** When Server state == {q,
                         {amqqueue,
                          {resource,<<"data_platform">>,queue,
                           <<"celeryev.053b719a-1148-4cfb-85c2-27a3d22bbf5e">>},
                          false,true,none,
                          [{<<"x-expires">>,signedint,60000},
                           {<<"x-message-ttl">>,signedint,5000}],
                          <0.2395.0>,[],[],[],undefined,[],[],live,0},
                         none,true,rabbit_priority_queue,
                         {passthrough,rabbit_variable_queue,
                          {vqstate,
                           {0,{[],[]}},
                           {0,{[],[]}},
                           {delta,undefined,0,undefined},
                           {0,{[],[]}},
                           {0,{[],[]}},
                           0,
                           {0,nil},
                           {0,nil},
                           {0,nil},
                           {qistate,
                            "/var/lib/rabbitmq/mnesia/rabbit@iz2zei0q7nfqv5n4isz6zuz/queues/BHEAUBUPLVAT7WTE0EEMS0EZO",
                            {{dict,0,16,16,8,80,48,
                              {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                               []},
                              {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                []}}},
                             []},
                            undefined,0,32768,
                            #Fun<rabbit_variable_queue.2.112251677>,
                            #Fun<rabbit_variable_queue.3.112251677>,
                            {0,nil},
                            {0,nil},
                            [],[]},
                           {undefined,
                            {client_msstate,msg_store_transient,
                             <<246,118,24,234,3,186,51,234,188,81,74,10,75,33,
                               179,38>>,
                             {dict,0,16,16,8,80,48,
                              {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                               []},
                              {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                []}}},
                             {state,241739,
                              "/var/lib/rabbitmq/mnesia/rabbit@iz2zei0q7nfqv5n4isz6zuz/msg_store_transient"},
                             rabbit_msg_store_ets_index,
                             "/var/lib/rabbitmq/mnesia/rabbit@iz2zei0q7nfqv5n4isz6zuz/msg_store_transient",
                             <0.239.0>,245836,237642,249933,254030,
                             {2000,500}}},
                           false,0,4096,0,0,0,0,0,infinity,0,0,0,0,0,0,
                           {rates,0.0,0.0,0.0,0.0,1648221795373304},
                           {0,nil},
                           {0,nil},
                           {0,nil},
                           {0,nil},
                           0,0,0,0,2048,default,0}},
                         {state,{queue,[],[],0},{active,1646448627112084,1.0}},
                         60000,undefined,
                         {erlang,#Ref<0.0.1105.183758>},
                         undefined,
                         {state,fine,5000,#Ref<0.0.1105.183759>},
                         {0,nil},
                         5000,undefined,undefined,
                         {state,
                          {dict,26,16,16,8,80,48,
                           {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},
                           {{[[<0.2893.0>|#Ref<0.0.0.17023>],
                              [<0.16066.438>|#Ref<0.0.893.22650>]],
                             [[<0.2647.0>|#Ref<0.0.0.15454>],
                              [<0.1627.0>|#Ref<0.0.0.17868>]],
                             [[<0.2792.0>|#Ref<0.0.0.16732>]],
                             [[<0.1549.0>|#Ref<0.0.0.17761>],
                              [<0.2004.0>|#Ref<0.0.0.18290>],
                              [<0.2370.0>|#Ref<0.0.0.19033>]],
                             [],
                             [[<0.1647.0>|#Ref<0.0.0.17919>],
                              [<0.32279.538>|#Ref<0.0.1093.46752>]],
                             [],
                             [[<0.2868.0>|#Ref<0.0.0.17013>],
                              [<0.1386.0>|#Ref<0.0.0.17568>]],
                             [[<0.1419.0>|#Ref<0.0.0.17642>]],
                             [[<0.2783.0>|#Ref<0.0.0.16279>]],
                             [[<0.2839.0>|#Ref<0.0.0.16577>],
                              [<0.1780.0>|#Ref<0.0.0.18043>],
                              [<0.2258.0>|#Ref<0.0.0.18947>]],
                             [[<0.2490.0>|#Ref<0.0.0.14543>],
                              [<0.15814.438>|#Ref<0.0.893.10798>],
                              [<0.24388.536>|#Ref<0.0.1088.196715>]],
                             [[<0.2610.0>|#Ref<0.0.0.15217>],
                              [<0.7447.544>|#Ref<0.0.1103.206534>]],
                             [[<0.1998.0>|#Ref<0.0.0.18190>]],
                             [[<0.1050.0>|#Ref<0.0.0.17483>]],
                             [[<0.15905.438>|#Ref<0.0.893.17924>],
                              [<0.7187.544>|#Ref<0.0.1103.198940>]]}}},
                          delegate},
                         undefined,undefined,undefined,undefined,1,0,running}
** Reason for termination ==
** {{badmatch,{error,not_found}},
    [{rabbit_amqqueue_process,i,2,
                              [{file,"src/rabbit_amqqueue_process.erl"},
                               {line,905}]},
     {rabbit_amqqueue_process,'-infos/2-lc$^0/1-0-',2,
                              [{file,"src/rabbit_amqqueue_process.erl"},
                               {line,860}]},
     {rabbit_amqqueue_process,'-infos/2-lc$^0/1-0-',2,
                              [{file,"src/rabbit_amqqueue_process.erl"},
                               {line,860}]},
     {rabbit_amqqueue_process,emit_stats,2,
                              [{file,"src/rabbit_amqqueue_process.erl"},
                               {line,941}]},
     {rabbit_event,if_enabled,3,[{file,"src/rabbit_event.erl"},{line,137}]},
     {rabbit_amqqueue_process,'-terminate_delete/3-fun-1-',6,
                              [{file,"src/rabbit_amqqueue_process.erl"},
                               {line,285}]},
     {rabbit_amqqueue_process,terminate_shutdown,2,
                              [{file,"src/rabbit_amqqueue_process.erl"},
                               {line,309}]},
     {gen_server2,terminate,3,[{file,"src/gen_server2.erl"},{line,1129}]}]}
** In 'terminate' callback with reason ==
** normal

..............中间日志省略...........

=ERROR REPORT==== 25-Mar-2022::23:23:21 ===
** Generic server <0.2425.0> terminating
** Last message in was pre_hibernate
** When Server state == {q,
                         {amqqueue,
                          {resource,<<"vhost_name">>,queue,
                           <<"push_xx_xx_logs">>},
                          true,false,none,[],<0.2425.0>,[],[],[],undefined,[],
                          [],live,0},
                         none,true,rabbit_priority_queue,
                         {passthrough,rabbit_variable_queue,
                          {vqstate,
                           {0,{[],[]}},
                           {0,{[],[]}},
                           {delta,undefined,0,undefined},
                           {0,{[],[]}},
                           {70,
                            {[{msg_status,2186,
                               <<216,182,76,90,1,4,232,93,176,7,175,203,157,

.......

rabbit_framing_amqp_0_9_1,
                                 [<<"[[\"JlpayApi\", \"2101159520220325224001454861\"], {}, {\"callbacks\": null, \"errbacks\": null, \"chain\": null, \"chord\": null}]">>]},
                                <<216,182,76,90,1,4,232,93,176,7,175,203,157,
                                  253,40,45>>,
                                true},
                               true,true,false,true,queue_index,
                               {message_properties,undefined,false,119}},
                              {msg_status,2185,
                               <<59,23,220,237,133,77,202,251,2,82,246,53,214,
                                 224,251,171>>,
                               {basic_message,
                                {resource,<<"data_platform">>,exchange,<<>>},
                                [<<"push_merchant_vip_logs">>],
                                {content,60,
                                 {'P_basic',<<"application/json">>,
                                  <<"utf-8">>,
                                  [{<<"lang">>,longstr,<<"py">>},
                                   {<<"task">>,longstr,
                                    <<"application.celery_task.push_merchant_vip_log.push_merchant_vip_log">>},
                                   {<<"id">>,longstr,
                                    <<"73a1746e-941a-4cbc-a560-d8545b534dec">>},
                                   {<<"shadow">>,void,undefined},
                                   {<<"eta">>,longstr,
                                    <<"2022-03-26T00:29:59.494265+08:00">>},
                                   {<<"expires">>,void,undefined},
                                   {<<"group">>,void,undefined},
                                   {<<"retries">>,signedint,0},
                                   {<<"timelimit">>,array,[{'...'},{'...'}]},
                                   {<<"root_id">>,longstr,
                                    <<"315a9a8f-ccc2-4fcd-b6b1-8f78167d66b5">>},
                                   {<<"parent_id">>,longstr,
                                    <<"315a9a8f-ccc2-4fcd-b6b1-8f78167d66b5">>},
                                   {<<"argsrepr">>,longstr,
                                    <<"('JlpayApi', '2101159520220325210419453921')">>},
                                   {<<"kwargsrepr">>,longstr,<<"{}">>},
                                   {<<"origin">>,longstr,
                                    <<"gen29609@CrawlDataPlatform">>},
                                   {<<"sentry-trace">>,longstr,
                                    <<"00-86df403e536c4212bde7feb14ebb940c-923b5c0779ee67f2-00">>}],
                                  2,undefined,
                                  <<"73a1746e-941a-4cbc-a560-d8545b534dec">>,
                                  <<"b7635ffc-4356-3115-a505-3189802cc924">>,
                                  undefined,undefined,undefined,undefined,
                                  undefined,undefined,undefined},

这条日志长度在500行+

想请问MQ的大佬们,这种是情况问题会出现在哪里?给我定位的方向和大佬们的解决方案......

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值