Comment 5 for bug 1677578

Vasya Pupkin (shadowlmd) wrote :

> How many cgi-bin processes do you have and what memory do they consume?

8 php-cgi processes: 2 backend, 3 workers per backend. And here's the memory usage after I set max_execution_time to 600:

 4567 www-data /usr/bin/php-cgi 0 48 1587 6496
 4569 www-data /usr/bin/php-cgi 0 48 1587 6496
 4571 www-data /usr/bin/php-cgi 0 48 1587 6496
 4568 www-data /usr/bin/php-cgi 0 4848 6760 14488
 4572 www-data /usr/bin/php-cgi 0 5488 7042 13996
 4570 www-data /usr/bin/php-cgi 0 9012 10894 18592
 4565 www-data /usr/bin/php-cgi 0 8988 11695 21976
 4566 www-data /usr/bin/php-cgi 0 10368 12776 21860

No matter how many times I run the script, memory usage of single process never gets above 30 MB. If I let php kill script because of max_execution_time, it leaks 30-100 MB and never frees it up.