This is a screenshot of TOP command on my server.
Which one of the processes are for
Apache? Can't see any
Your image is incomplete, and shows no
apache processes. After you start
top, issue the
i command to suppress "idle" processes.
The other way to accomplish this is filtering out the process:
top -c -p `pgrep apache2 -d','`
pgrepcommand defines the separator. we use comma to get a list of process like this: 123,124,125.
topmonitor only processes with specified process IDs.
-creverses the state of name filed, the default is process name, so it will change it to path lile: /usr/bin/httpd.