Re: caching reverse proxy config+init scripts

2007-11-07 Thread deepfryed
Randal is the master wizard, so you might wanna read that article in detail. Although, I would go for something like pound doing the proxying for me, instead of mod_proxy I like to run apache on an unprivileged port, so that's an added bonus, plus pound will take care of ssl too. On 11/8/07, Ran

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

Re: mod_perl2 and Apache::SharedMem

2007-11-07 Thread Octavian Rasnita
Hi, Can you please tell me when the server forks? What should I do to load some classes before the server forks? What should I do if I want to load the classes after the server forks? Thank you for clarifications. Octavian - Original Message - From: "Perrin Harkins" <[EMAIL PROTECTED]

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 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 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 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
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
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
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: caching reverse proxy config+init scripts

2007-11-07 Thread Randal L. Schwartz
> "John" == John ORourke <[EMAIL PROTECTED]> writes: John> Hi folks, John> I'm about to write a generic set of init scripts and config files to make John> setting up dual apache servers (one light proxy/cache/ssl, one heavy mod_perl) John> easy. John> Am I reinventing the wheel? John> If no

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"

caching reverse proxy config+init scripts

2007-11-07 Thread John ORourke
Hi folks, I'm about to write a generic set of init scripts and config files to make setting up dual apache servers (one light proxy/cache/ssl, one heavy mod_perl) easy. Am I reinventing the wheel? If not I'll post a link here when I'm done. cheers John

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: child process exited with status ### - Restarting

2007-11-07 Thread Dileep Eduri
thats pity thing... may be i have to downgrade my apache now... Thanks.. Tom Donovan-4 wrote: > > Dileep Eduri wrote: >> Hello Folks, >> >> I am using Apache/2.2.6 (Win32) mod_perl/2.0.3 Perl/v5.8.8 configured > ... >> Here is log entry for that: >> [Tue Nov 06 20:42:23 2007] [notice] Parent:

Re: switch codes from mp1 to mp2

2007-11-07 Thread imacat
On Wed, 7 Nov 2007 18:52:35 +1100 (EST) Jeff Pang <[EMAIL PROTECTED]> wrote: > since apache2 is better than apache1.3, we have made the choice to upgrade > the mp1 programs to mp2. > Is there any easy way or guide to do it? thank you. I suggest you run a testing Apache 2 server to see if there