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 ? |
to monitor http traffic in real time you can use iftop
Code:
iftop -nP -f "port http" -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 |
What if i don't want to monitor apache2 but some other application which runs for example on 7654 port?
|
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" Code:
iftop -nP -f "port 80" If you just use iftop -nP if the port has a name it will appear in the listing. |
All times are GMT -5. The time now is 02:51 AM. |