Dynamlcally loading modules at run-time

2002-10-03 Thread Jochen Lillich
Hi, I'm writing my first mod_perl handler. I'd like to make the handler some kind of dispatcher that dynamically loads certain modules depending on the URI called: /foo/index = require foo; $result = foo::index(); /foo/other = require foo; $result = foo::other(); /bar/index = require bar;

Re: Dynamlcally loading modules at run-time

2002-10-03 Thread Geoffrey Young
Jochen Lillich wrote: Hi, I'm writing my first mod_perl handler. I'd like to make the handler some kind of dispatcher that dynamically loads certain modules depending on the URI called: /foo/index = require foo; $result = foo::index(); /foo/other = require foo; $result = foo::other();

Re: Dynamlcally loading modules at run-time

2002-10-03 Thread Jason Galea
Hi Jochen, I'd recommend having a read of this http://perl.apache.org/docs/1.0/guide/performance.html#Sharing_Memory Not sure how much it applies to your situation, but basically, unless the different modules are very large and rarely used you really want to load them all at server startup.

Loading modules

2001-07-04 Thread Bird Lei
How can I tell if a module is compiled and loaded into the memory properly when the server starts? Would it not be loaded even if I have put use My::ModuleName in the startup.pl? Bird

Re: Loading modules

2001-07-04 Thread Stas Bekman
On Thu, 5 Jul 2001, Bird Lei wrote: How can I tell if a module is compiled and loaded into the memory properly when the server starts? Would it not be loaded even if I have put use My::ModuleName in the startup.pl? use the Apache::Status module and read http://perl.apache.org/guide

Re: Loading modules

2001-07-04 Thread Bird Lei
Thanks. At 11:56 AM 2001/7/5 +0800, Stas Bekman wrote: On Thu, 5 Jul 2001, Bird Lei wrote: How can I tell if a module is compiled and loaded into the memory properly when the server starts? Would it not be loaded even if I have put use My::ModuleName in the startup.pl? use the

Prblem in loading modules

2001-04-25 Thread Mohammed Azam
Hi, I am using perl 5.00503 mod_perl 1.22 apache 1.3.12 aix 4.3.3 I have recompiled perl 5.00503 after applying patch for dl_aix.xs. Then I compiled my mod_perl with the following command perl Makefile.PL \ USE_APXS=1 \ WITH_APXS=/usr/HTTPServer/bin/apxs \ EVERYTHING=1 It compiled without

Re: Prblem in loading modules

2001-04-25 Thread Jens-Uwe Mager
On Wed, Apr 25, 2001 at 11:34:53AM -0700, Mohammed Azam wrote: perl 5.00503 mod_perl 1.22 apache 1.3.12 aix 4.3.3 That appears to be an unfortunate combination that does not work properly. Get APache 1.3.19, perl 5.6.1 and the newest modperl from CVS and the patch I did mention here a few

Re: Loading modules in Parent??

2000-12-20 Thread Doug MacEachern
On Thu, 28 Sep 2000, Bill Moseley wrote: Hi, I'm seeing the opposite results from pre-loading modules in the parent process than I would expect. It looks like pre-loading modules ends up using more non-shared ("private") memory. ... Here's the pre-loaded module list. When runn

Re: Loading modules in Parent??

2000-10-04 Thread Bill Moseley
At 12:04 AM 10/02/00 -0600, Scott Wilson wrote: I've seen a similar result on an IRIX installation I'm working on. Anyone have any ideas? So did you decide NOT to pre-load modules? Scott Bill Moseley wrote: Won't someone comment on this post? That's a chunk of memory! At 11:46 AM

Re: Loading modules in Parent??

2000-09-30 Thread Bill Moseley
Won't someone comment on this post? That's a chunk of memory! At 11:46 AM 09/28/00 -0700, Bill Moseley wrote: snip This is what pmap -x is showing: Address Kbytes Resident Shared Private Permissions Mapped File -- -- -- -- total Kb 19968 185282816