ドットインストール代表のライフハックブログ
apacheのコネクションについて 急にアクセス数が増えて、サービス中のサイトが重くなることがあると思います。単にアクティブユーザ数が増えた・・・または、スパムが襲撃してきた等原因は様々ですが、リアルタイムでのapacheの稼動状況を調べる方法があります。 ____ /:::::::::: u\ /:::::::::⌒ 三. ⌒\ あれ? /:::::::::: ( ○)三(○)\ サイトおもくね・・・? |::::::::::::::::⌒(__人__)⌒ | ________ \:::::::::: ` ⌒´ ,/ .| | | ノ::::::::::u \ | | | /::::::::::::::::: u |
現在の同時接続数を確認する 以前やる夫がapacheのコネクション数を調べるようです。でも説明しましたが、なんとなく追記・・・。現在のMaxClientsの設定は24のようです。 # grep Max httpd.conf MaxSpareServers 24 MaxClients 24 # /usr/bin/wget http://localhost:8080/server-status -O- -o/dev/null | grep -e 'requests curren tly being processed' | awk '{print $1}' 23 上記コマンドで、同時接続数を調べることが出来ます。23ってことは少なからずサービスに影響がありそうです。MaxClientsの数を上げる必要があります。MaxClientsを上げると、それだけ数を捌くことができますが、DB等に影響を
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く