1833875 Members
1741 Online
110063 Solutions
New Discussion

Top process

 
Md.Shahabuddin
Advisor

Top process


Hi,,,
I want to check which are the processes, which are taking maximum time. Or which are the processes is running from the longer time.Only time and process id should be sorted out.
7 REPLIES 7
Anshumali
Esteemed Contributor

Re: Top process

I hope there are three ways which you can use:
1. issue nice top -h and see the processes consuming the resources.
2. Use the tool like Glance/gpm to see and sort the processes, glance will also give you the process details and other granual details like RSS/VSS
3. UNIX95=1 ps -e -o vsz,pid,ruser,args | sort -rn |head

Best bet is glance!

Anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Anshumali
Esteemed Contributor

Re: Top process

Got error while posting reply...so copy pasting again..........

I hope there are three ways which you can use:
1. issue nice top -h and see the processes consuming the resources.
2. Use the tool like Glance/gpm to see and sort the processes, glance will also give you the process details and other granual details like RSS/VSS
3. UNIX95=1 ps -e -o vsz,pid,ruser,args | sort -rn |head

Best bet is glance!

Anshu
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Trng
Super Advisor

Re: Top process

Hi,
Glance is more than enough to get the details you are searching for.



Rgds
administrator
whiteknight
Honored Contributor

Re: Top process


Hi Sahabuddin,

Glance is a HP performance tool to help us monitor interative data.

You should consider use this.

To evaluate this product :-
http://openview.hp.com/products/ovperf/download.html

Cheers

Problem never ends, you must know how to fix it
Anshumali
Esteemed Contributor

Re: Top process

You have many unassigned points!!!
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
AwadheshPandey
Honored Contributor

Re: Top process

Shahab,

Here is the o/p u need. 1st field is PID and 2nd one is time.I have assumed 1000 process running on ur machine.
top -n 1000 -f /tmp/top.out; cat /tmp/top.out|tail +11|awk '{print $2, " ", $9}'|sort +1n -r
It's kind of fun to do the impossible
Md.Shahabuddin
Advisor

Re: Top process

Thanks Folk !!!!!!!!!