Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6c7a443

Browse files
author
Josh Myers
committed
Merge pull request alphagov#178 from alphagov/top-processes-by-memory
Show top processes by memory usage
2 parents 3bdaca0 + 84e07f7 commit 6c7a443

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ def free():
1616
"""Show memory stats"""
1717
run('free')
1818

19+
@task
20+
def top_mem_proc():
21+
"""Show top processes by memory usage"""
22+
run('ps aux |sort -rk4 |head')
1923

2024
@task
2125
def disk():

0 commit comments

Comments
 (0)