Hello,
I'm having problems getting modules loaded at Apache start to be shared across the children. Here's the output I get from Apache::VMonitor (I've editted down to just 2 children):
Size Share VSize RSS M Elapsed LastReq Srvd ----- ----- ----- ---- -- ------ ------ ---- 12: 89.5M 4.2M 89.5M 70.9M _ 0.000s 0.000s 0 8: 89.5M 4.2M 89.5M 70.9M _ 0.000s 0.000s 0
Total: 1501392K (1432M) size, 1435471K (1369M) approx real size (-shared)
Both the totals and the individual numbers imply very little memory is being shared. As I understand the output from VMonitor, only 4.2M out of 89.5M are being shared. (Yes, Apache is awfully big, that's my next step in optimization.)
I'm loading the vast majority of my modules in a startup.pl file, so I don't understand why they aren't being shared. Obviously, I am missing something. Any pointers on where I should look next would be very helpful. Here is the information about my system:
Fedora Core 2 perl 5.8.5 (threaded) Apache 2.0.52 (pre-fork -- config params below) mp2 2.0.0-RC4 (DSO -- config params below) apreq2 (2/10/05 version)
Relevant parts of httpd.conf (CWApache::Apache2Handler is use'd in startup.pl):
LoadModule perl_module modules/mod_perl.so LoadModule apreq_module modules/mod_apreq.so ... PerlRequire /usr/local/apache2/mp/conf/startup.pl
what's in that file? If you don't preload all your modules that explains why you don't have the sharing.
<Location / > SetHandler perl-script PerlResponseHandler CWApache::Apache2Handler </Location>
Config params for apache and mod_perl:
./configure --prefix=/usr/local/apache2/mp --with-mpm=prefork --disable-cgi --disable-userdir --enable-auth-dbm --enable-speling
perl Makefile.PL MP_APXS=/usr/local/apache2/mp/bin/apxs MP_INST_APACHE2=1
for the future, the bug report guidelines can be found here: http://perl.apache.org/bugs/
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com