2

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?

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

2 Answers 2

1

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.

0

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .