Hiya...
I need to limit CPU and Memory usage on many apache VirtualHsts on the same box.
I have no Idea if this is possible...
Can anybody help me on this issue?
Thanx a lot.
Hi,
I'm not quite sure, but I think you can set CPU and memory limits in php.ini.
Leif
But I need to define it independently for each VirtualHost.
If I define it in php.ini I do it for them all?
midget
Hmm, in php.ini it's for all hosts. As far as I know, there isn't a way to set it for each virtual host.
This is late but it's just for reference to people getting here with the same question. To limit memory usage try:
<VirtualHost your_virtual_host> <Directory your_directory> php_value memory_limit 10M </Directory> </VirtualHost>
It worked for me.