On 3/4/09 21:20, David E. Wheeler wrote: > On Apr 3, 2009, at 6:11 PM, Philippe M. Chiasson wrote: > >>> It seems to be slow there, too. It takes about 6 seconds to start up >>> (Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g >>> mod_apreq2-20051231/2.6.0 mod_perl/2.0.4 Perl/v5.10.0) >> >> Any insights on what's it doing when it's acting up slow? >> >> I'd look at running httpd under strace (or equivalent) just to get >> an idea >> as to what it's doing that's so different than the static case. > > No. It does seem like if I stop and start very quickly on my Mac, the > startup is pretty quick, just a few seconds. But if I wait 30-60s > after shutting down before starting up again, it's slow again. But > it's not always quicker on the quick restart. > > Otherwise, the only other thing I've noticed is that it's never slow > with static mod_perl1. > > Where do I find something to tell me how to use strace with Apache on > Mac OS X? Pointers appreciated.
Assuming you are running 10.5, try dtruss $> sudo dtruss /path/to/my/httpd -X [...] Should spew out what it's up to. But this could be very well just be cost you are paying for loading a bunch of shared libraries, it's not something blazing fast on OS X. Just guessing. -- Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/
signature.asc
Description: OpenPGP digital signature