LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 12:17 PM   #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, 12:22 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

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

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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 01:59 PM
Script: find how many times the first number is paired with the second number slufoot80 Linux - Newbie 5 05-11-2013 05:31 PM
Max number of processes on Linux ? laxman_rasal Linux - General 2 01-23-2012 01: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 08:08 AM
Find number of child processes (C, POSIX) polymath Programming 2 05-28-2010 06:25 AM


All times are GMT -5. The time now is 01:45 PM.

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