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

Using php-amqplib with qpid attempts to allocate a lot of ram #2

Open
rrehbein opened this issue Jan 24, 2011 · 4 comments
Open

Using php-amqplib with qpid attempts to allocate a lot of ram #2

rrehbein opened this issue Jan 24, 2011 · 4 comments

Comments

@rrehbein
Copy link
Contributor

https://github.com/tnc/php-amqplib appears to have a bug described at http://code.google.com/p/php-amqplib/issues/detail?id=10

Attempted to use php-amqplib with qpid-java-0.8, and got an error message about php trying to allocate over 1GB of ram:

rrehbein@copper:~/dev/php-amqplib/demo$ php amqp_consumer.php

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1342243073 bytes) in /home/rrehbein/dev/php-amqplib/amqp_wire.inc on line 293

Call Stack:

0.0003 633424 1. {main}() /home/rrehbein/dev/php-amqplib/demo/amqp_consumer.php:0
0.0038 1251136 2. AMQPConnection->__construct() /home/rrehbein/dev/php-amqplib/demo/amqp_consumer.php:21
0.0044 1255768 3. AbstractChannel->wait() /home/rrehbein/dev/php-amqplib/amqp.inc:384
0.0045 1255768 4. AbstractChannel->next_frame() /home/rrehbein/dev/php-amqplib/amqp.inc:280
0.0045 1255768 5. AMQPConnection->wait_channel() /home/rrehbein/dev/php-amqplib/amqp.inc:176
0.0045 1255768 6. AMQPConnection->wait_frame() /home/rrehbein/dev/php-amqplib/amqp.inc:566
0.0066 1264376 7. AMQPReader->read() /home/rrehbein/dev/php-amqplib/amqp.inc:549
0.0066 1264376 8. AMQPReader->rawread() /home/rrehbein/dev/php-amqplib/amqp_wire.inc:283
0.0066 1264600 9. fread() /home/rrehbein/dev/php-amqplib/amqp_wire.inc:293

System:
Debian Lenny, 64-bit PHP 5.3

@sdasun
Copy link

sdasun commented Nov 26, 2012

I have same issue.

$ php amqp_test.php

Creating connection
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1342243073 bytes) in /var/www/html/services/lib/php-amqplib/amqp_wire.inc on line 303

@videlalvaro
Copy link
Collaborator

I haven't tested the library with AMQP

@sdasun
Copy link

sdasun commented Nov 27, 2012

I have local Mint box and work fine. The error is occur only in the CentOS 6 server.

@piotrplenik
Copy link

I have same problem with:

  • Ubuntu 13.10
  • qpidd package 0.16-7ubuntu4
  • php-amqplib tag "c5a72b5f7e32"

After run: php amqp_test.php

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

No branches or pull requests

4 participants