cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to reduce the memory footprint of some mod_perl. I've added Apache::SizeLimit to stop children getting out of hand, but was wondering what favorite tricks other monks used along these lines?
I was under the impression that when a module is "use"d that it stays in memory. If that's the case, can I "undef a namespace" or "unload the module" when a particular script finishes? Some modules are used rarely, and the tiny overhead of loading them is acceptable in these cases.
I guess what I'm saying is "Is there a way to force a module not to stay in memory when the script that calls it exits?".
I haven't found an answer to this (yet), but maybe I'm approaching this the wrong way and asking the wrong question?
Hmmm...
cLive ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl memory issues...
by perrin (Chancellor) on Oct 16, 2003 at 01:15 UTC | |
by etcshadow (Priest) on Oct 16, 2003 at 02:15 UTC | |
by perrin (Chancellor) on Oct 16, 2003 at 03:43 UTC | |
by Chester K (Initiate) on Oct 17, 2003 at 23:37 UTC | |
|
Re: mod_perl memory issues...
by edoc (Chaplain) on Oct 15, 2003 at 22:27 UTC | |
by cLive ;-) (Prior) on Oct 15, 2003 at 22:35 UTC | |
|
Re: mod_perl memory issues...
by ambrus (Abbot) on Oct 17, 2003 at 11:37 UTC |