如何获取内存使用量大于的所有进程ID [英] How to get all process ids with memory usage greater than

查看:54
本文介绍了如何获取内存使用量大于的所有进程ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要获取内存使用量大于或小于预定义数字的所有进程 ID.例如,获取内存 (rss) 使用率大于 10MB 的 id,然后使用此 id 杀死每个进程.谢谢

I need to get all process ids which have memory usage greater or lower than predifined number. For example get id where memory (rss) usage grater than 10MB and then using this id kill each process. Thanks

推荐答案

以下命令将帮助我思考,

This following command will help I think,

ps aux --sort -rss

试试吧.

这篇关于如何获取内存使用量大于的所有进程ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆