[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] pre-loading modules




I've got a linux box running Apache and I'm using <mod_perl>.  What I'm
trying to do now is get my modules to preload into the parent process, so
that via memory sharing the child processes can be small.  I put the
following directive at the top of <conf.httpd>:

    PerlRequire /Job/preload.modules/start_up.pl

and <start_up.pl> contains:

    use DBI;
    use CGI;
    CGI->compile(':all');
    use CGI::Carp;
    use URI::URL;

This does make a difference.  <ps aux> shows a larger parent process... but
it also shows larger child processes.  Presumably the shared memory is
being 'double counted' (once in the parent, and again in each child).

Does anyone know how to get at the true memory allocation to a process,
counting only the part not already counted by parent processes?   More
generally, is the approach I'm using (above) the correct one?

Thanks in advance for any help,
rkm

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org