Chris Hagglund wrote:
The trouble is, as each vhost loads this config file for its plain and
SSL vhost directives, the amount of memory being used seems to be going
up, and restarting apache is taking longer and longer. Intead of loading
it over and over again (twice for vhosts with ssl!) I am hoping to find
a way to tell apache to load PROD mp configuration, then load 100 PROD
vhosts that will all share it, then load TEST mp configuration, then
load 20 vhosts that use those libs, etc, but I am getting error like:
'mod_perl is already running, too late for PerlSwitches' when I am
trying to start setting this up.
It sounds like you want a two tier architecture.
The front end will proxy a set of mod_perl servers running behind it.
The front end will be configured to point to either your TEST, DEV,
PROD, dev1, or dev2 apache instances.
Each apache instance will only load one set of modules.
It should reduce the amount of memory being used substantially and speed
up apache restarts.
Rob