duanjiaolao1187 2018-11-08 08:45
浏览 177
已采纳

PHP,RabbitMQ消息到bit fwrite异常

i'm using rabbitMQ in centos, and i encounter error when i try to sent message that exceeds ~120kb then i have php exception

In StreamIO.php line 301:

fwrite(): send of 568 bytes failed with errno=11 Resource temporarily unavailable 

with messages that are lighter all is ok, my rabbitmqctl status is this

[{pid,15256},
{running_applications,
    [{rabbitmq_management,"RabbitMQ Management Console","3.7.8"},
    {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.7.8"},
    {rabbitmq_management_agent,"RabbitMQ Management Agent","3.7.8"},
    {rabbit,"RabbitMQ","3.7.8"},
    {mnesia,"MNESIA  CXC 138 12","4.15.5"},
    {amqp_client,"RabbitMQ AMQP Client","3.7.8"},
    {rabbit_common,
        "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
        "3.7.8"},
    {ranch_proxy_protocol,"Ranch Proxy Protocol Transport","1.5.0"},
    {cowboy,"Small, fast, modern HTTP server.","2.2.2"},
    {ranch,"Socket acceptor pool for TCP protocols.","1.5.0"},
    {ssl,"Erlang/OTP SSL application","9.0.3"},
    {public_key,"Public key infrastructure","1.6.2"},
    {cowlib,"Support library for manipulating Web protocols.","2.1.0"},
    {crypto,"CRYPTO","4.3.3"},
    {xmerl,"XML parser","1.3.18"},
    {asn1,"The Erlang ASN1 compiler version 5.0.7","5.0.7"},
    {inets,"INETS  CXC 138 49","7.0.2"},
    {os_mon,"CPO  CXC 138 46","2.4.6"},
    {recon,"Diagnostic tools for production use","2.3.2"},
    {jsx,"a streaming, evented json parsing toolkit","2.8.2"},
    {lager,"Erlang logging framework","3.6.3"},
    {goldrush,"Erlang event stream processor","0.1.9"},
    {compiler,"ERTS  CXC 138 10","7.2.6"},
    {syntax_tools,"Syntax tools","2.1.6"},
    {syslog,"An RFC 3164 and RFC 5424 compliant logging framework.","3.4.3"},
    {sasl,"SASL  CXC 138 11","3.2.1"},
    {stdlib,"ERTS  CXC 138 10","3.6"},
    {kernel,"ERTS  CXC 138 10","6.1"}]},
{os,{unix,linux}},
{erlang_version,
    "Erlang/OTP 21 [erts-10.1.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:64] [hipe]
"},
{memory,
    [{connection_readers,0},
    {connection_writers,0},
    {connection_channels,0},
    {connection_other,30524},
    {queue_procs,139620},
    {queue_slave_procs,0},
    {plugins,1935536},
    {other_proc,25754188},
    {metrics,202260},
    {mgmt_db,520784},
    {mnesia,80336},
    {other_ets,2764424},
    {binary,3185424},
    {msg_index,171784},
    {code,23286871},
    {atom,1131721},
    {other_system,10675296},
    {allocated_unused,13024272},
    {reserved_unallocated,0},
    {strategy,rss},
    {total,[{erlang,69878768},{rss,82661376},{allocated,82903040}]}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{http,15672,"::"}]},
{vm_memory_calculation_strategy,rss},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,3395312025},
{disk_free_limit,50000000},
{disk_free,44361175040},
{file_descriptors,
    [{total_limit,32668},
    {total_used,5},
    {sockets_limit,29399},
    {sockets_used,0}]},
{processes,[{limit,1048576},{used,388}]},
{run_queue,1},
{uptime,5178},
{kernel,{net_ticktime,60}}]

i'm new to rabbitmq so there is much that i don't know, so if anybody can help me, detecting what is not right

  • 写回答

1条回答 默认 最新

  • dongnei3634 2018-11-08 09:03
    关注

    This is a known issue in version 2.8.0 of PhpAmqpLib. The official recommendation is to fall back to 2.7.3 until it's resolved in 2.8.1.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog