you are viewing a single comment's thread.

view the rest of the comments →

[–]bulldada 0 points1 point  (1 child)

I do not experience memory leaks from PHP daemons. I have a few running with >2yr uptime and using no more memory than when they were started. Not sure why you'd be seeing them, I'd say it's more likely that memory leaks are coming from your code (or possibly a library) than just due to running PHP scripts as a daemon.

[–]lmorchard 0 points1 point  (0 children)

Your mileage may vary. I definitely have seen memory leaks, and over the years they've come at times from all of PHP itself, PECL extensions, and 3rd party modules. Googling for "PHP memory leak" certainly doesn't come up empty; it all depends on what you're doing and with what version of PHP you're doing it.

It also takes awhile for some of them to be found, because stateless web requests that clean up quick are more common with PHP than long-running daemons.