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 ;-)
In reply to mod_perl memory issues... by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |