Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive fwrite error exception #19

Closed
ghost opened this issue Dec 15, 2011 · 5 comments
Closed

Receive fwrite error exception #19

ghost opened this issue Dec 15, 2011 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 15, 2011

Hi,
I wrote some producer/consumer commands in sf2, and when I excuted a certain producer command,
I continuously receive the following error exception:

[ErrorException]                                                                                                                                              
  Notice: fwrite(): send of 10 bytes failed with errno=11 Resource temporarily unavailable in /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AMQPConnection.php line 141  






PHP Fatal error:  Uncaught exception 'Exception' with message 'Error reading data. Recevived 0 instead of expected 1 bytes' in /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php:64
Stack trace:
#0 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(95): PhpAmqpLib\Wire\AMQPReader->rawread(1)
#1 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AMQPConnection.php(260): PhpAmqpLib\Wire\AMQPReader->read_octet()
#2 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AMQPConnection.php(280): PhpAmqpLib\Connection\AMQPConnection->wait_frame()#3 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(119): PhpAmqpLib\Connection\AMQPConnection->wait_channel(0)
#4 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(225): PhpAmqpLib\Channel\AbstractChannel->next_frame()#5 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AMQPConnection.php(321): PhpAmq in /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php on line 64
Fatal error: Uncaught exception 'Exception' with message 'Error reading data. Recevived 0 instead of expected 1 bytes' in /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php:64 
Stack trace:
#0 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php(95): PhpAmqpLib\Wire\AMQPReader->rawread(1) #1 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AMQPConnection.php(260): PhpAmqpLib\Wire\AMQPReader->read_octet()
#2 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AMQPConnection.php(280): PhpAmqpLib\Connection\AMQPConnection->wait_frame()
#3 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(119): PhpAmqpLib\Connection\AMQPConnection->wait_channel(0)
#4 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Channel/AbstractChannel.php(225): PhpAmqpLib\Channel\AbstractChannel->next_frame()
#5 /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AMQPConnection.php(321): PhpAmq in /root/convert_src/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/AMQPReader.php on line 64

It would throw exception until it had published about 88000 or above messages,

Thanks in advanced.

@ghost
Copy link
Author

ghost commented Dec 19, 2011

BTW, at first I thought it was msg_store_file size too small to contain too much messages,
so I altered the rabbitmq.config as below:

[
    {rabbit, [{msg_store_file_size_limit, [1677721600]}]}
].

which is 100 times of default size, but it still didn't work.
Any help would be appreciated!

@videlalvaro
Copy link
Collaborator

I've just published 100k messages without problems. How could we try to reproduce this?

@igrizzli
Copy link
Contributor

Likely you don't have enough memory on your server.

notrix pushed a commit to GlobalHop/RabbitMqBundle that referenced this issue Sep 4, 2020
* push code coverage to scrutinizer
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@ramunasd
Copy link
Member

This looks like library exception. Please report issue there if it still occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants