Can't change the number of workers in httpd-mpm

Ask questions about Arch Linux ARM. Please search before making a new topic.

Can't change the number of workers in httpd-mpm

Postby starlays » Sun Oct 13, 2019 7:49 pm

I have an odd problem, I cant't change the number of workers of httpd-mpm.
I have done:
$this->bbcode_second_pass_code('', '$ apachectl -M | grep mpm
mpm_event_module (shared)
$ httpd -V | grep MPM
Server MPM: event
')
I have changed the number of workers in:
$this->bbcode_second_pass_code('', '/etc/httpd/conf/extra/httpd-mpm.conf')
in the section:
$this->bbcode_second_pass_code('', '
# event MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestWorkers: maximum number of worker threads
# MaxConnectionsPerChild: maximum number of connections a server process serves
# before terminating
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 75
MaxSpareThreads 250
ThreadsPerChild 25
MaxRequestWorkers 400
MaxConnectionsPerChild 0
</IfModule>
')
Then tried:
$this->bbcode_second_pass_code('', '# systemctl reload httpd.service ')
and
$this->bbcode_second_pass_code('', '# systemctl stop then start httpd.service')
and the number of httpd span workers is still 3. I don't know why...
$this->bbcode_second_pass_code('', '
$pstree
systemd-+-agetty
|-dbus-daemon
|-haveged
|-httpd---3*[httpd---63*[{httpd}]]
.....
')
httpd log:
$this->bbcode_second_pass_code('', '
journalctl -u httpd.service
-- Logs begin at Tue 2019-09-24 02:54:27 EEST, end at Sun 2019-10-13 20:17:18 EEST. --
Oct 12 20:16:18 piserver systemd[1]: Started Apache Web Server.
Oct 13 13:59:49 piserver systemd[1]: Stopping Apache Web Server...
Oct 13 13:59:49 piserver systemd[1]: httpd.service: Succeeded.
Oct 13 13:59:49 piserver systemd[1]: Stopped Apache Web Server.
-- Reboot --
Oct 13 13:59:53 piserver systemd[1]: Started Apache Web Server.
Oct 13 15:38:25 piserver systemd[1]: Stopping Apache Web Server...
Oct 13 15:38:26 piserver systemd[1]: httpd.service: Succeeded.
Oct 13 15:38:26 piserver systemd[1]: Stopped Apache Web Server.
Oct 13 15:38:27 piserver systemd[1]: Started Apache Web Server.
Oct 13 16:54:33 piserver systemd[1]: Reloading Apache Web Server.
Oct 13 16:54:33 piserver systemd[1]: Reloaded Apache Web Server.
Oct 13 19:03:07 piserver systemd[1]: Stopping Apache Web Server...
Oct 13 19:03:08 piserver systemd[1]: httpd.service: Succeeded.
Oct 13 19:03:08 piserver systemd[1]: Stopped Apache Web Server.
Oct 13 19:03:08 piserver systemd[1]: Started Apache Web Server.
Oct 13 19:03:59 piserver systemd[1]: Reloading Apache Web Server.
Oct 13 19:03:59 piserver systemd[1]: Reloaded Apache Web Server.
Oct 13 19:35:27 piserver systemd[1]: Stopping Apache Web Server...
Oct 13 19:35:27 piserver systemd[1]: httpd.service: Succeeded.
Oct 13 19:35:27 piserver systemd[1]: Stopped Apache Web Server.
Oct 13 19:37:20 piserver systemd[1]: Started Apache Web Server.
')

What I'm doing wrong? :(
Thank you.
starlays
 
Posts: 1
Joined: Sun Oct 13, 2019 7:39 pm

Return to User Questions

Who is online

Users browsing this forum: No registered users and 2 guests