How do I imlement PHP_LSAPI_CHILDREN?

Discussion in 'PHP' started by travisbell, Jan 27, 2007.

  1. travisbell

    travisbell New Member

    Hey guys,

    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.

    Thanks!
  2. mistwang

    mistwang LiteSpeed Staff

    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. :)
  3. travisbell

    travisbell New Member

    That makes more sense. Thanks!

Share This Page