カーネルがすべてのプロセスを終了する

カーネルがすべてのプロセスを終了する

私のCent os 6.7(2.6.32-573.el6.x86_64)仮想マシンLinuxの1つは、アプリケーションだけでなくcron、auditd、httpd、およびmysqlを含むすべてのプロセスを終了しました。状態を照会すると、pid ファイルは存在しますが、サービスが停止したと表示されます。サーバーは mysql クラスターの sql ノードです。この問題は、サーバーの再起動後に頻繁に発生し、正常に動作するまで 2 ~ 3 回かかります。監査ログを有効にしました。以下はメッセージログです。

kernel: audit: *NO* daemon at audit_pid=17901
kernel: audit: audit_lost=89 audit_rate_limit=0 audit_backlog_limit=320
kernel: audit: auditd dissapeared
kernel: type=1318 audit(1488753001.130:770): opid=19004 oauid=0 ouid=0 oses=51 ocomm="callapi.sh"
kernel: type=1300 audit(1488753001.130:771): arch=c000003e syscall=62 success=yes exit=0 a0=4a52 a1=9 a2=9 a3=4a52 items=0 ppid=19009 pid=19032 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=49 comm="kill" exe="/bin/kill" key="teste_kill"
kernel: type=1318 audit(1488753001.130:771): opid=19026 oauid=0 ouid=0 oses=51 ocomm="callapi.sh"
kernel: type=1300 audit(1488753001.130:772): arch=c000003e syscall=62 success=yes exit=0 a0=46be a1=9 a2=9 a3=46be items=0 ppid=19009 pid=19032 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=49 comm="kill" exe="/bin/kill" key="teste_kill"
kernel: type=1318 audit(1488753001.130:772): opid=18110 oauid=0 ouid=0 oses=44 ocomm="crond" type=1300 audit(1488753001.130:773): arch=c000003e syscall=62 success=yes exit=0 a0=4a34 a1=9 a2=9 a3=4a34 items=0 ppid=19009 pid=19032 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=49 comm="kill" exe="/bin/kill" key="teste_kill"
kernel: type=1318 audit(1488753001.130:773): opid=18996 oauid=0 ouid=0 oses=50 ocomm="crond"
init: tty (/dev/tty1) main process (14691) killed by KILL signal
init: tty (/dev/tty1) main process ended, respawning
init: tty (/dev/tty3) main process (14693) killed by KILL signal
init: tty (/dev/tty3) main process ended, respawning
init: tty (/dev/tty4) main process (14694) killed by KILL signal
init: tty (/dev/tty4) main process ended, respawning
init: tty (/dev/tty5) main process (14695) killed by KILL signal
init: tty (/dev/tty5) main process ended, respawning
init: tty (/dev/tty6) main process (14696) killed by KILL signal
init: tty (/dev/tty6) main process ended, respawning
kernel: imklog 5.8.10, log source = /proc/kmsg started.
kernel: type=1318 audit(1488753001.130:773): opid=18996 oauid=0 ouid=0 oses=50 ocomm="crond"
kernel: type=1300 audit(1488753001.130:774): arch=c000003e syscall=62 success=yes exit=0 a0=4a3b a1=9 a2=9 a3=4a3b items=0 ppid=19009 pid=19032 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=49 comm="kill" exe="/bin/kill" key="teste_kill"
kernel: type=1300 audit(1488754808.281:1069): arch=c000003e syscall=62 success=no exit=-3 a0=4673 a1=0 a2=0 a3=4673 items=0 ppid=1 pid=20268 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=54 comm="java" exe="/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.111.x86_64/jre/bin/java" key="teste_kill"

以下はメモリのsarレポートです。

01:20:01 AM10535308 5798748 35.50 449520 2901344 3523388 17.16 01:30:01 AM10529272 5804784 35.24 44 01:40:01 AM 10524924 5809132 35.56 449520 2903496 3521852 17.16 平均: 10531009 5803047 35.53 449511 24

午前01:58:39 Linuxの再起動

午前 07:30:01 kbmemfree kbmemused %memused kbbuffers kbcached kbcommit %commit 02:10:01 午前 16057300 276756 1.69 30220 58348 187056 07 40 1. 69 30332 58364 187056 0.91 02:30:01 午前16057192 276864 1.70 30452 58372 187288 0.91

ベストアンサー1

カーネルがランダムに見えるプロセスを終了し始めると、通常はシステムメモリ(RAMとスワップ)が不足しているために発生します。

VMのメモリ状態を確認しfree -h、必要に応じて調整するために使用されます。

おすすめ記事