[nycbug-talk] apache on freebsd
Peter Wright
pete at nomadlogic.org
Wed Aug 23 13:48:19 EDT 2006
>
> On Aug 23, 2006, at 11:20 AM, Pete Wright wrote:
>> couple questions, are the binaries built in the same manner on OSX and
>> 6.1 (i.e. using same configure flag's).
>
> No, they're *slightly* different, though I've combed through the docs
> to see if anything could be at fault
>
> ----
> OSX
> -D APR_USE_SYSVSEM_SERIALIZE
> -D APR_USE_PTHREAD_SERIALIZE
> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>
> FreeBSD
> Server loaded: APR 0.9.12, APR-UTIL 0.9.12
> Compiled using: APR 0.9.12, APR-UTIL 0.9.12
> -D APR_HAS_SENDFILE
> -D APR_USE_FLOCK_SERIALIZE
> ----
>
guessing here, but the SYSVSEM and PTHREAD options could cause a disparity
between memory usuage....this is the output from apachectl -V correct?
you are using the prefork model correct (sorry can't remember).
<snipping modules for the moment>
>
>> what is the main concern about how much memory the apache process
>> is taking up, could it be that FreeBSD is being more aggressive in
>> caching?
>> also, is each child process taking up 121Megs of virtual
>> memory or resident memory (ps should show you this info in detail)?
>
> on OSX, immediately after an httpd startup, Apache spawns
> 1 parent server 80552 30796
> 1 child server 76560 2960
>
> freeBSD spawns
> 1 parent 55148 51736
> 1 child 55412 51956
>
> After 1 request,
> OSX child is + 14mb resident
> FreeBSD child is + 120k resident
hmm...according to your results httpd on FreeBSD is only taking 120k
resident, while OSX is using 14megs resident. the httpd is not taking any
requests either during these samples correct?
>
> The freebsd stuff is irking me, because on some startups I see it
> with 55 MB of RES + VMEM, and on others its with 120 (i always STOP
> then START the server. restarts leak like a sieve )
hmm...wierd. never seen the leak restarting apache via rc.d, it shouldn't
as it kills all httpd process the goes through the start function. so
that may be a bug.
-p
--
~~oO00Oo~~
Peter Wright
pete at nomadlogic.org
www.nomadlogic.org/~pete
310.869.9459
More information about the talk
mailing list