1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Apacheバージョンアップしたらpreforkモジュールに施したチューニングが効かなくなった

Last updated at Posted at 2016-10-20

何が起きたか?

  • とあるアプリのバージョンアップに伴い、Apacheのバージョンも2.2.27から2.4.16に上がった
  • preforkモジュールに対し、同様のパラメーターチューニングを施すもなんか効いてない・・・
  • \(^o^)/

解決方法

Apache2.4からデフォルトのMPMがpreforkからworkerに変わっておりました。

Apache2.2
[root@centos ~]# /usr/local/bin/apachectl -V | grep MPM
Server MPM:     Prefork
Apache2.4
[root@centos ~]# /usr/local/bin/apachectl -V | grep MPM
Server MPM:     worker

こうしました

httpd.conf
# 下記を追加
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
# 下記を削除 or コメントアウト
# LoadModule mpm_worker_module modules/mod_mpm_worker.so

プロセス再起動するとこうなります

Apache2.4
[root@centos ~]# /usr/local/bin/apachectl -V | grep MPM
Server MPM:     Prefork

参考

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?