503 error when Litespeed Cache is activated
-
Hi there, I recieve a 503 error when Litespeed Cache is activated on my site, running on an OpenLiteSpeed server on Google Cloud.
Any idea what can cause this?
Thanks!
The page I need help with: [log in to see the link]
-
Hi,
which page you get the 503 error ?
Best regards,
Hi there, it’s not on any specific page, also on the front page.
Regards
CarstenHi,
Could you please check /usr/local/lsws/logs/stderr.log , see if there is anhing inside of it ?
Best regards,
Hi there, where do I find this log?
Regards
Hi,
/usr/local/lsws/logs/stderr.log
Best regards,
I don’t know the right command to show this log
Hi,
no , it’s text file , you can not execute it , you need to view it
Best regards,
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 TopHi,
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,
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
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.
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
?https://www.howtoforge.com/faq/how-to-edit-files-on-the-command-line
there are plenty guides on Internet
Thanks, I will look into this tutorial
Regards
- The topic ‘503 error when Litespeed Cache is activated’ is closed to new replies.