[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: apache svn server memory usage?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-06-30 19:27:34 CEST

Chris Hecker <checker@d6.com> writes:

> this server except for svn. I've included a "top" output below from
> just now, and as you can see, it's 2 days of use. The httpd's (using
> prefork mpm) have grown from about 4mb to 14-22mb over the weekend.
> There's no swapping so far, but the free memory has dwindled to 20mb
> from 400mb at reboot and startup.
>
> My question is, is this normal? Should the httpds be constant size,
> or do they grow like this to fill physical ram, or is there a memory
> leak, etc.?

This is normal. 14-22M httpd isn't great, but it's much better than
the hundreds of megs it used to be, back when we had real memory
bugs. :-)

The problem is the way apache's pools work; a single httpd process
will "grow" to the size necessary to finish a request, but then even
though the pool is "freed", it's not *really* freed. It goes back
into a memory-reuse area. I guess you can say that the pool
management is doing the same kind of thing that an OS does regarding
malloc() and free(); it keeps some pages reserved for faster future
mallocs.

Sander Striker can talk more about this.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 30 19:28:58 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.