Java Mailing List Archive

http://www.apache-httpd.com/

Home » modperl.perl »

mod_perl precompiling help

Jason Sonnenschein

2009-12-21

Replies: Find Java Web Hosting

Author LoginPost Reply
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 (@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?

Thanks,

Jason
©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.