Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 19074 invoked from network); 6 Oct 2010 06:49:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Oct 2010 06:49:34 -0000 Received: (qmail 71525 invoked by uid 500); 6 Oct 2010 06:49:32 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 71314 invoked by uid 500); 6 Oct 2010 06:49:30 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 71307 invoked by uid 99); 6 Oct 2010 06:49:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 06:49:29 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dietbuddha@gmail.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-iw0-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 06:49:22 +0000 Received: by iwn1 with SMTP id 1so3548517iwn.22 for ; Tue, 05 Oct 2010 23:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=EcgLK7DZhluLjRi9EkmVf7t9IZNm3i0KWYAJwcNaEN4=; b=tOtfw2lwuYSy6V3Bb9errMC7Mehvm1eUEFGgU7+03hnJVBQg0MrmEg5F5WiMkagzx1 bZiXniBJhw+dUeLTXj+qgVH5sAnmjdeDvRwrMc/C2JDNNnfSaJ5UBr6U8t3+HrJ2345O feiniil1hjHKjOb/fgex4h7upiL/tDA8HEVLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=cCmIvBJLmlRTt/PfwMwJUlRlHdXzUO+9hwOY006WVVS55r8el18bg6xLFz5j3aNHQo sZ7jMhotUXOqL6LLLxYN1zOalQMmTEexg6ubjQSr+/Z4XCD7Gooc7af6ihFJuMs0EmWd mV0njkjpITCrlszqFA+zmjHeD6He1T0/MyDf8= MIME-Version: 1.0 Received: by 10.42.76.66 with SMTP id d2mr680043ick.219.1286347741458; Tue, 05 Oct 2010 23:49:01 -0700 (PDT) Received: by 10.231.174.132 with HTTP; Tue, 5 Oct 2010 23:49:01 -0700 (PDT) In-Reply-To: <60B45E866E9041479394DA873BDCCDFC@jt> References: <60B45E866E9041479394DA873BDCCDFC@jt> Date: Tue, 5 Oct 2010 23:49:01 -0700 Message-ID: Subject: Re: huge apache+mod_perl processes From: William T To: Eugene Toropov Cc: modperl@perl.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org If you don't have an unbounded growth issue it is likely do to some library pulling in alot of dependencies or the creation/caching in memory of some large data structure. You can preload all the offending libraries and see if that causes a jump in the initial memory allocation for you apache procs. If not you can create a Handler that fires during cleanup/log phase to capture memory size right after each access. 2010/9/29 Eugene Toropov : > Greetings, > > We have a problem with huge Apache+mod_perl2 processes of 150-200 Mb in > size. After apache restart they are usually 40-50 Mb in size, then in a > minute grow up to 100-150 Mb=A0and then some time later may grow up to 20= 0 Mb. > I suspect a certain type of http queries=A0and would like to know if ther= e are > any manuals/howtos/tools to investiagate such cases. > > # perl -v > This is perl, v5.10.1 (*) built for x86_64-linux > # strings /usr/local/apache2/modules/mod_perl.so | grep mod_perl\/ > mod_perl/2.0.4 > # /usr/local/apache2/bin/httpd -v > Server version: Apache/2.2.14 (Unix) > > # pmap -x 8320 > 8320:=A0=A0 /usr/local/apache2/bin/httpd -DSSL > Address=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Kbytes=A0=A0=A0=A0 RSS=A0=A0 Dirty = Mode=A0=A0 Mapping > 0000000000400000=A0=A0=A0=A0 584=A0=A0=A0=A0 496=A0=A0=A0=A0=A0=A0 0 r-x-= -=A0 httpd > 0000000000692000=A0=A0=A0=A0=A0 24=A0=A0=A0=A0=A0 20=A0=A0=A0=A0=A0 20 rw= ---=A0 httpd > 0000000000698000=A0=A0=A0=A0=A0 12=A0=A0=A0=A0=A0=A0 8=A0=A0=A0=A0=A0=A0 = 8 rw---=A0=A0=A0 [ anon ] > 0000000017c10000=A0 147640=A0 144612=A0 144608 rw---=A0=A0=A0 [ anon ] > .... > ----------------=A0 ------=A0 ------=A0 ------ > total kB=A0=A0=A0=A0=A0=A0=A0=A0=A0 352380=A0 156560=A0 151324 > > # /usr/local/apache2/bin/httpd -l > Compiled in modules: > =A0 core.c > =A0 mod_authn_file.c > =A0 mod_authn_default.c > =A0 mod_authz_host.c > =A0 mod_authz_groupfile.c > =A0 mod_authz_user.c > =A0 mod_authz_default.c > =A0 mod_auth_basic.c > =A0 mod_include.c > =A0 mod_filter.c > =A0 mod_log_config.c > =A0 mod_env.c > =A0 mod_setenvif.c > =A0 mod_version.c > =A0 prefork.c > =A0 http_core.c > =A0 mod_mime.c > =A0 mod_status.c > =A0 mod_autoindex.c > =A0 mod_asis.c > =A0 mod_cgi.c > =A0 mod_negotiation.c > =A0 mod_dir.c > =A0 mod_actions.c > =A0 mod_userdir.c > =A0 mod_alias.c > =A0 mod_rewrite.c > =A0 mod_so.c > # > Cheers > Eugene