UJP - サーバのCPUリソースが異常値を示す

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ スキルチャージ の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - サーバのCPUリソースが異常値を示す

サーバのCPUリソースが異常値を示す

カテゴリ : 
スキルチャージ
ブロガー : 
ujpblog 2015/5/19 23:32
 サーバの動作が遅いなと思ったので,MRTGを確認する.CPU Usageが高止まりしている. 


 基本的にはWebサーバなので,HTTPDを確認.
ujp:Caches server$ ps -eo lstart,pid,args | grep httpd
Tue May 19 22:45:53 2015      2960 /opt/local/apache2/bin/httpd -k start
Tue May 19 22:55:17 2015      4150 /opt/local/apache2/bin/httpd -k start
Tue May 19 22:56:39 2015      4520 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:02:32 2015      5027 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:02:34 2015      5028 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:04:26 2015      5148 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:04:26 2015      5149 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:10:23 2015      5715 /opt/local/apache2/bin/httpd -k start
Mon May 18 18:40:40 2015     41138 /opt/local/apache2/bin/httpd -k start ←これ
Tue May 19 21:04:52 2015     92886 /opt/local/apache2/bin/httpd -k start
Tue May 19 21:37:23 2015     96607 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:12:03 2015      5829 grep httpd
ujp:Caches server$ 
 なんだか1つだけ,昨日の日付のままのプロセスがある.HTTPDはApache2で,worker MPMで運用.MaxRequestsPerChildを5000にしているのでプロセスが1日もつ事なんてない.
 プロセス番号41138を見てみる.
ujp:extra server$ ps -ef |grep httpd | grep 41138
   70  5027 41138   0   0:03.39 ??    0:12.81 /opt/local/apache2/bin/httpd -k start
   70  5028 41138   0   0:02.38 ??    0:10.66 /opt/local/apache2/bin/httpd -k start
   70  5148 41138   0   0:03.61 ??    0:12.56 /opt/local/apache2/bin/httpd -k start
   70  5149 41138   0   0:04.34 ??    0:12.61 /opt/local/apache2/bin/httpd -k start
   70  5943 41138   0   0:04.10 ??    0:10.05 /opt/local/apache2/bin/httpd -k start
   70  6919 41138   0   0:00.40 ??    0:01.93 /opt/local/apache2/bin/httpd -k start
   70  6925 41138   0   0:03.27 ??    0:05.40 /opt/local/apache2/bin/httpd -k start
   70  7414 41138   0   0:00.09 ??    0:00.39 /opt/local/apache2/bin/httpd -k start
   70  7415 41138   0   0:00.00 ??    0:00.01 /opt/local/apache2/bin/httpd -k start
   70  7416 41138   0   0:00.90 ??    0:01.35 /opt/local/apache2/bin/httpd -k start
    0 41138     1   0   0:03.87 ??    0:04.71 /opt/local/apache2/bin/httpd -k start  ←これ
ujp:extra server$  
 スレッドの親サーバだから仕方ないか.わからない時の,取り急ぎ再起動.

ujp:extra server$ su - 
Password:
ujp:~ root# /opt/local/apache2/bin/apachectl stop
ujp:~ root# /opt/local/apache2/bin/apachectl start
ujp:~ root# ps -eo lstart,pid,args | grep httpd
Tue May 19 23:30:53 2015      8085 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:30:54 2015      8097 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:30:54 2015      8098 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:30:54 2015      8099 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:30:54 2015      8100 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:30:54 2015      8101 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:30:56 2015      8102 /opt/local/apache2/bin/httpd -k start
Tue May 19 23:31:07 2015      8137 grep httpd
ujp:~ root# 
 これでしばらく様子を見てみる.

トラックバック


広告スペース
Google