Solved

top: group by command

Posted on 2012-03-27
1
585 Views
Last Modified: 2016-02-10
I want to see what services are running and what resources those services are taking.  When I use "top" I see a long list of processes, many with duplicate commands.  For example, I see "httpd" listed more than 10 times .

How can I group these by command, so I only see httpd once with information about memory and WCPU grouped?

I run FreeBSD.
0
Comment
Question by:hankknight
1 Comment
 
LVL 23

Accepted Solution

by:
Maciej S earned 500 total points
ID: 37832760
I'm afraid you can't do this with top.
And these are not duplicated commands - every 'httpd' is a single process (note their PIDs). Apache starts more than one process to handle incoming requests.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question