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 use Apache 2.2 to host SVN repository on a Windows 2003 machine.

Works fine except that over a couple of weeks the httpd process inflates and starts consuming something like 1.5 gigabytes of virtual memory. All operations with the repository become very slow.

What to tweak to prevent httpd from cosuming so many resources?

share|improve this question
    
Definitely lack of information. You could provide some configuration files, logs, any hints on what was changed/updated before the server started doing this. –  Andrejs Cainikovs Mar 23 '10 at 11:19
    
@Andrejs Cainikovs: It does this from the moment of installation - nothing really changed. Plain old default installation. –  sharptooth Mar 23 '10 at 12:00
    
Are you running TRAC? –  Warner Mar 23 '10 at 14:14
    
@Warner: No, no Trac on that machine. –  sharptooth Mar 23 '10 at 14:23
add comment

2 Answers 2

APR can slowly leak memory because of the way APR pools fragment available RAM over time. If you can configure the max requests per child limit in Apache lower so the tasks will restart sooner that should mitigate the problem to an extent. The MaxMemFree directive may also be helpful, but be warned that the mailing list post suggests it doesn't work as advertised.

share|improve this answer
add comment

I use VisualSVN Server, which is a packaged Apache+SVN system and it doesn't use anywhere near this amount of RAM. I've got 12Mb virtual use right now.

However - when committing you will see the memory use rise, when the files have been committed it should drop right down again.

I'd check the access use - make sure there's no extra processes running wild in there. use ProcessExplorer from sysinternals site to see what's happening inside it. Basically, high memory use for SVN+Apache is not a normal problem.

share|improve this answer
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.