in reply to (shared) memory and preloading modules using Mod-perl

Are you running with a threaded MPM? That uses a lot more memory. If you run with prefork MPM, the modules you load before forking will be shared by copy-on-write. This is all documented here.
  • Comment on Re: (shared) memory and preloading modules using Mod-perl

Replies are listed 'Best First'.
Re^2: (shared) memory and preloading modules using Mod-perl
by jbrugger (Parson) on Dec 29, 2004 at 18:46 UTC
    Thanks.
    I did not know that, but i'm using the prefork MPM on one machine and threaded MPM on the other. I thought it would make no difference to mod_perl, but i'll try it out.
      Threading wastes a lot of memory because perl threads are unable to share their opcode tree as effectively as copy-on-write does. If you have an OS that supports prefork, you should stick with prefork.