Comments on: Find Top Running Processes by Highest Memory and CPU Usage in Linux https://www.tecmint.com/find-linux-processes-memory-ram-cpu-usage/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 02:12:22 +0000 hourly 1 By: Ai Loon https://www.tecmint.com/find-linux-processes-memory-ram-cpu-usage/comment-page-1/#comment-1878866 Wed, 14 Sep 2022 13:51:38 +0000 http://www.tecmint.com/?p=21832#comment-1878866 How do I list down the usernames that are consuming high memory/CPU and remove the duplicate names? The names should be separated by ;.

]]>
By: Mario https://www.tecmint.com/find-linux-processes-memory-ram-cpu-usage/comment-page-1/#comment-1442674 Mon, 01 Mar 2021 18:44:37 +0000 http://www.tecmint.com/?p=21832#comment-1442674 In reply to Mark Thomas.

That is because you should use --sort=%mem without (-) before %mem.

]]>
By: anil https://www.tecmint.com/find-linux-processes-memory-ram-cpu-usage/comment-page-1/#comment-1435066 Mon, 15 Feb 2021 09:34:21 +0000 http://www.tecmint.com/?p=21832#comment-1435066 You can use this command:

# ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
]]>
By: Mark Thomas https://www.tecmint.com/find-linux-processes-memory-ram-cpu-usage/comment-page-1/#comment-1337497 Mon, 15 Jun 2020 13:22:36 +0000 http://www.tecmint.com/?p=21832#comment-1337497 Maybe I am doing something wrong. It seems to be sorting the highest usage to the bottom.

# ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem
]]>
By: reddy https://www.tecmint.com/find-linux-processes-memory-ram-cpu-usage/comment-page-1/#comment-1336635 Fri, 05 Jun 2020 14:31:57 +0000 http://www.tecmint.com/?p=21832#comment-1336635 Thanks a lot.

]]>