Last version of the kill-all-orphaned-phps workaround attached.
I recommend to run it hourly to catch php parents that die suddenly
AND (more important)
to add it in your /etc/logrotate.d/apache2 in postrotate after apache restart, because this creates lots of orphaned processes most of the time.
Last version of the kill-all- orphaned- phps workaround attached.
I recommend to run it hourly to catch php parents that die suddenly d/apache2 in postrotate after apache restart, because this creates lots of orphaned processes most of the time.
AND (more important)
to add it in your /etc/logrotate.