Two handy alternatives to the top command: htop and atop

Posted by Tom Moertel Thu, 10 Jun 2010 15:20:00 GMT

I recently started using two handy variants of top, the standard Unix tool for monitoring what’s going on with processes on a system.

The first, htop, uses ncurses to provide a more interactive process-viewing experience. You can surf through running processes, scrolling horizontally and vertically to reveal information that would otherwise have been clipped, information such as full command lines. Further, you can drive a cursor to select processes for commands like kill and lsof to act upon. Yes, you can see what files a process has open; you can even trace processes using strace. There’s also a handy tree view for understanding process ancestry.

The second top alternative, atop, offers more accurate accounting of processes and resource usage. It tracks all processes, even those that have lived out their brief lives between atop’s screen updates. This comprehensive accounting is helpful for understanding problems caused by herds of individually short-lived processes. With the old top, you might catch only a few of the processes in the act, but with atop, you can see the herd for what it is.

Two handy tools – check them out.

Posted in
Tags , , ,
1 comment
no trackbacks
Reddit Delicious

Comments

  1. Evgeniy Dolzhenko said 5 days later:

    Another one I want to try out (but haven’t had a chance of serious memory debugging yet) is smem ( http://www.selenic.com/smem/ ), I believe it’s supposed to solve the same problem which passenger-memory-stats does.

Trackbacks

Use the following link to trackback from your own site:
http://blog.moertel.com/articles/trackback/1556

(leave url/email »)

   Comment Markup Help Preview comment