PHP 5 php-fpm memory leak?
I set up a Linode 768 a couple months ago using the "Lemp stack lite" at VPSbible.com (Ubuntu, nginx, phpfpm, etc).
It's been going well except that I've noticed a pattern with memory use.
Over time--usually about a week--the memory used (I watch this using HTOP.... Linux command line) and swap slowly increase. Eventually my disk IO starts to get really busy.
I'm guessing it's swapping a bit heavily at that point.
By accident, I discovered that if I restart PHP-FPM, the memory used immediately drops 50% and swap drops about 66%.
Slowly increases again over a week or so.
So... do I have some kind of memory leak? Don't know much about these things.
My php5-fpm.conf settings:
pm = static
pm.max_children = 10
Looks like everything else that might impact mem use is set to defaults (commented out) unless there is another file somewhere setting them.
It's not a huge deal... just kind of an extra bother to have to restart php weekly.