mod_perl precompiling help

This is a multi-part message in MIME format.
--------------050701070101020607020208
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello all,

We're running a perl-based web application and not seeing any speedups
running under mod_perl.

I have a startup file that is attempting to precompile much of the code
by using require for some files that are required in scripts, use for
others that are perl modules, and many scripts are preloaded with this code:

my $rlbb = ModPerl::RegistryLoader->new(package =>
'ModPerl::Registry',debug => 1);
foreach $pre ( [at] preload_script) {
$rlbb->handler("/mod_perl/$pre", "${fp_cgi}/$pre");
$rlbb->handler("/MRcgi/mod_perl/$pre", "${fp_cgi}/$pre");
}

I can see in the mod perl status page that they are in fact
precompiled. The scripts show up in the status page " Compiled registry
scripts grouped by their handler" and the requires show up in
PerlRequire'd Files. But the scripts actually run slower when I turn
mod_perl on than when it is off. Is there something I'm doing wrong
here? </perl-status?script>

Thanks,

Jason

--------------050701070101020607020208
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hello all,<br>
<br>
We're running a perl-based web application and not seeing any speedups
running under mod_perl.<br>
<br>
I have a startup file that is attempting to precompile much of the code
by using require for some files that are required in scripts, use for
others that are perl modules, and many scripts are preloaded with this
code:<br>
<br>
my $rlbb = ModPerl::RegistryLoader->new(package =>
'ModPerl::Registry',debug   => 1);<br>
foreach $pre ( [at] preload_script) {<br>
    $rlbb->handler("/mod_perl/$pre", "${fp_cgi}/$pre");<br>
    $rlbb->handler("/MRcgi/mod_perl/$pre", "${fp_cgi}/$pre");<br>
}<br>
<br>
I can see in the mod perl status page that they are in fact
precompiled.  The scripts show up in the status page "
<meta charset="utf-8" id="webkit-interchange-charset">
Compiled registry scripts grouped by their handler" and the requires
show up in
<meta charset="utf-8" id="webkit-interchange-charset">
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Times; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><a
href="/perl-status?script">PerlRequire'd Files.  But the scripts
actually run slower when I turn mod_perl on than when it is off.  Is
there something I'm doing wrong here?</a><br>
<br>
Thanks,<br>
<br>
Jason</span><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Times; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"></span>
</body>
</html>

--------------050701070101020607020208--
Jason Sonnenschein [ Di, 22 Dezember 2009 00:47 ] [ ID #2026768 ]

Re: mod_perl precompiling help

On 12/22/09 10:13 AM, Perrin Harkins wrote:
> On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein<jsonn [at] umich.edu> wrote:
>
>> We're running a perl-based web application and not seeing any speedups
>> running under mod_perl.
>>
> Usually that means you have a configuration problem. Can you check if
> your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
> in one of them?
>
> - Perrin
>
>
>
I'll doublecheck with that, but I can say that when I switch the machine
to running mod_perl, I see httpd rather than the scripts in "top" and
"ps" output (which seems to me that it's running under mod_perl)

Jason
Jason Sonnenschein [ Di, 22 Dezember 2009 18:15 ] [ ID #2026771 ]

Re: mod_perl precompiling help

On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein <jsonn [at] umich.edu> wrote:
> We're running a perl-based web application and not seeing any speedups
> running under mod_perl.

Usually that means you have a configuration problem. Can you check if
your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
in one of them?

- Perrin
Perrin Harkins [ Di, 22 Dezember 2009 18:13 ] [ ID #2026772 ]

Re: mod_perl precompiling help

On 12/22/09 10:13 AM, Perrin Harkins wrote:
> On Mon, Dec 21, 2009 at 11:47 PM, Jason Sonnenschein<jsonn [at] umich.edu> wrote:
>
>> We're running a perl-based web application and not seeing any speedups
>> running under mod_perl.
>>
> Usually that means you have a configuration problem. Can you check if
> your scripts are running under mod_perl by looking at $ENV{MOD_PERL}
> in one of them?
>
> - Perrin
>
>
>

ENV{MOD_PERL} returns "mod_perl/2.0.4"
Jason Sonnenschein [ Di, 22 Dezember 2009 18:19 ] [ ID #2026773 ]

Re: mod_perl precompiling help

On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein <jsonn [at] umich.edu> wrote:
> ENV{MOD_PERL} returns "mod_perl/2.0.4"

Ok, they are running under mod_perl then. It's pretty much unheard of
for a script to run slower under mod_perl than CGI. There may be
something serious wrong, like you don't have enough memory for the
configuration you're using. Is the machine going into swap?

- Perrin
Perrin Harkins [ Mi, 23 Dezember 2009 18:50 ] [ ID #2026903 ]

Re: mod_perl precompiling help

--000e0cd609d6c4906e047b697145
Content-Type: text/plain; charset=UTF-8

unsubscribe

On Wed, Dec 23, 2009 at 12:50 PM, Perrin Harkins <pharkins [at] gmail.com> wrote:

> On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein <jsonn [at] umich.edu>
> wrote:
> > ENV{MOD_PERL} returns "mod_perl/2.0.4"
>
> Ok, they are running under mod_perl then. It's pretty much unheard of
> for a script to run slower under mod_perl than CGI. There may be
> something serious wrong, like you don't have enough memory for the
> configuration you're using. Is the machine going into swap?
>
> - Perrin
>



--
ispyhumanfly [dan.stephenson]

--000e0cd609d6c4906e047b697145
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

unsubscribe<br><br><div class=3D"gmail_quote">On Wed, Dec 23, 2009 at 12:50=
PM, Perrin Harkins <span dir=3D"ltr"><<a href=3D"mailto:pharkins [at] gmail.=
com">pharkins [at] gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex;">
<div class=3D"im">On Tue, Dec 22, 2009 at 12:19 PM, Jason Sonnenschein <=
<a href=3D"mailto:jsonn [at] umich.edu">jsonn [at] umich.edu</a>> wrote:<br>
> ENV{MOD_PERL} returns "mod_perl/2.0.4"<br>
<br>
</div>Ok, they are running under mod_perl then. =C2=A0It's pretty much =
unheard of<br>
for a script to run slower under mod_perl than CGI. =C2=A0There may be<br>
something serious wrong, like you don't have enough memory for the<br>
configuration you're using. =C2=A0Is the machine going into swap?<br>
<font color=3D"#888888"><br>
- Perrin<br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>ispyhumanfly [da=
n.stephenson]<br>

--000e0cd609d6c4906e047b697145--
ispyhumanfly [ Mi, 23 Dezember 2009 19:25 ] [ ID #2026904 ]
Webserver » gmane.comp.apache.mod-perl » mod_perl precompiling help

Vorheriges Thema: Apache2::Cookie cookie parse error "Expected token not present"
Nächstes Thema: Discuss new Handler that return Apache2::Const::OK even if the responseStatus Code was changed to av