How do I imlement PHP_LSAPI_CHILDREN?
I recently installed Litespeed and PHP 5 (w/ APC) as per the how-to's on the site here, and wow, I love the performance!
I was wondering if I should implement PHP_LSAPI_CHILDREN instead of the default way Liltespeed dishes out PHP processes.
I was unclear the real benefits of changing this method and what specifically I need to change to do it.
I am running decently busy forum on a VPS so would like to gain as much performace gain from Litespeed as possible.
To use PHP_LSAPI_CHILDREN, just set it as a environment variable to match "Max Conn" value, set "instances" to 1.
The benefit of doing this is that all PHP processes sharing the same block of memory for the opcode cache, but all PHP processes will be started statically, not on demand. Performance wise, you may not notice big differences.
We are working on a PHP LiteSpeed SAPI module which will start PHP children processes on demand and only use one memory block for the opcode cache. Stay tuned. :)
That makes more sense. Thanks!
|All times are GMT -7. The time now is 02:12 PM.|