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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Many lsphp Processes

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2005, 12:48 PM
bkonia bkonia is offline
Member
 
Join Date: Sep 2005
Posts: 16
Default Many lsphp Processes

I'm running PHP 5.0.5 with LSAPI configured as follows:

Max Connections = 300
Instances = 1
PHP_LSAPI_CHILDREN=300

The server is practically idling (one active HTTP request), yet when I do a ps -A, I see that I have 300 lsphp processes running. Is this the way it's supposed to be?

I was under the impression that if Instances = 1, it would only launch a single lsphp process. I apologize if my knowledge of Linux processes is lacking, but is PS supposed to show all the child processes, or just the parent process?

Also, isn't it supposed to kill the process when it's done? Why would I have 300 active processes with only a single page request?
Reply With Quote
  #2  
Old 10-19-2005, 01:06 PM
ts77 ts77 is offline
Senior Member
 
Join Date: Nov 2004
Posts: 288
no, that means that one parent-process spawns 300 child processes.
lsws has no control of them other than of the parent-process.

so there will be always 300 processes, even if 299 of them are idle or something.
Reply With Quote
  #3  
Old 10-19-2005, 01:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Like Thomas said, that's normal if you configured PHP like that.

If you want LSWS spawns LSAPI PHP processes on demand, you can remove
PHP_LSAPI_CHILDREN=300, and set Instances to 300, but one drawback with this thought, each PHP process will create it own shared memory for opcode cache.

And I think you don't really need to set Max connections to 300, 50 is more than enough for most web sites. :-)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to understand phplsapi settings PSS PHP 4 07-16-2007 12:17 PM
Urgent Help Needed, getting DUgg and Slashdotted piper Install/Configuration 14 05-21-2007 01:28 PM
FastCGI spawning more processes jooray Bug Reports 7 01-02-2007 03:50 PM
litespeed stop responding shadowlight Install/Configuration 12 11-28-2006 05:58 PM
PHP processes constantly climbing matt Bug Reports 9 11-22-2005 11:54 AM


All times are GMT -7. The time now is 08:48 AM.



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