Connection reset by peer

#1
Hello,

I'm new on LiteSpeed, and currently using trial.key, before i'm migrate to paid one. I'm getting several issue.

This is my error_log

2012-12-27 09:02:27.176 [INFO] [108.162.224.23:12009-0#APVH_xxx.net] connection to [/tmp/lshttpd/APVH_xxx.net_Suphp.sock.221] on request #500, confirmed, 0, associated process: 15942, running: 1, error: Connection reset by peer!
2012-12-27 09:02:27.460 [INFO] [108.162.225.54:35510-1#APVH_xxx.net] connection to [/tmp/lshttpd/APVH_xxx.net_Suphp.sock.262] on request #500, confirmed, 0, associated process: 15864, running: 1, error: Connection reset by peer!

This error is randomly dumped on my error_log.

I'm not sure why this happen.

Cloud someone help me on this or any staff can look at this issue?

Update : This is cPanel server. I'm using LiteSpeed Web Server Plugins on WHM.

Thanks.:)
 
Last edited:

NiteWave

Administrator
#2
this is [INFO] message, information only, not error at all.

it is relating to this setting:
lsws admin console->Sever->External App->lsphp5
->Environment: PHP_LSAPI_MAX_REQUESTS=500

the above "500" is the cause of following "500":
[/tmp/lshttpd/APVH_xxx.net_Suphp.sock.221] on request #500, confirmed, 0, associated process: 15942, running: 1, error: Connection reset by peer!
the setting's purpose is described here:
http://www.litespeedtech.com/php-litespeed-sapi.html
"LSAPI_MAX_REQS or PHP_LSAPI_MAX_REQUESTS (default value: 10000)
This controls how many requests each child process will handle before it exits automatically. Several PHP functions have been identified having memory leaks. This parameter can help reducing memory usage of leaky PHP functions."
 
#3
2013-01-02 10:34:04.984 [INFO] [69.171.229.112:51834-0#APVH_xxx.net] File not found [/home/yousays/public_html/404.shtml]
2013-01-02 10:34:30.388 [INFO] [118.101.200.134:31236-1#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #1, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:30.419 [INFO] [209.141.60.62:57368-0#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #2, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:30.423 [INFO] [175.141.16.8:25895-0#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #1, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:30.448 [INFO] [115.135.75.242:51608-1#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #2, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:30.476 [INFO] [61.6.56.2:50647-0#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #2, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:30.564 [INFO] [115.135.29.179:53542-0#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #1, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:30.699 [INFO] [60.50.83.204:59145-0#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #1, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:30.712 [INFO] [60.53.25.110:51921-0#APVH_xxx.net] connection to [/tmp/lshttpd/lsphp5.sock.473] on request #1, confirmed, 0, associated process: 6117, running: 1, error: Connection reset by peer!
2013-01-02 10:34:40.471 [NOTICE] [Child: 3821] Shut down successfully!
2013-01-02 10:34:40.483 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets of process with pid=3821 !
2013-01-02 10:34:40.483 [INFO] [CLEANUP] Process with pid: 3828 is not running
2013-01-02 10:34:40.583 [NOTICE] [AutoRestarter] child process with pid=3821 exited with status=0!
2013-01-02 10:34:40.583 [NOTICE] [PID:3818] Server Stopped!
The server stopped and restart again, and this issue will randomly appear.

Here I'm attach my setting.

Could you check what wrong with my setting?


This server is very high load webserver.


Thanks.
 

Attachments

webizen

Well-Known Member
#4
the stop and restart usually has to do with httpd.conf change by cPanel (like adding/changing account config, etc). LSWS pick up the changes via (graceful) restart. It is not a problem and no need to worry.

your lsphp5 settings have followings issues:
1. instances 10 is not right. should set to 1
2. Max Connections needs to match with PHP_LSAPI_CHILDREN (500) if you have PHP suEXEC (Server => General => Using Apache Configuration File) set to No.
 
Top