phpLsapi process limit

ffeingol

Well-Known Member
#1
OK, I think I understand this setting, but we're getting notice messages in the error log. Here is the notice:

2007-08-08 08:02:17.537 [NOTICE] [config:server:epsr:phpLsapi]'Process Limit' probably is too low, adjust the limit to: 340.

If I understand this correctly there is a soft/hard link to the number of processes that can be started by php (via the sapi). In the lsapi we have:

Max Connections: 40
PHP_LSAPI_CHILDREN=40
Instances: 1
Process soft Limit: 220
Process hard limit: 220

Can one connection open up more than one php process? If not, I don't understand how you can get more than 40 php processes (which is much less than the 220 limit and way, way less than the 340 suggested).

Can you also explain how the 340 "suggestion" is derived.

I'm sure I'm missing something obvious.

TIA,

Frank
 

mistwang

LiteSpeed Staff
#2
The limit is higher because we want to make sure that the limit will not break any thing. During a graceful restart, the number of processes running on the same user ID might be higher than you expected.
The way we calculate the limit is:
( 3 * MaxConn + 50 ) * Number of CPU license
 
Top