当系统内存不足,会随机杀进程,以保证系统正常运行。
[root@VM_3_2_centos files2]# dmesg | tail [437421.447859] [25087] 0 25087 141212 25226 0 0 0 xxx [437421.447861] [25321] 0 25321 25491 150 0 0 0 YDLive [437421.447863] [25343] 0 25343 1016 43 1 0 0 mingetty [437421.447865] [25344] 0 25344 1016 44 0 0 0 mingetty [437421.447867] [25345] 0 25345 1016 43 0 0 0 mingetty [437421.447868] [25346] 0 25346 1016 43 0 0 0 mingetty [437421.447870] [25347] 0 25347 1016 44 0 0 0 mingetty [437421.447873] [25348] 0 25348 1016 42 0 0 0 mingetty [437421.447874] Out of memory: Kill process 4830 (xxx) score 1 or sacrifice child [437421.447878] Killed process 4830, UID 0, (xxx) total-vm:952616kB, anon-rss:21920kB, file-rss:1400kB
在系统信息里可以看到相关杀进程信息。