The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 12:26 PM
Virtual Memory Kurohana HP-UX 3 11-09-2007 05:54 PM
how allocate virtual memory munnu High Level Programming 2 04-20-2007 03:07 PM
about virtual memory and memory leak shriashishpatil High Level Programming 4 02-20-2006 11:31 AM
virtual memory big123456 UNIX for Dummies Questions & Answers 2 10-10-2005 01:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-20-2006
ocelot ocelot is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 31
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
  #2 (permalink)  
Old 09-20-2006
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,715
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?
  #3 (permalink)  
Old 09-20-2006
ocelot ocelot is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 31
i have sun solaris version 5.8. I have tried top but that doesnt seem to work unfortunately...

thanks
  #4 (permalink)  
Old 09-20-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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 10:40 AM..
  #5 (permalink)  
Old 12-01-2008
asth asth is offline
Registered User
  
 

Join Date: May 2008
Posts: 11
Problem calculating virtual memory of a process

Please help me reagarding the calculation of virtual memory of a process.

How to calculate the VM of a running process with agiven PID on Solaris.
Please explain the difference between physical memory used by a process and virtual memory used by it.
Which one if\s of utmost importance if we need to alert on memory usage exceeding a given threshold.

Regards.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0