LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2014, 11:17 AM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
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,
 
Old 05-22-2014, 11:22 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,144

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
i usually use ps.
also maybe pgrep will be beneficial to you.
 
Old 05-22-2014, 11:28 AM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,520

Rep: Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106Reputation: 2106
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux commands to print the number of users & number of processes!!? m7com Linux - Newbie 3 04-30-2014 12:59 PM
Script: find how many times the first number is paired with the second number slufoot80 Linux - Newbie 5 05-11-2013 04:31 PM
Max number of processes on Linux ? laxman_rasal Linux - General 2 01-23-2012 12:25 AM
how to limit php-cgi processes number with lighttpd web server on embeddedb arm linux golden_boy615 Linux - General 0 12-10-2011 07:08 AM
Find number of child processes (C, POSIX) polymath Programming 2 05-28-2010 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration