LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-17-2010, 02:20 PM   #1
Kraiser10
Member
 
Registered: Mar 2010
Posts: 48

Rep: Reputation: 15
Real time network checking on application ?


I want to monitor an application lets say that it will be apache2 to see how many in real-time it takes network resources such as upload/download per second how can i do that in linux (cmd not gui) ?
I know it's possible because i can see this in windows in my nod32 firewall monitoring.
Any software which do that on linux ?

Last edited by Kraiser10; 04-23-2010 at 07:27 AM.
 
Old 04-18-2010, 07:53 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
to monitor http traffic in real time you can use iftop

Code:
iftop -nP -f "port http"
-n means don't look up hostnames
-P means show the port used for connections
-f means use a filter
"port http" means filter on the port called http

It gives an average of 2 seconds, 10 seconds and 40 seconds for each connection plus a running total.

man iftop
 
Old 04-18-2010, 09:09 AM   #3
Kraiser10
Member
 
Registered: Mar 2010
Posts: 48

Original Poster
Rep: Reputation: 15
What if i don't want to monitor apache2 but some other application which runs for example on 7654 port?
 
Old 04-18-2010, 09:36 AM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Well I would guess that you would use 7654 instead of http.
Standard ports can be listed by name, otherwise be specific.
Code:
iftop -nP -f "port http"
is identical to
Code:
iftop -nP -f "port 80"

If you just use iftop -nP if the port has a name it will appear in the listing.

Last edited by smoker; 04-18-2010 at 09:40 AM.
 
  


Reply

Tags
application, network, real, time


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
real time application khodeir Programming 10 12-02-2009 09:38 AM
real-time application quantt Programming 6 09-15-2009 03:58 PM
LXer: Real-time garbage collection with Real-time Java LXer Syndicated Linux News 0 05-05-2007 12:16 PM
Help with deciding Linux capability for Real-Time application anantvemuri Linux - Kernel 3 03-04-2007 01:44 PM
LXer: Developing a real-time Linux data acquisition application LXer Syndicated Linux News 0 08-21-2006 11:54 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration