taoCMS是基于php+sqlite/mysql的国内最小(100Kb左右)的功能完善的CMS管理系统

avoid killing SSH in out-of-memory

2016-09-01

Run the following command as root. You probably want to add this into an init script somewhere.

echo -17 > /proc/`pidof sshd`/oom_adj

Update:

To ensure that the main daemon process is the one being adjusted, you can use this command. The above will probably fail if you have any SSH sessions open, so not such a great choice :(

echo -17 > /proc/`cat /var/run/sshd.pid`/oom_adj

-17 is the current value for OOM_DISABLE in /usr/include/linux/oom.h. You can read more about the Linux OOM killer here.


类别:未分组 | 阅读:168981 | 评论:609 | 标签:

想收藏或者和大家分享这篇好文章→

“avoid killing SSH in out-of-memory”共有1条留言

  1. cool @2016-09-05 17:04 回复

    wocalie

发表评论

姓名:

邮箱:

网址:

验证码:

公告

taoCMS发布taoCMS 3.0.2(最后更新21年03月15日),请大家速速升级,欢迎大家试用和提出您宝贵的意见建议。

捐助与联系

☟请使用新浪微博联系我☟

☟在github上follow我☟

标签云