我的PC需要每周都被重启,而我又经常使用screen登录到服务器上。
这就导致了 每到周末我就有大量的bash进程遗忘在服务器上,多少导致一些性能影响。
下面来自服务器的报告。
- hironics 3570 3485 0 Mar 02 pts/31 0:03 bin/bash
- hironics 3578 3485 0 Mar 02 pts/11 0:00 bin/bash
- hironics 3581 3485 0 Mar 02 pts/19 0:00 bin/bash
- hironics 5145 4476 0 Mar 12 pts/14 0:01 bin/bash -l
- hironics 7608 1 0 Feb 22 ? 0:12 screen
- hironics 7737 7608 0 Feb 22 pts/21 0:00 bin/bash
- hironics 7771 7608 0 Feb 22 pts/34 0:02 bin/bash
- hironics 7813 7608 0 Feb 22 pts/35 0:01 bin/bash
- hironics 8526 5145 0 Mar 12 pts/14 0:03 screen
- hironics 8533 8526 0 Mar 12 ? 0:07 screen
- hironics 8608 8533 0 Mar 12 pts/37 0:03 bin/bash
- hironics 8632 8533 0 Mar 12 pts/26 0:01 bin/bash
- hironics 8670 8533 0 Mar 12 pts/27 0:02 bin/bash
- hironics 13852 20851 0 Feb 03 pts/13 0:00 mp
- hironics 14379 1 0 Dec 26 ? 0:10 screen
- hironics 14462 14379 0 Dec 26 pts/7 0:01 bin/bash
- hironics 14479 14379 0 Dec 26 pts/8 0:00 bin/bash
- hironics 14497 14379 0 Dec 26 pts/9 0:03 bin/bash
- hironics 17544 14497 0 Dec 28 pts/9 0:01 fsql
- hironics 18978 1 0 Feb 03 ? 0:02 screen
- hironics 19045 18978 0 Feb 03 pts/5 0:01 bin/bash
- hironics 19061 18978 0 Feb 03 pts/29 0:00 bin/bash
- hironics 19082 18978 0 Feb 03 pts/32 0:00 bin/bash
- hironics 20761 1 0 Feb 02 ? 0:01 screen
- hironics 20851 20761 0 Feb 02 pts/13 0:02 bin/bash
- hironics 24004 1 0 Jan 20 ? 0:04 screen
- hironics 24124 24004 0 Jan 20 pts/1 0:00 bin/bash
- hironics 24148 24004 0 Jan 20 pts/15 0:00 bin/bash
- hironics 24181 24004 0 Jan 20 pts/16 0:00 bin/bash
找出所有自己的进程:
ps -u hironics -o "pid="
杀死他们:
kill `ps -u hironics -o "pid="`
阅读(1123) | 评论(1) | 转发(0) |