The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can I get memory usage or anything that show memory used from sar file? panithat HP-UX 1 03-31-2008 09:26 AM
Virtual Memory Kurohana HP-UX 3 11-09-2007 01:54 PM
how allocate virtual memory munnu High Level Programming 2 04-20-2007 12:07 PM
about virtual memory and memory leak shriashishpatil High Level Programming 4 02-20-2006 07:31 AM
virtual memory big123456 UNIX for Dummies Questions & Answers 2 10-09-2005 10:21 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2006
Registered User
 

Join Date: Sep 2006
Posts: 25
Stumble this Post!
cpu, memory and virtual memory usage

Hi All,

Does anyone know what the best commands in the UNIX command line are for obtaining this info:

current CPU usage
memory usage
virtual memory usage

preferably with date and time parameters too?

thanks

ocelot
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-20-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,812
Stumble this Post!
top shows cpu %, vmstat shows memory and virtual memory. A lot of unix-es come with different packages for gathering performance data. HPUX has glance, for example, which shows a lot of system statistics.

What UNIX do you have?
Reply With Quote
  #3 (permalink)  
Old 09-20-2006
Registered User
 

Join Date: Sep 2006
Posts: 25
Stumble this Post!
i have sun solaris version 5.8. I have tried top but that doesnt seem to work unfortunately...

thanks
Reply With Quote
  #4 (permalink)  
Old 09-20-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Stumble this Post!
Solaris 8 comes with prstat which is close the top output - see the prstat man page for more info. If your system is running sar via crontab, you can look at it's output also - see the man page for sar.

Example of sar
In user "sys" crontab
0,10,20,30,40,50 * * * * /usr/lib/sa/sa1

That creates files in /var/adm/sa - use the following command to see aspects of how the server was running for yesterday (the 19th)
sar -qucgf /var/adm/sa/sa19

Caution - before turning on sar via crontab, make sure you have the room for the files in /var/adm/sa - they can get rather big.

You can also use vmstat to show cpu and memory - see the vmstat man page.

Last edited by RTM; 09-20-2006 at 07:40 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0