• Resolved Carsten Lund

    (@carsten-lund)


    Hi there, I recieve a 503 error when Litespeed Cache is activated on my site, running on an OpenLiteSpeed server on Google Cloud.

    View post on imgur.com

    Any idea what can cause this?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    which page you get the 503 error ?

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi there, it’s not on any specific page, also on the front page.

    Regards
    Carsten

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please check /usr/local/lsws/logs/stderr.log , see if there is anhing inside of it ?

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    Hi there, where do I find this log?

    Regards

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    /usr/local/lsws/logs/stderr.log

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    I don’t know the right command to show this log

    Thread Starter Carsten Lund

    (@carsten-lund)

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    no , it’s text file , you can not execute it , you need to view it

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    I this what you are looking for?

    2020-11-29 12:40:00.399 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:00.448 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:00.548 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:00.648 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:00.748 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:00.848 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:00.949 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.149 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.249 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.349 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.449 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.550 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.652 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.752 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.852 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:01.952 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:02.052 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    2020-11-29 12:40:02.153 [STDERR] [106177] Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.
    @@@
    “/usr/local/lsws/logs/stderr.log” [readonly] 41168L, 6156757C 1,1 Top

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yeah

    Reached max children process limit: 10, extra: 0, current: 10, busy: 10, please increase LSAPI_CHILDREN.

    this seems interesting

    the max PHP processes allowed is 10 , when it requires more PHP to start up , it will either be hold-in-line , or returns as 503 error

    raise the limit from 10 to 15 or 20

    run

    grep -riF "LSAPI_CHILDREN" /usr/local/lsws/conf

    it should returns you 2 or 3 files , edit them , you will see 2 lines as

      maxConns                10
      env                     PHP_LSAPI_CHILDREN=10

    change them to 10 or 15 , then restart OLS by systemctl restart lsws

    Best regards,

    Thread Starter Carsten Lund

    (@carsten-lund)

    This is what it returns:

     sudo grep -riF "LSAPI_CHILDREN" /usr/local/lsws/conf
    /usr/local/lsws/conf/httpd_config.conf0:    env                             PHP_LSAPI_CHILDREN=10
    /usr/local/lsws/conf/httpd_config.conf:    env                             PHP_LSAPI_CHILDREN=10
    /usr/local/lsws/conf/httpd_config.conf0,v:    env                             PHP_LSAPI_CHILDREN=10
    /usr/local/lsws/conf/httpd_config.conf.dpkg:    env                             PHP_LSAPI_CHILDREN=10
    Plugin Support qtwrk

    (@qtwrk)

    edit this file

    /usr/local/lsws/conf/httpd_config.conf

    find these 2 lines

      maxConns                10
      env                     PHP_LSAPI_CHILDREN=10

    change it from 10 to higher number , don’t go too high , gradually raise , as 15 or 20 and monitoring your RAM

    too many PHP process could easily overwhelm RAM.

    Thread Starter Carsten Lund

    (@carsten-lund)

    Linux is new to me, could you guide me how to edit these files?

    First I’m not sure if I should use sudo to open /usr/local/lsws/conf/httpd_config.conf?

    Plugin Support qtwrk

    (@qtwrk)

    Thread Starter Carsten Lund

    (@carsten-lund)

    Thanks, I will look into this tutorial

    Regards

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘503 error when Litespeed Cache is activated’ is closed to new replies.