mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
I'm trying to spread my pre apache child memory load appropriately and have a few questions. Is Apache::SharedMem working with mod_perl2 the "same" way it did with mod_perl1? Is Apache::SharedMem the "preferred" way to handle sharing memory between apache children? Are modules loaded us

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
Am I looking for APR::Pool? -bop On Nov 7, 2007, at 12:41 PM, Boysenberry Payne wrote: On Nov 7, 2007, at 11:59 AM, Michael Peters wrote: Boysenberry Payne wrote: Is Apache::SharedMem working with mod_perl2 the "same" way it did with mod_perl1? Don't know, haven't used it. It hasn't

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 11:59 AM, Michael Peters wrote: Boysenberry Payne wrote: Is Apache::SharedMem working with mod_perl2 the "same" way it did with mod_perl1? Don't know, haven't used it. It hasn't been updated since 2001, so either it's perfect and hasn't needed any changes or it's not

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Michael Peters
Boysenberry Payne wrote: > Is Apache::SharedMem working with mod_perl2 the "same" way it did with > mod_perl1? Don't know, haven't used it. It hasn't been updated since 2001, so either it's perfect and hasn't needed any changes or it's not being maintained. > Is Apache::SharedMem the "preferred"

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Perrin Harkins
Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow. > Does memcached or Cache::FastMap work with apache's shared memory pool? No, I don't think anyone has ever gotten that to work. > In this situation if its possible (which it should be for my own > modules) I would like > the p

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
Other than for callbacks on destruction of memory pools what is APR::Pool useful for? -bop On Nov 7, 2007, at 1:56 PM, Perrin Harkins wrote: Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow. Does memcached or Cache::FastMap work with apache's shared memory pool? No, I

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Perrin Harkins
On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: > If I created some of my static hashes and objects during the > PerlPostConfigHandler phase > and added them to either the configuration or log pools You're missing the big picture. Adding perl objects to a shared memory pool d

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Michael Peters
Boysenberry Payne wrote: > If I created some of my static hashes and objects during the > PerlPostConfigHandler phase > and added them to either the configuration or log pools would that help > me keep > some of my memory shared, assuming I could get at either pool during the > PerlResponseHandler?

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools would that help me keep some of my memory shared, assuming I could get at either pool during the PerlResponseHandler? Am I confusing lifetime scop

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 5:05 PM, Michael Peters wrote: Boysenberry Payne wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools would that help me keep some of my memory shared, assuming I could get

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Boysenberry Payne
On Nov 7, 2007, at 5:04 PM, Perrin Harkins wrote: On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added them to either the configuration or log pools You're missing the big pict

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Octavian Rasnita
AIL PROTECTED]> To: "Boysenberry Payne" <[EMAIL PROTECTED]> Cc: "modperl List" Sent: Thursday, November 08, 2007 1:04 AM Subject: Re: mod_perl2 and Apache::SharedMem On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: If I created

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Boysenberry Payne
t; Cc: "modperl List" Sent: Thursday, November 08, 2007 1:04 AM Subject: Re: mod_perl2 and Apache::SharedMem On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote: If I created some of my static hashes and objects during the PerlPostConfigHandler phase and added t

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Michael Peters
Boysenberry Payne wrote: >> But what if the module Module::Name "use" or "require" other modules? >> Are they also loaded before the server forks, or I need to load them >> with "PerlModule ..." in httpd.conf? > > Good question. I think it might depend on how the requires/uses are scoped > in th

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Boysenberry Payne
On Nov 8, 2007, at 1:07 PM, Octavian Rasnita wrote: From: "Boysenberry Payne" <[EMAIL PROTECTED]> What should I do if I want to load the classes after the server forks? There are many phases after the fork, the most commonly used is the PerlResponseHandler phase Do I understand correctly

Re: mod_perl2 and Apache::SharedMem

2007-11-08 Thread Octavian Rasnita
From: "Boysenberry Payne" <[EMAIL PROTECTED]> What should I do if I want to load the classes after the server forks? There are many phases after the fork, the most commonly used is the PerlResponseHandler phase Do I understand correctly that even the modules specified in httpd.conf with Perl

Preloading modules (was Re: mod_perl2 and Apache::SharedMem)

2007-11-07 Thread Fred Moyer
Octavian Rasnita wrote: Hi, Can you please tell me when the server forks? http://perl.apache.org/docs/2.0/user/handlers/server.html What should I do to load some classes before the server forks? http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File > What should I do if I