Applicable to:
- Plesk Onyx for Linux
- Plesk 11.x for Linux
- Plesk 12.0 for Linux
症状
サーバは通常モードで機能していますが、Apache の CPU 使用率とメモリ使用率が高すぎます。
/var/log/httpd/error_log
ファイルに、以下のエラーが記録されています。
[warn-phpd] mmap cache can't open /var/www/vhosts/example.com/httpdocs too many open files (pid 885428)
原因
この挙動は、Apache の構成
PHP_ADMIN_VALUE
、
open_basedir
、または
safe_mode
が 'ON' に設定されていると発生します。これにより PHP エンジンのパフォーマンスが低下し、サーバのパフォーマンスに多大な影響を与えます。
http://bugs.php.net/bug.php?id=52312 を参照してください。
解決策
-
php.ini
設定で、パラメータ値を以下のように設定します。realpath_cache_size=1024k
realpath_cache_ttl=7200
realpath_cache_size=40960k
realpath_cache_ttl=72000
memory_limit = 96M -
/etc/init.d/httpd
起動スクリプトに以下の行を追加します。start() {
#Raise the ulimit
ulimit -n 262144 <--- add this line
コメント
0件のコメント
ログインしてコメントを残してください。