kill:
参考文献:
转载:https://www.cnblogs.com/felixzh/p/9238274.html
转载 : https://blog.csdn.net/zgrjkflmkyc/article/details/77645570
人工维护或进程在Linux中使用内存最大 时,保护机制自动kill
我们应该估算系统内存,合理分配
解决方法:赶快升级,把不重要的服务停了,把内存加大一点。
看系统日志
[root@hadoop001 ~]# cd /var/log
[root@hadoop001 log]# ll
total 708952
-rw-------. 1 root root 0 Jul 6 2018 anaconda.ifcfg.log
-rw-------. 1 root root 0 Jul 6 2018 anaconda.log
-rw-------. 1 root root 0 Jul 6 2018 anaconda.program.log
-rw-------. 1 root root 0 Jul 6 2018 anaconda.storage.log
-rw-------. 1 root root 0 Jul 6 2018 anaconda.syslog
-rw-------. 1 root root 0 Jul 6 2018 anaconda.xlog
-rw-------. 1 root root 0 Jul 6 2018 anaconda.yum.log
drwxr-x---. 2 root root 4096 Jul 11 07:32 audit
-rw-r--r-- 1 root root 1118 Jul 9 03:06 boot.log
-rw------- 1 root utmp 44162304 Jul 12 02:26 btmp
-rw-------. 1 root utmp 61329792 Apr 1 03:29 btmp-20190401
-rw------- 1 root utmp 170359680 May 1 03:50 btmp-20190501
-rw------- 1 root utmp 184469760 Jun 1 03:42 btmp-20190601
-rw------- 1 root utmp 141014016 Jul 1 03:07 btmp-20190701
drwxr-xr-x 2 root root 4096 Jul 1 03:08 ConsoleKit
-rw------- 1 root root 197953 Jul 12 02:30 cron
-rw------- 1 root root 129550 Jun 16 03:35 cron-20190616
-rw------- 1 root root 121631 Jun 23 03:32 cron-20190623
-rw------- 1 root root 199284 Jun 30 03:19 cron-20190630
-rw------- 1 root root 286157 Jul 7 03:50 cron-20190707
-rw-r--r-- 1 root root 21999 Jul 9 03:06 dmesg
-rw-r--r-- 1 root root 21999 Jun 30 01:22 dmesg.old
-rw-r--r--. 1 root root 0 Jul 6 2018 dracut.log
drwx------ 2 root root 4096 Jul 10 03:50 httpd
-rw-r--r--. 1 root root 152716 Jul 12 02:29 lastlog
-rw------- 1 root root 0 Jul 7 03:50 maillog
-rw------- 1 root root 0 Jun 9 04:22 maillog-20190616
-rw------- 1 root root 0 Jun 16 03:35 maillog-20190623
-rw------- 1 root root 117 Jun 23 14:42 maillog-20190630
-rw------- 1 root root 0 Jun 30 03:19 maillog-20190707
-rw------- 1 root root 32791 Jul 11 23:26 messages
-rw------- 1 root root 34005 Jun 16 03:35 messages-20190616
-rw------- 1 root root 71874 Jun 23 03:32 messages-20190623
-rw------- 1 root root 38307 Jun 30 03:19 messages-20190630
-rw------- 1 root root 2887 Jul 7 03:50 messages-20190707
-rw-r----- 1 mysql mysql 0 Jun 30 03:11 mysqld.log
-rw-r----- 1 mysql mysql 865 Jun 30 01:02 mysqld.log.rpmsave
drwxr-xr-x. 2 ntp ntp 4096 Jan 26 2018 ntpstats
drwx------ 2 root root 4096 Mar 16 2015 ppp
drwxr-xr-x. 2 root root 4096 Jul 12 00:00 sa
-rw------- 1 root root 8397041 Jul 12 02:29 secure
-rw------- 1 root root 39115735 Jun 16 03:35 secure-20190616
-rw------- 1 root root 18686664 Jun 23 03:31 secure-20190623
-rw------- 1 root root 25685678 Jun 30 03:17 secure-20190630
-rw------- 1 root root 30867737 Jul 7 03:49 secure-20190707
-rw------- 1 root root 0 Jul 7 03:50 spooler
-rw------- 1 root root 0 Jun 9 04:22 spooler-20190616
-rw------- 1 root root 0 Jun 16 03:35 spooler-20190623
-rw------- 1 root root 0 Jun 23 03:32 spooler-20190630
-rw------- 1 root root 0 Jun 30 03:19 spooler-20190707
-rw-------. 1 root root 0 Jul 6 2018 tallylog
-rw-r--r-- 1 root root 0 Jul 6 2018 wpa_supplicant.log
-rw-rw-r--. 1 root utmp 221184 Jul 12 02:29 wtmp
-rw-------. 1 root root 1915 Jun 30 03:11 yum.log
[root@hadoop001 log]# tail -f messages 在这里看系统日志,会记录
Jul 9 03:06:55 hadoop001 ntpd[1147]: Listen normally on 3 eth0 10.9.6.136 UDP 123
Jul 9 03:06:55 hadoop001 ntpd[1147]: Listening on routing socket on fd #20 for interface updates
Jul 9 03:06:55 hadoop001 ntpd[1147]: 0.0.0.0 c016 06 restart
Jul 9 03:06:55 hadoop001 ntpd[1147]: 0.0.0.0 c012 02 freq_set ntpd 15.848 PPM
Jul 9 03:07:02 hadoop001 ntpd[1147]: 0.0.0.0 c615 05 clock_sync
Jul 9 21:31:06 hadoop001 auditd[963]: Audit daemon rotating log files
Jul 10 10:15:16 hadoop001 auditd[963]: Audit daemon rotating log files
Jul 11 02:41:36 hadoop001 auditd[963]: Audit daemon rotating log files
Jul 11 07:32:33 hadoop001 auditd[963]: Audit daemon rotating log files
Jul 11 23:26:55 hadoop001 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
^C
[root@hadoop001 log]#