PHP, RabbitMQ message to bit fwrite exception
up vote
0
down vote
favorite
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]n"},
{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
php rabbitmq
add a comment |
up vote
0
down vote
favorite
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]n"},
{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
php rabbitmq
1
This is a known issue in version 2.8.0 of PhpAmqpLib. The recommendation is to fall back to 2.7.3 until it's resolved in 2.8.1.
– Sebastian Lenartowicz
Nov 8 at 8:52
@SebastianLenartowicz add this as answer to i could mark it as it
– Viszman
Nov 8 at 8:59
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@Luke Bakken I'll test it tomorrow
– Viszman
Nov 8 at 16:23
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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]n"},
{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
php rabbitmq
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]n"},
{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
php rabbitmq
php rabbitmq
asked Nov 8 at 8:45
Viszman
64911133
64911133
1
This is a known issue in version 2.8.0 of PhpAmqpLib. The recommendation is to fall back to 2.7.3 until it's resolved in 2.8.1.
– Sebastian Lenartowicz
Nov 8 at 8:52
@SebastianLenartowicz add this as answer to i could mark it as it
– Viszman
Nov 8 at 8:59
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@Luke Bakken I'll test it tomorrow
– Viszman
Nov 8 at 16:23
add a comment |
1
This is a known issue in version 2.8.0 of PhpAmqpLib. The recommendation is to fall back to 2.7.3 until it's resolved in 2.8.1.
– Sebastian Lenartowicz
Nov 8 at 8:52
@SebastianLenartowicz add this as answer to i could mark it as it
– Viszman
Nov 8 at 8:59
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@Luke Bakken I'll test it tomorrow
– Viszman
Nov 8 at 16:23
1
1
This is a known issue in version 2.8.0 of PhpAmqpLib. The recommendation is to fall back to 2.7.3 until it's resolved in 2.8.1.
– Sebastian Lenartowicz
Nov 8 at 8:52
This is a known issue in version 2.8.0 of PhpAmqpLib. The recommendation is to fall back to 2.7.3 until it's resolved in 2.8.1.
– Sebastian Lenartowicz
Nov 8 at 8:52
@SebastianLenartowicz add this as answer to i could mark it as it
– Viszman
Nov 8 at 8:59
@SebastianLenartowicz add this as answer to i could mark it as it
– Viszman
Nov 8 at 8:59
Please take the time to test
v2.8.1-rc3! Thank you.– Luke Bakken
Nov 8 at 16:06
Please take the time to test
v2.8.1-rc3! Thank you.– Luke Bakken
Nov 8 at 16:06
1
1
@Luke Bakken I'll test it tomorrow
– Viszman
Nov 8 at 16:23
@Luke Bakken I'll test it tomorrow
– Viszman
Nov 8 at 16:23
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
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.
1
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@LukeBakken i tested it in previous env and it seems that problem is resolved
– Viszman
Nov 9 at 5:42
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
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.
1
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@LukeBakken i tested it in previous env and it seems that problem is resolved
– Viszman
Nov 9 at 5:42
add a comment |
up vote
0
down vote
accepted
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.
1
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@LukeBakken i tested it in previous env and it seems that problem is resolved
– Viszman
Nov 9 at 5:42
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
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.
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.
answered Nov 8 at 9:03
Sebastian Lenartowicz
3,75441834
3,75441834
1
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@LukeBakken i tested it in previous env and it seems that problem is resolved
– Viszman
Nov 9 at 5:42
add a comment |
1
Please take the time to testv2.8.1-rc3! Thank you.
– Luke Bakken
Nov 8 at 16:06
1
@LukeBakken i tested it in previous env and it seems that problem is resolved
– Viszman
Nov 9 at 5:42
1
1
Please take the time to test
v2.8.1-rc3! Thank you.– Luke Bakken
Nov 8 at 16:06
Please take the time to test
v2.8.1-rc3! Thank you.– Luke Bakken
Nov 8 at 16:06
1
1
@LukeBakken i tested it in previous env and it seems that problem is resolved
– Viszman
Nov 9 at 5:42
@LukeBakken i tested it in previous env and it seems that problem is resolved
– Viszman
Nov 9 at 5:42
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204177%2fphp-rabbitmq-message-to-bit-fwrite-exception%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
This is a known issue in version 2.8.0 of PhpAmqpLib. The recommendation is to fall back to 2.7.3 until it's resolved in 2.8.1.
– Sebastian Lenartowicz
Nov 8 at 8:52
@SebastianLenartowicz add this as answer to i could mark it as it
– Viszman
Nov 8 at 8:59
Please take the time to test
v2.8.1-rc3! Thank you.– Luke Bakken
Nov 8 at 16:06
1
@Luke Bakken I'll test it tomorrow
– Viszman
Nov 8 at 16:23