-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
PushMonitor will consume up to whatever "memory_limit" is set to in php.ini and
then become unresponsive and need a restart. The reason for this is the call to
create_function() in the loop on line 89 of PushMonitor.php. I added the
equivalent function to the code and the memory leak went away.
Seams like this is expected with create_function()
https://bugs.php.net/bug.php?id=6333
"[2000-09-07 11:43 UTC] andi@php.net
This isn't a bug but how it works. Each create_function() call creates a new
unique function. So obviously if you define zillions in an infinite loop you'll
run out of memory."
Thank you so much for making this code available. It works extremely well. I'm
able to send an average of 1.5 million push notifications a day on very modest
hardware.
Thanks,
Darren
Original issue reported on code.google.com by darren.p...@gmail.com on 21 Aug 2011 at 4:49
Reactions are currently unavailable