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.

We host svn on Apache 2.2 and it's memory usage slowly grows until it just halts. I've heard that there's a magic settings that makes Apache restart itself automatically after processing every N requests.

Does this setting exist? Where can I learn more?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Well, for learning more you could certainly do worse that looking at the official Apache 2.2 documentation.

Specifically in this case, it seems you're looking for the MaxRequestsPerChild directive.

share|improve this answer
    
Great... Except that we already had that settings (every 512 requests) and it doesn't help... –  sharptooth Apr 1 '10 at 9:15

How quickly does the issue become a problem?

If the child cycling options (as suggested by janneb) do not work around the leak, you could set a scheduled task to restart the service daily/weekly. Under Linux the command to schedule would be /etc/init.d/apache2 restart, under Windows it would probably be net start apache followed by net start apache or similar.

share|improve this answer
    
The problem surfaces about every two weeks. We'll think of employing this suggestion. The problem is we have very little experience running Apache, so we'd rather not rush into anything. –  sharptooth Apr 1 '10 at 10:59

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.