error: Connection reset by peer!

Discussion in 'General' started by hd-sam, Jul 24, 2013.

  1. hd-sam

    hd-sam New Member

    I'm receiving these in our error logs every minute or two:

    2013-07-24 13:18:18.425 [INFO] [IP.ADDRESS:12112-1#APVH_deprecated.com] connection to [/tmp/lshttpd/lsphp5.sock.585] on request #500, confirmed, 0, associated process: 2040, running: 1, error: Connection reset by peer!

    I recently ran an easyapache to add the pspell module. I'm wondering if the errors are because I'm using PHP version 5.3.27. It says Litespeed supports up to 5.3.25, so I went to EasyApache to downgrade and it only goes to 5.3.26. Apache and LS both have matching configuration.

    Any ideas?
  2. NiteWave

    NiteWave Administrator

    this is by design.
    please refer:
    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."

    you can adjust it in admin console:
    Server->External App->lsphp5->Environment
    PHP_LSAPI_MAX_REQUESTS=500

    change 500 to 1000 or 5000 or any other.

    if you're sure the PHP script is stable, you can safely bump it up.
    for instance, an ads server which run openX only, admin set it to 15000 for a long time and no issue so far.

Share This Page