HOW TO FIND OUT TOP5 MEMORY CONSUMING PROCESSES

129 views
Skip to first unread message

Amardeep Gundala

unread,
Mar 11, 2011, 8:54:41 AM3/11/11
to vg...@googlegroups.com, amar...@gmail.com
Hi,
 
I want find out top 5 process which are memory consuming in linux and kill that process
 
regards
amaradeep
 

Jay Maheshkar

unread,
Mar 11, 2011, 12:26:09 PM3/11/11
to vg...@googlegroups.com
On Fri, Mar 11, 2011 at 7:24 PM, Amardeep Gundala <amar...@gmail.com> wrote:
Hi,
 
I want find out top 5 process which are memory consuming in linux and kill that process
Hi Amardeep
you can use ps command to find out process, pid and cpu usage by it
i have tried below command and its working for me
Just follow below steps
 
step - 1 use 'ps' command

root@example[Desktop]# ps axo pcpu,comm,pid | sort -nr | head -n 5
31.1 opera                  6488
 5.6 Xorg                     4213
 3.7 vlc                        6525
2.1 operapluginwrap 6497
0.1 gnome-terminal   5469
root@example[Desktop]# 

Step - 2 use 'kill' command
here i am killing process of vlc 
so 
kill pidofprocess

root@example[Desktop]# kill 6525
root@example[Desktop]#

Moreover if you want to see real time process and its information 
you can also 'top' command

Hope so it will help you...

 
 
 
regards
amaradeep
 
--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG



--
Thanks & Regards,

Jay Maheshkar
( MCA, RHCE )
(M)+91 972.583.67.33

https://www.redhat.com/wapps/training/certification/verify.html?certNumber=805010775851036

ElectroMech :- Vibrant GNU/Linux User Group

unread,
Mar 13, 2011, 6:33:08 AM3/13/11
to VGLUG
Hi Mr. Jay,

>
> > I want find out top 5 process which are memory consuming in linux and kill
> > that process
>
> *root@example[Desktop]# ps axo pcpu,comm,pid | sort -nr | head -n 5

Small correction.

The question is for memory and the command given by you display the
process - cpu load.
root@example[Desktop]# ps axo %mem,comm,pid | sort -nr | head -n 5

Hope above things work fine.

>
> Jay Maheshkar

Thanks and Regards,

Nilesh J. Vaghela
Electromech Info

Amardeep Gundala

unread,
Mar 14, 2011, 4:08:27 AM3/14/11
to vg...@googlegroups.com, ElectroMech :- Vibrant GNU/Linux User Group
Hi All,
 
thanks all your support
 
regards
amaradeep

Reply all
Reply to author
Forward
0 new messages