Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Monitoring top 10 processes - SunOS 5.8

Status
Not open for further replies.

Vlado22

Technical User
Nov 11, 2002
3
SK
Hi.

We got Sun280R with SunOS 5.8:

sun1:/# uname -a
SunOS sun1 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Fire-280R
sun1:/#

I wanna to monitor top (eg. 10) processes according to the processor spending time, I/O load, real/virtual memory usage.
"ps" is not exactly what I want (even though sorting is by "awk" and "sort" possible). Are there some utilities (perhaps free downloadable from web?)? E.g. "top", "monitor", ... for 64-bit environment?

I made "top" but it writes following error meassage:
sun:/tmp# top
top: /dev/ksyms is not a 32-bit kernel namelist
kvm_open: Error 0
sun:/tmp#

Anyone so kind to advise me?
Thanks ahead for helping and your time.

Vlado
 
Thank you Ken. I'm gonna try to chcek CD and then the mentioned link.

Nice day.

Vlado
 
Hi Vlado,

what about the "/usr/bin/prstat" command? As far as I know it exists since Solaris 7, but is definitely part of Solaris 8. There are a lot of sorting options (sorting by CPU usage is the default).
For example to see the "top ten" processes regarding CPU usage you could use:

# prstat -c -n 10

-c prints the reports below previous reports.
-n restricts the number of output lines.

For all other options see the man page.

HTH

mrjazz [pc2]
 
Hi Mrjazz.

Yes, "/usr/bin/prstat" is OK. I've found it already.

Now I'm using "top" ver. 3.5beta9 from It works fine and it's sufficient for my purposes.

Thank you.

Vlado
 
I know your problem's solved, but another handy way for a quick check is to use the UCB version of ps, e.g. /usr/ucb/ps uax | head, which sorts by CPU usage by default. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top