Link to home
Start Free TrialLog in
Avatar of Thyagaraj03
Thyagaraj03

asked on

Find and Kill the process that consumes more memory

How do I find what process/service is consuming more memory and how do I kill/terminate it on Ubuntu Server?
ASKER CERTIFIED SOLUTION
Avatar of mccracky
mccracky
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Thyagaraj03
Thyagaraj03

ASKER

yes it's good. Is there any other way so that I have only listed the process that consumes more memory?
ps aux|sort -nr +3

this will sort all the processes based on memory usage....
When I ran the command "ps aux|sort -nr +3" I got the following output:
sort: open failed: +3: No such file or directory
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It is solved