|
Sure.
ps -aux|grep http|wc -l
That last character is a lowercase L. That will count the number of lines with http from the output of a ps. Keep in mind, running that command ads one http to the number, so subtract one.
You can drop the |wc -l to see all of the http lines. I do that sometimes to see which site is getting the most current hits. It doesn't always work because sometimes apache runs as the site user and sometimes it runs as it's designated user.
If you want to pause the list of lines, use this command:
ps -aux|grep http|less
Just hit the space bar to continue.
To see which processes are using the most resources, you can use the command top. It will show you memory, swap and CPU usage. Think of it as Task Manager for Linux.
Glad to have helped.
__________________
Atomm
Please login or register to view this content. Registration is FREE: New and Improved Ad Blending!
Advertisepedia Please login or register to view this content. Registration is FREE
|