Skip to Content

Terminal Tips: Monitor System Performance with Top

Launch the Terminal (located in /Applications/Utilities/). At the command line, type top and hit return. You will see something that looks like this:
os x terminal top
 This screen will continue to update live, giving you the latest information on your system performance, including how much memory you are using, how much processor is being used, and which program is eating up the most of your system resources.  If there is a real hog running on your system, all you have to do is launch another Terminal window by going to File—>New Shell and type kill followed by the PID number of the system hog and return to force the program to quit. To quit top, simply hit q or CTRL+C.




Launch the Terminal (located in /Applications/Utilities/). At the command line, type top and hit return. You will see something that looks...
 

Add a Comment

*0 / 3000 Character Maximum

11 Comments

Filter by:
J Osborne

You can drop top's resorce usage quite a bit by running "top -FRu" which eliminates the RPRVT and RSHRD stats and also doesn't report on shared lib usage, but cuts resource use from about 15% on my system to about 2%. I'm guessing Linux's top is faster either because it doesn't report that kind of information by defualt, or because the kernel keeps that information in a handier form for top's use (which may or may not be more handy for the kernel's use!). I beleve top is faster in FreeBSD as well, but FreeBSD's doesn't report RPRVT or RSHRD, or a bunch of other stuff OSX's does.

March 22 2005 at 2:11 PM Report abuse rate up rate down Reply
Craig

Kristen (Post 8) - If you type "man top" at the command line it will bring up the manual for top. There are explanations of data that top displays.

March 22 2005 at 10:24 AM Report abuse rate up rate down Reply
Chris

I'm not sure why top itself should be such a resource hog for you - running it one of the linux boxes here shows it using 0.1%

March 22 2005 at 8:13 AM Report abuse rate up rate down Reply
Kristin Green

Anyone know of a good tutorial that explains what all that stuff in top means?

March 21 2005 at 10:58 PM Report abuse rate up rate down Reply
todd

What's the difference between top and OSX's Activity Monitor's window? If users are *nix illiterate, this might be easier and less scary.

March 21 2005 at 6:55 PM Report abuse rate up rate down Reply
Tim Hadley

When running top on linux, I've always noticed that top seems to consume a relatively large amount of system resources, so I avoid leaving it running.

March 21 2005 at 4:02 PM Report abuse rate up rate down Reply
Terry

Is there a differences between the 'top' binary used in OSX versus Linux? When I run top on my Mac it usually shows top taking 12-14 percent of the cpu. Even the screenshot shows top using 21.4%. When I run top on my linux box it doesn't even appear in the list.

March 21 2005 at 3:51 PM Report abuse rate up rate down Reply
Christopher

I've been using top since getting my iBook a month ago. It's great having the beautiful OS X GUI on top of rock solid UNIX. Chris http://amateureconblog.blogspot.com/

March 21 2005 at 3:13 PM Report abuse rate up rate down Reply
Craig

If you really want to find that system hog try using "top -u". This sorts the processes by cpu usage and the top offenders will be listed first.

March 21 2005 at 3:13 PM Report abuse rate up rate down Reply
C.K. Sample, III

Thanks, Scott. Added it. I don't know why I always go the interrupt route...

March 21 2005 at 3:11 PM Report abuse rate up rate down Reply
Buy an ad here

Hot Apps on TUAW

Tweets

© 2012 AOL Inc. All Rights Reserved.