Increasing LSAPI_CHILDREN

semprot

Well-Known Member
#21
please try to change "PHP suEXEC Max Conn" in your attached children2-png

I think in this environment, here "Max Conn" will override PHP_LSAPI_CHILDREN in children-png, or it's PHP_LSAPI_CHILDREN in this context.
What about my case?
I still randomly get that error (like 1 time every week).
What should i change?

Thank you :)

Server may double the limit to 240 for 2-CPU license.
Sorry i misread your sentence.
I use 4 CPU license.
I wonder how the number 240 comes.

Thank you.
 
Last edited:

semprot

Well-Known Member
#25
maybe it's from "PHP suEXEC Max Conn" ? show your settings of
lsws web admin -> Server -> General -> Using Apache Configuration File
Here it is :
  • Load Apache Configuration : Yes
  • Auto Reload On Changes : Use Apache binary wrapper
  • Just In Time Configuration : Not Set
  • PHP suEXEC : User's Home Directory Only
  • PHP suEXEC Max Conn : 400
  • Enable FrontPage Extension : Not Set
  • Apache Environment : Not Set

Thank you
 

semprot

Well-Known Member
#26
Code:
2016-12-30 04:12:43.440 [STDERR] Reached max children process limit: 240, extra: 1000, current: 1240, please increase LSAPI_CHILDREN.
I've just changed
  • PHP suEXEC Max Conn : 400 >> 600
Let's hope the error won't come again.
 

bh-tech

Well-Known Member
#27
Hi @semprot and @Hedloff ,

I've just started having the same issue after migrating servers.

Looks like the suggested solution was to increase the PHP suEXEC Max Conn.

Just wondering how that has gone since the change was made - has it fixed the issue for good?

@Hedloff - yours was originally at 10 (same as mine atm) - what did you increase it to?
 

Hedloff

Well-Known Member
#28
I took a look now, but still some servers report this. We have different kind of servers setup and some more targeted to sites with more traffic and there I had the limit to 30 and a test server with 50. Both report the limit reached, but 50 was not reached so often:

2017-02-23 13:35:52.268 [STDERR] Reached max children process limit: 30, extra: 10, current: 40, please increase LSAPI_CHILDREN.
2017-02-24 11:38:39.240 [STDERR] Reached max children process limit: 30, extra: 10, current: 40, please increase LSAPI_CHILDREN.
2017-02-24 11:38:39.340 [STDERR] Reached max children process limit: 30, extra: 10, current: 40, please increase LSAPI_CHILDREN.

2017-02-16 10:11:43.902 [STDERR] Reached max children process limit: 50, extra: 16, current: 66, please increase LSAPI_CHILDREN.
2017-02-16 10:11:43.950 [STDERR] Reached max children process limit: 50, extra: 16, current: 66, please increase LSAPI_CHILDREN.
2017-02-16 10:11:43.987 [STDERR] Reached max children process limit: 50, extra: 16, current: 66, please increase LSAPI_CHILDREN.

But on ordinary servers I have setup 15 + 5.
Seems like I need to take a closer look at the logs when I got the time :)
 

bh-tech

Well-Known Member
#29
Hi @Hedloff - Appreciate you getting back to me.

Our issue does seem to be solved now. We increased ours to 100, and it has been performing well. However I'm thinking that potentially after letting the migrated server sit for a while, I will try to reduce to 50 and see if there is any performance issue then.

From my understanding it is better to have it as low as possible, I'm just not sure what performance advantage that offers.
 

Jon K

Administrator
Staff member
#30
With the LSAPI_CHILDREN you do want it to be as low as possible, at least for shared environments anyway. The reason for that is this way there aren't a lot of branched off processes taking up your server resources. If you just are hosting one site or a few and have plenty of resources you should be fine setting the number to almost any number without it causing issues. This is one of those settings that sometimes requires careful watch to tune properly.
 
Last edited:
#31
I am using OLS? Where to change value?

I have
PHP_LSAPI_CHILDREN=150

But still error like -

2020-09-08 03:22:25.977 [STDERR] [8130] Reached max children process limit: 10, extra: 3, current: 13, busy: 13, please increase LSAPI_CHILDREN.
2020-09-08 03:22:26.078 [STDERR] [8130] Reached max children process limit: 10, extra: 3, current: 13, busy: 13, please increase LSAPI_CHILDREN.
 
Top