LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > How do I imlement PHP_LSAPI_CHILDREN?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-26-2007, 11:31 PM
travisbell travisbell is offline
Senior Member
 
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
Default How do I imlement PHP_LSAPI_CHILDREN?

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!
Reply With Quote
  #2  
Old 01-27-2007, 06:44 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
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.
Reply With Quote
  #3  
Old 01-27-2007, 08:37 AM
travisbell travisbell is offline
Senior Member
 
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
That makes more sense. Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:50 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.