pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

raspberry piのapacheを以前から起動プロセスを減らしたいと思っていたけど

2014-09-02 05:11:16 | くじら伝説

raspberry piのapacheが以前から起動プロセスを減らしたいと思っていたけど、

少し頭の体操がてらconfを調整を

[root@remote-hand conf]# systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: active (running) since Sat 2014-08-16 17:26:42 JST; 2 weeks 2 days ago
Process: 20853 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
Process: 7754 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Main PID: 22938 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: name=systemd:/system/httpd.service
tq 3334 /usr/sbin/httpd -DFOREGROUND
tq 8114 /usr/sbin/httpd -DFOREGROUND
tq 8116 /usr/sbin/httpd -DFOREGROUND
tq 8118 /usr/sbin/httpd -DFOREGROUND
tq11240 /usr/sbin/httpd -DFOREGROUND
tq15659 /usr/sbin/httpd -DFOREGROUND
tq15749 /usr/sbin/httpd -DFOREGROUND
tq22545 /usr/sbin/httpd -DFOREGROUND
tq22938 /usr/sbin/httpd -DFOREGROUND
tq24656 /usr/sbin/httpd -DFOREGROUND
mq27374 /usr/sbin/httpd -DFOREGROUND

Aug 26 14:54:46 remote-hand.local crontab[13993]: (apache) REPLACE (apache)
Aug 26 18:59:39 remote-hand.local crontab[2397]: (apache) REPLACE (apache)
Aug 26 18:59:40 remote-hand.local crontab[2445]: (apache) REPLACE (apache)
Aug 26 19:01:43 remote-hand.local crontab[12193]: (apache) REPLACE (apache)
Aug 27 03:17:03 remote-hand.local systemd[1]: Reloading The Apache HTTP Server.
Aug 27 03:17:07 remote-hand.local systemd[1]: Reloaded The Apache HTTP Server.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.


以下を最終行へ追加
#pepo
<IfModule prefork.c>
StartServers 1
MinSpareServers 2
MaxSpareServers 2
ServerLimit 50
MaxClients 50
MaxRequestsPerChild 1000
#StartServers 8
#MinSpareServers 5
#MaxSpareServers 20
#ServerLimit 256
#MaxClients 256
#MaxRequestsPerChild 4000
</IfModule>

再起動
[root@remote-hand conf]# systemctl restart httpd
[root@remote-hand conf]# systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: active (running) since Tue 2014-09-02 05:07:42 JST; 36s ago
Process: 24616 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
Process: 7754 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Main PID: 24830 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: name=systemd:/system/httpd.service
tq24830 /usr/sbin/httpd -DFOREGROUND
tq25365 /usr/sbin/httpd -DFOREGROUND
mq25424 /usr/sbin/httpd -DFOREGROUND

Sep 02 05:07:42 remote-hand.local systemd[1]: Started The Apache HTTP Server.
少し軽くなったか 


最新の画像もっと見る

コメントを投稿

ブログ作成者から承認されるまでコメントは反映されません。