码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu16.04系统资源紧缺时杀掉session,进程

时间:2017-12-12 13:32:28      阅读:2552      评论:0      收藏:0      [点我收藏+]

标签:ubuntu

Dec 12 12:17:01 bogon CRON[3308]: (root) CMD ( ? cd / && run-parts --report /etc/cron.hourly)

Dec 12 12:28:02 bogon systemd[1]: Stopping User Manager for UID 1000...

Dec 12 12:28:02 bogon systemd[873]: Reached target Shutdown.

Dec 12 12:28:02 bogon systemd[873]: Starting Exit the Session...

Dec 12 12:28:02 bogon systemd[873]: Stopped target Default.

Dec 12 12:28:02 bogon systemd[873]: Stopped target Basic System.

Dec 12 12:28:02 bogon systemd[873]: Stopped target Sockets.

Dec 12 12:28:02 bogon systemd[873]: Stopped target Timers.

Dec 12 12:28:02 bogon systemd[873]: Stopped target Paths.

Dec 12 12:28:02 bogon systemd[873]: Received SIGRTMIN+24 from PID 3489 (kill).

Dec 12 12:28:02 bogon systemd[1]: Stopped User Manager for UID 1000.

Dec 12 12:28:02 bogon systemd[1]: Removed slice User Slice of dev.

Dec 12 12:28:12 bogon systemd[1]: Created slice User Slice of dev.

Dec 12 12:28:12 bogon systemd[1]: Starting User Manager for UID 1000...

Dec 12 12:28:12 bogon systemd[1]: Started Session 6 of user dev.

Dec 12 12:28:12 bogon systemd[3497]: Reached target Paths.

Dec 12 12:28:12 bogon systemd[3497]: Reached target Timers.

Dec 12 12:28:12 bogon systemd[3497]: Reached target Sockets.

Dec 12 12:28:12 bogon systemd[3497]: Reached target Basic System.

Dec 12 12:28:12 bogon systemd[3497]: Reached target Default.

Dec 12 12:28:12 bogon systemd[3497]: Startup finished in 21ms.

Dec 12 12:28:12 bogon systemd[1]: Started User Manager for UID 1000.

Dec 12 12:28:13 bogon systemd[1]: Started Session 7 of user dev.

Dec 12 12:28:15 bogon systemd[1]: Started Session 8 of user dev.

Dec 12 12:31:08 bogon dhclient[789]: DHCPREQUEST of 192.168.134.134 on ens32 to 192.168.134.254 port 67 (xid=0x545717df)

Dec 12 12:31:08 bogon dhclient[789]: DHCPACK of 192.168.134.134 from 192.168.134.254

Dec 12 12:31:08 bogon dhclient[789]: bound to 192.168.134.134 -- renewal in 833 seconds.



he fix is to add

[login]
KillUserProcesses=no

to?/etc/systemd/logind.confand reboot.


ubuntu16.04系统资源紧缺时杀掉session,进程

标签:ubuntu

原文地址:http://blog.51cto.com/lovexx/2049704

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!