Hi there,
we are running version 3.3.14 with LSAPI php (php version: 4.4.9, LSAPI version: 4.1) we are hostin approximately 280 php domains and couple of rails applications (5 I think of which 3 are being frequented more) on a 2-CPU box with 4GB of RAM. Recently we started to run into connection timeouts to the lsapi php socket:
and connection resets
Connection timeouts are occurring only during high traffic, connection resets are present all the time. By high traffic I mean 100 concurrent connections.
Could you please shed some light into how we could improve things so we wouldn't get into connection timeouts so easily?
I am including some configuration:
General
Tuning/Connection
Security/External Application Resource
LSAPI PHP
Thank you!
we are running version 3.3.14 with LSAPI php (php version: 4.4.9, LSAPI version: 4.1) we are hostin approximately 280 php domains and couple of rails applications (5 I think of which 3 are being frequented more) on a 2-CPU box with 4GB of RAM. Recently we started to run into connection timeouts to the lsapi php socket:
Code:
2009-12-20 13:35:34.066 [INFO] [65.55.106.210:48960-0#APVH_***:80] connection to [uds://tmp/lshttpd/global-php.sock] on request #24, error: Connection timed out!
Code:
2010-01-28 09:26:42.014 [INFO] [12.32.232.44:11879-0#APVH_***:80] connection to [uds://tmp/lshttpd/global-php.sock] on request #13, error: Connection reset by peer!
Could you please shed some light into how we could improve things so we wouldn't get into connection timeouts so easily?
I am including some configuration:
General
Code:
Priority:15
Memory I/O Buffer:1G
Code:
Max Connections: 200
Max SSL Connections: 100
Connection Timeout (secs): 300
Max Keep-Alive Requests: 20
Smart Keep-Alive: Yes
Keep-Alive Timeout (secs): 5
Send Buffer Size (bytes): 0
Receive Buffer Size (bytes): 0
Code:
CPU Soft Limit (sec):300
CPU Hard Limit (sec):600
Memory Soft Limit (bytes):500M
Memory Hard Limit (bytes):600M
Process Soft Limit:50
Process Hard Limit:50
Code:
Name : global-php
Address: uds://tmp/lshttpd/global-php.sock
Notes : Not Set
Max Connections: 200
Environment: LSAPI_CHILDREN=200, LSAPI_MAX_REQS=100, LSAPI_MAX_IDLE=20, LSAPI_MAX_IDLE_CHILDREN=1
Initial Request Timeout (secs): 300
Retry Timeout (secs): 0
Persistent Connection: Yes
Connection Keepalive Timeout: 5
Response Buffering: No
Auto Start: Yes
Command: $SERVER_ROOT/fcgi-bin/lsphp
Back Log: 100
Instances: 1
Run On Start Up: Yes
Max Idle Time: 20
Priority: Not Set
Memory Soft Limit (bytes): 300M
Memory Hard Limit (bytes): 500M
Process Soft Limit: 80
Process Hard Limit: 100