2013年9月28日土曜日

Server Protect 異常確認と停止


TOPコマンドで、現在のリソース状況を表示してみる。
Cpu(s)が、99.7%で高いCPU負荷となっている、その大半がsplxmainのプロセスによる。
そのsplxmainのPIDは、9592である。


top - 17:59:46 up 119 days,  1:29,  1 user,  load average: 1.02, 1.02, 1.00
Tasks: 193 total,   2 running, 191 sleeping,   0 stopped,   0 zombie
Cpu(s): 99.7%us,  0.3%sy,  0.0%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   3925308k total,  3722028k used,   203280k free,   293460k buffers
Swap:  4194296k total,    11240k used,  4183056k free,  2851780k cached

PID   USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
9592  root      20   0 15136 4008 1392 R 97.2  0.1   1041:35 splxmain
2550  root      20   0  149m  83m 2868 S  2.3  2.2 388:27.91 vsapiapp
25966 root      20   0 15092 1320  964 R  0.3  0.0   0:00.07 top
29280 root      20   0 13484 5640 3656 S  0.3  0.1  19:06.98 jpcsto

-------------------------------------------------------------------------

psfreeコマンドで、splxmainのプロセス構成を確認して、プロセスを一括削除する。

[root@XXa1mg27 ~]# pstree | grep splxmain
|-crond---crond---sh---splxmain---splxmain
[root@XXa1mg27 ~]# pstree -p| grep splxmain
|-crond(2209)---crond(9588)---sh(9590)---splxmain(9592)---splxmain(9598)
[root@XXa1mg27 ~]# kill -9 9592 9598

--------------------------------------------------------------------------
Server Protect を再起動する
<

[root@XXa1mg27 ~]# service splx restart
Shutting down ServerProtect for Linux:
Shutting down splxcore:
Shutting down vsapiapp [ OK ] 
Unloading splx kernel module: [ OK ] 
Shutting down entity: [ OK ]
ServerProtect for Linux core stopped normally.
[ OK ]
Shutting down splxhttpd:
Shutting down splxhttpd: [ OK ]
ServerProtect for Linux httpd stopped normally.
[ OK ]
ServerProtect for Linux stopped normally.
Starting ServerProtect for Linux:
Checking configuration file: [ OK ]
Starting splxcore:
Starting Entity: [ OK ]
Loading splx kernel module: [ OK ]
Starting vsapiapp: [ OK ]
ServerProtect for Linux core started.
[ OK ]
Starting splxhttpd:
Starting splxhttpd: [ OK ]
ServerProtect for Linux httpd started.
[ OK ]
ServerProtect for Linux started.
[root@XXa1mg27 ~]#
--------------------------------------------------------------------------