Too many lsphp connections.

#1
Hi,

There are many active lsphp connections. We have high traffic. Daily 100-200k. While the amount of online visitors is high, the load average is sometimes 1-2. However, at lower traffic, sometimes the load average is 50-60. lsphp processes stay open for too long. How should i configure the settings

CPU is 2xE52680v2
Memory is 62GB

My configurations for lsphp
Max Connections: 1500
Environment: PHP_LSAPI_CHILDREN=1500 - LSAPI_AVOID_FORK=200M
Initial Request Timeout (secs): 40
Persistent Connection: yes
Connection Keep-Alive Timeout: not set
Instances: 1
Max Idle Time: not set
Process Soft Limit: 1400
Process Hard Limit: 1500
 

Attachments

Cold-Egg

Administrator
#2
Max Connections: 1500 and PHP_LSAPI_CHILDREN=1500 numbers are too high, please try 200 instead.
I think the traffic/connection is still there so the php process does not close.
When the traffic is low, but the number of lsphp numbers is high, please try `killall lsphp` and see if no more lsphp processes are generated. If so, then you can try to remove LSAPI_AVOID_FORK=200M, if the lsphp process is re-generated, then it means the connections are still there.
 
Top