Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

why apache create child process one more than startservers config parameter?

19 views
Skip to first unread message

Jeff

unread,
Sep 7, 2022, 11:29:35 PM9/7/22
to
why apache create child process one more than startservers config parameter?

* http-mpm.conf (worker)
StartServers 5

* Real Process count(ps -ef httpd)
Parrent 1
Child 6 (one more than 'StartServers 5')


Eli the Bearded

unread,
Sep 8, 2022, 1:00:23 AM9/8/22
to
StartServers is not a maximum, it's a hint for expected load at startup.

MinSpareServers and MaxSpareServers influence the number of processes by
controlling how many idle children to have.

MaxRequestWorkers (aka MaxClients) is the hard cap on the number of
processes.

https://httpd.apache.org/docs/2.4/mod/mpm_common.html
https://httpd.apache.org/docs/2.4/mod/prefork.html

Elijah
------
four spare is a good config on a tiny vm

Jeff

unread,
Sep 8, 2022, 2:13:37 AM9/8/22
to
2022년 9월 8일 목요일 오후 2시 0분 23초 UTC+9에 Eli the Bearded님이 작성한 내용:
The one httpd was cgi daemon.

# pstack 57676
#0 0x000000387620eb10 in __accept_nocancel () from /lib64/libpthread.so.0
#1 0x00007fde96fd7bae in cgid_server () from /usr/local/apachesso/modules/mod_cgid.so
#2 0x00007fde96fd89b4 in cgid_start () from /usr/local/apachesso/modules/mod_cgid.so
#3 0x00007fde96fd8ad0 in cgid_init () from /usr/local/apachesso/modules/mod_cgid.so
#4 0x00000000004581c9 in ap_run_post_config ()
#5 0x0000000000430d59 in main ()

Thanks.
0 new messages