Hi list,

I have a question regarding tuning @INC at VirtualHost level, with prefork MPM.

In the doc :
https://perl.apache.org/docs/2.0/user/config/config.html#Modifying_C__INC__on_a_Per_VirtualHost
is written :
"under prefork your procs will be huge, because
you will build a pool of interpreters in each process"

Let's then imagine the following configuration :

Several VH (let's say 10) with the same PerlSwitches configuration :
<VirtualHost ...>
    PerlSwitches -I/home/production/lib/perl
</VirtualHost>

And one VH with another PerlSwitches configuration :
<VirtualHost ...>
    PerlSwitches -I/home/development/lib/perl
</VirtualHost>

My question is then about the "pool of interpreters".
I understand that several interpreters will be launched because they
require different @INC configurations.
But in my example, will I have 2 (2 different PerlSwitches configurations)
or 11 (11 different VH using PerlSwitches) interpreters launched ?

The difference is rather important.

Thank you very much !

Best regards,

Ben

Reply via email to