Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running Apache 2 in worker mode with PHP FastCGI. I've read that due to the nature of long-running processes, FastCGI may require some periodic process maintenance.

What is meant by periodic process maintenance?

share|improve this question
    
Why don't you ask whoever wrote what you read? We can only guess at the meaning and motivation of the recommendation -- even more so since you haven't cited a source. –  womble Apr 2 '12 at 22:43
    
    
Yeeeeah... as someone who does a lot of high-volume Magento hosting, all I can say about that article is facepalm. –  womble Apr 3 '12 at 1:45
add comment

1 Answer

up vote 4 down vote accepted

"Periodic process maintenance" sounds like a euphemism for "restart."

Because the processes are long-lived, memory leaks and other nasties can build up over time to cause the processes to consume more resources than they really need. Periodic restarts will clear that out.

Don't create a cron job for this quite yet. Monitor the memory use of the processes and schedule restarts based on reality instead of some cargo-cult inspired schedule. It might not even be needed in your environment.

share|improve this answer
    
Yeah that's what I was afraid of. We do run into some issues where an Apache restart solves the problem. Periodic restarts are a workable short term solution. I think I need to look into a better platform. Thanks Charles! –  mattmac Apr 2 '12 at 22:53
    
There are at least two FastCGI modules for Apache, as well as some new options in 2.4. There's also many ways to power the PHP side of things. You may find a mix that works well for you, rather than falling back to mod_php. –  Charles Apr 3 '12 at 0:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.