Operating System - HP-UX
1834931 Members
2547 Online
110071 Solutions
New Discussion

Re: How to see all processes using TOP

 
SOLVED
Go to solution
Stephen Keogh
Advisor

How to see all processes using TOP

I wish to extract the size field for all Oracle processes using "top". How do I script this command to show all processes and not be restricted by the maximum number of processes per screen.
I really need the size from "top" and not from "ps" ...

Many thanks for any help on this one
Steve
2 REPLIES 2
Stefan Farrelly
Honored Contributor
Solution

Re: How to see all processes using TOP


top -d 1 -n 1000 -f

will output 1000 processes to which you can easily view and grep out your oracle processes.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Pete Randall
Outstanding Contributor

Re: How to see all processes using TOP

Steve,

Just looking at the man page, it would appear that something like "top -n 999999 -f FILENAME" would put everything into the file called FILENAME. You could then use the file as input to extract your size.


Pete


Pete