LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   Connection reset by peer (http://www.litespeedtech.com/support/forum/showthread.php?t=5777)

IanD 03-18-2012 08:04 AM

Connection reset by peer
 
Hi,

I'm getting a lot of these in my log files:

2012-03-18 15:01:46.919 [INFO] [removed:34994-0#APVH_removed] connection to [/tmp/lshttpd/lsphp5.sock.461] on request #195, confirmed, 0, associated process: 21531, running: 1, error: Connection reset by peer!
2012-03-18 15:01:46.921 [INFO] [removed:12518-0#APVH_removed] connection to [/tmp/lshttpd/lsphp5.sock.461] on request #192, confirmed, 0, associated process: 21531, running: 1, error: Connection reset by peer!
2012-03-18 15:01:46.927 [INFO] [removed:50220-0#APVH_removed] connection to [/tmp/lshttpd/lsphp5.sock.461] on request #144, confirmed, 0, associated process: 21531, running: 1, error: Connection reset by peer!
2012-03-18 15:01:46.932 [INFO] [removed:40625-0#APVH_removed] connection to [/tmp/lshttpd/lsphp5.sock.461] on request #21, confirmed, 0, associated process: 21531, running: 1, error: Connection reset by peer!
2012-03-18 15:01:46.938 [INFO] [removed:64243-0#APVH_removed] connection to [/tmp/lshttpd/lsphp5.sock.461] on request #18, confirmed, 0, associated process: 21531, running: 1, error: Connection reset by peer!
2012-03-18 15:01:47.543 [INFO] [removed:2382-0#APVH_removed] connection to [/tmp/lshttpd/lsphp5.sock.461] on request #2, confirmed, 0, associated process: 21531, running: 1, error: Connection reset by peer!

What's the best way to debug this? Is there a guide somewhere?

I believe you can look at the PHP process somehow but I can't find the instructions now.

Many thanks,

Ian

webizen 03-19-2012 11:57 AM

Looks like PHP crashed while processing the script. Search the entries around to find URL/php script in question. See if it can be reliably reproduced every time a page is requested. Switch back to Apache and see you get blank page for the same page.

You may want to enable PHP core dump (http://www.litespeedtech.com/support...e_dump_for_php) to find out why.

IanD 03-19-2012 12:37 PM

Thanks - I've seen random blank pages but didn't realise this is the problem. Never the same script every time.

I'll enable core dump for PHP - where would this be stored?

webizen 03-19-2012 01:13 PM

php cores should be stored at where php script resides.

here is some info to debug:

http://www.litespeedtech.com/support...ead.php?t=4756


All times are GMT -7. The time now is 11:43 AM.