Connection reset by peer Error

semprot

Well-Known Member
#1
Before creating this thread, i have googled and found some threads on litespeedtech, but i still can't fix it. So i have to create a thread.

I use : Litespeed Web Server Enterprise v4.1.12 (2 cpu license)
I have APC installed.

On last few days, i have stability issue on the webserver. I think it is restarted because i have apc script that detects the APC uptime. I think APC uptime relates closely with litespeed uptime so i check the litespeed log, i find quite lot of this line :

Code:
[[B][color=red]110.139.150.253[/color][/B]:2285-0#APVH_mydomain.com] connection to [/tmp/lshttpd/lsphp5.sock.153] on request #100, confirmed, 0, associated process: 18119, running: 1, error: Connection reset by peer!
Before that line, i only find lot of 404 not found lines.
And i've tried to search IP address (110.139.150.253 on the example above) on the litespeed log several pages before that line, but i see no matching IP.

Please help me to find out whether that "Connection reset by peer" relates to my server uptime. And if so, how to fix it.

Thanks.
 

webizen

Well-Known Member
#2
LSWS uptime has no correlation with "Connection reset by peer" message which basically indicates php process crashed when taking user request mostly due to php coding problem.

check /usr/local/lsws/logs/ap_cmd_param.log and see if it matches the uptime (between restarts) you observed. it could be something else restart lsws.
 

semprot

Well-Known Member
#3
Most of the latest lines are these

Code:
Thu Jun 21 20:23:15 CDT 2012: -k start -DSSL
Thu Jun 21 20:23:51 CDT 2012: -k stop -DSSL
Thu Jun 21 20:23:51 CDT 2012: -k start -DSSL
Thu Jun 21 20:24:02 CDT 2012: -k stop -DSSL
Thu Jun 21 20:33:07 CDT 2012: -v
Thu Jun 21 20:33:09 CDT 2012: -k stop -DSSL
Thu Jun 21 20:33:09 CDT 2012: -k start -DSSL
Thu Jun 21 20:33:10 CDT 2012: -V
Thu Jun 21 20:33:10 CDT 2012: -l
Thu Jun 21 20:33:10 CDT 2012: -v
Thu Jun 21 21:51:47 CDT 2012: -DSSL -t -f /usr/local/apache/conf/httpd.conf
Thu Jun 21 21:51:48 CDT 2012: -k graceful
Thu Jun 21 21:51:54 CDT 2012: -v
Thu Jun 21 21:51:54 CDT 2012: -DSSL -t -f /usr/local/apache/conf/httpd.conf
Thu Jun 21 21:51:54 CDT 2012: -l
Thu Jun 21 21:51:54 CDT 2012: -V
Thu Jun 21 21:52:13 CDT 2012: -k stop -DSSL
Thu Jun 21 21:52:13 CDT 2012: -k start -DSSL
Thu Jun 21 21:52:14 CDT 2012: -v
Thu Jun 21 21:52:14 CDT 2012: -V
Thu Jun 21 21:52:14 CDT 2012: -l
Thu Jun 21 21:52:32 CDT 2012: -k graceful
Thu Jun 21 21:52:47 CDT 2012: -k stop -DSSL
Thu Jun 21 21:52:47 CDT 2012: -k start -DSSL
Code:
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -v
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 22:58:17 CDT 2012: -l
Thu Jun 21 23:01:23 CDT 2012: -l
Thu Jun 21 23:06:31 CDT 2012: -V
Thu Jun 21 23:06:31 CDT 2012: -l
Thu Jun 21 23:06:31 CDT 2012: -DSSL -t -f /usr/local/apache/conf/httpd.conf
Thu Jun 21 23:06:35 CDT 2012: -DSSL -t -f /usr/local/apache/conf/httpd.conf.1340337991
Thu Jun 21 23:06:37 CDT 2012: -k stop -DSSL
Thu Jun 21 23:06:37 CDT 2012: -k start -DSSL
Thu Jun 21 23:07:13 CDT 2012: -k stop -DSSL
Thu Jun 21 23:07:13 CDT 2012: -k start -DSSL
Thu Jun 21 23:07:24 CDT 2012: -k stop -DSSL
Thu Jun 21 23:16:28 CDT 2012: -v
Thu Jun 21 23:16:29 CDT 2012: -k stop -DSSL
Thu Jun 21 23:16:29 CDT 2012: -k start -DSSL
Thu Jun 21 23:16:30 CDT 2012: -V
Thu Jun 21 23:16:30 CDT 2012: -l
Thu Jun 21 23:16:30 CDT 2012: -v
Is there any clue?

Thanks.
 
Top