![当资源使用率极高时,Ubuntu 16.04 会终止会话](https://linux22.com/image/990929/%E5%BD%93%E8%B5%84%E6%BA%90%E4%BD%BF%E7%94%A8%E7%8E%87%E6%9E%81%E9%AB%98%E6%97%B6%EF%BC%8CUbuntu%2016.04%20%E4%BC%9A%E7%BB%88%E6%AD%A2%E4%BC%9A%E8%AF%9D.png)
我正在计算机上的 Hadoop 上进行项目。当我开始一些消耗大部分可用资源(100% CPU,高 RAM 使用率)的工作时,“某些东西”会终止我的用户会话及其所有进程。
系统日志:
Jun 8 21:38:46 michalo-desktop systemd[1]: Created slice User Slice of hadoop.
Jun 8 21:38:46 michalo-desktop systemd[1]: Starting User Manager for UID 1001...
Jun 8 21:38:46 michalo-desktop systemd[1]: Started Session 21 of user hadoop.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Reached target Paths.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Reached target Sockets.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Reached target Timers.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Reached target Basic System.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Reached target Default.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Startup finished in 126ms.
Jun 8 21:38:46 michalo-desktop systemd[1]: Started User Manager for UID 1001.
Jun 8 21:38:46 michalo-desktop systemd[1]: Stopping User Manager for UID 1001...
Jun 8 21:38:46 michalo-desktop systemd[11932]: Stopped target Default.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Stopped target Basic System.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Stopped target Timers.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Stopped target Sockets.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Reached target Shutdown.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Starting Exit the Session...
Jun 8 21:38:46 michalo-desktop systemd[11932]: Stopped target Paths.
Jun 8 21:38:46 michalo-desktop systemd[11932]: Received SIGRTMIN+24 from PID 12000 (kill).
Jun 8 21:38:46 michalo-desktop systemd[1]: Stopped User Manager for UID 1001.
Jun 8 21:38:46 michalo-desktop systemd[1]: Removed slice User Slice of hadoop.
日志不包含有关终止原因的任何信息。kern.log 没有任何有趣的内容。
答案1
Hadoop 本身会尝试终止部分进程,以减少机器的资源使用量,但由于漏洞在kill
命令中。