Return-Path: Delivered-To: apmail-perl-dev-archive@www.apache.org Received: (qmail 88360 invoked from network); 4 Apr 2009 01:36:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2009 01:36:56 -0000 Received: (qmail 9660 invoked by uid 500); 4 Apr 2009 01:36:55 -0000 Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 9625 invoked by uid 500); 4 Apr 2009 01:36:55 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 9617 invoked by uid 99); 4 Apr 2009 01:36:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2009 01:36:55 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gozer@ectoplasm.org designates 66.34.202.202 as permitted sender) Received: from [66.34.202.202] (HELO minerva.ectoplasm.org) (66.34.202.202) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Apr 2009 01:36:46 +0000 Received: from minerva.ectoplasm.org (localhost.localdomain [127.0.0.1]) by pmx.secure.ectoplasm.org (Postfix) with SMTP id 4EFDE5EB2C; Fri, 3 Apr 2009 18:36:25 -0700 (PDT) Received: from [192.168.130.200] (modemcable191.172-57-74.mc.videotron.ca [74.57.172.191]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by minerva.ectoplasm.org (Postfix) with ESMTP id D52465EB2B; Fri, 3 Apr 2009 18:36:24 -0700 (PDT) Message-ID: <49D6B997.4060902@ectoplasm.org> Date: Fri, 03 Apr 2009 21:36:23 -0400 From: "Philippe M. Chiasson" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b4pre) Gecko/20090401 Shredder/3.0b3pre MIME-Version: 1.0 To: "David E. Wheeler" CC: dev@perl.apache.org Subject: Re: Startup Slow with DSO mod_perl References: <2280A48E-C5BE-4361-9D28-D0675B4F3AE7@kineticode.com> <9E83831F-DB52-44D3-B90D-5002CB59C19C@kineticode.com> <49D6B3BF.2080203@ectoplasm.org> In-Reply-To: X-Enigmail-Version: 0.96a Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE35E17D1EC455A992053BEA2" X-PMX-Version: 5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2009.4.4.11923 X-Virus-Checked: Checked by ClamAV on apache.org --------------enigE35E17D1EC455A992053BEA2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 3/4/09 21:20, David E. Wheeler wrote: > On Apr 3, 2009, at 6:11 PM, Philippe M. Chiasson wrote: >=20 >>> 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 =20 >> an idea >> as to what it's doing that's so different than the static case. >=20 > 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 =20 > after shutting down before starting up again, it's slow again. But =20 > it's not always quicker on the quick restart. >=20 > Otherwise, the only other thing I've noticed is that it's never slow =20 > with static mod_perl1. >=20 > 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 bun= ch of shared libraries, it's not something blazing fast on OS X. Just guessi= ng. --=20 Philippe M. Chiasson GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5 http://gozer.ectoplasm.org/ m/gozer\@(apache|cpan|ectoplasm)\.org/ --------------enigE35E17D1EC455A992053BEA2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iD8DBQFJ1rmXyzKhB4jDpaURAlJCAKDBxgb0MU5hoz0ygGyfWr3Ak4y+wQCbBUz+ gKY/kVDwgbzQfdQDWHF9sYk= =SrS3 -----END PGP SIGNATURE----- --------------enigE35E17D1EC455A992053BEA2--