LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find out the number processes on Linux OS (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-out-the-number-processes-on-linux-os-4175505786/)

ashley75 05-22-2014 11:17 AM

How to find out the number processes on Linux OS
 
I have an application running on the server and I would like to find out the number of processes consumed by the application.

Thanks,

schneidz 05-22-2014 11:22 AM

i usually use ps.
also maybe pgrep will be beneficial to you.

suicidaleggroll 05-22-2014 11:28 AM

For a really quick and dirty way:
Code:

ps -ef | grep application_name | grep -v grep | wc -l
Of course if you want this to be production-worthy you might want to get a bit fancier and clean things up.


All times are GMT -5. The time now is 01:22 AM.