Thursday, August 14, 2008

How To Monitor Bandwidth Usage Per Application Process and Thread

Typically, a linux bandwidth monitoring software measures and graphs internet bandwidth consumptions. These bandwidth consumptions are then grouped and classified to different types of usage views. Usage views of bandwidth graphs are then presented on a wide variety of presentation types, depending on bandwidth monitoring features. These can be per hosts, IP address, subnet network, protocols and IP services and the list goes on.

Introducing NetHogs

Nethogs does the same job of monitoring internet bandwidth consumption. Instead of grouping the bandwidth usage by protocols or network block, nethogs groups the usage per software process, or process threads. Another good things about nethogs is that it does not need any special kernel modules to be loaded before it can do its functions.

Now, here's a quick post on how to monitor internet bandwidth usage based on application process.

Monitor Bandwidth Usage of Software by Process

NetHog Installation

# yum -y install nethogs

So, in order to identify which process ID (PIDS) that causes internet latency to your internet connection, you can fireup nethog to monitor you internet usage by process ID and immediately identify which process thread is taking too much internet consumption and bursting out too much internet traffic with your internet connection.

Nethogs presents internet bandwidth usage much like a top or htop in terminal mode.

# nethogs

Here's nethogs in action:

nethogs - monitor internet usage

Related Articles:

Network Bandwidth Usage Monitoring

Linux Resources Monitoring Tool

Internet Bandwidth Monitoring Tool

Interface Monitoring Linux Tool

Website Analytics and Site Monitoring Tool

Long-Term Traffic Monitoring Linux Tool

Trickle Bandwidth Shaper


Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy