Introduction to Linux nethogs monitoring tools

Source: Internet
Author: User

Nethogs Introduction

Nethogs is an open-source, free, terminal network traffic monitoring tool that monitors the network traffic of Linux processes or applications. Nethogs can only monitor the network bandwidth consumption of the process in real time. Nethogs supports IPV4 and IPV6 protocols, supports local network cards, and PPP links.

The official introduction is as follows:

Nethogs is a small ' net top ' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools does, it groups bandwidth by process. Nethogs does not rely on a special kernel module to be loaded. If there ' s suddenly a lot of network traffic, you can fire up nethogs and immediately see which PID is causing this. This makes it easy-to-indentify programs that has gone wild and is suddenly taking up your bandwidth.

nethogs Download

Nethogs's Open source code is available for download on SourceForge, which only provides source code downloads. Http://sourceforge.net/projects/nethogs/?source=directory. If you need to download the RPM installation package, you can go to this URL to download

ubuntu under Nethogs installation

sudo apt-get install Nethogs

Readhat under Nethogs Installation

[[email protected] tmp]
Warning:nethogs-0.8.0-1.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID 0608b895:nokey
########################################### [100%]
########################################### [100%]

Source installation Because the test process failed to install, again do not tell

Nethogs Use

[Email protected] tmp]# Nethogs

Nethogs provides interactive control commands:

M:cycle between display modes (KB/S, KB, b, MB) Toggle the speed displayed units

R:sort by received. Sort by received traffic

S:sort by sent. Sort by Send traffic

Q:quit and return to the shell prompt. Exit the Nethogs command tool

nethogs command-line arguments

Common parameters:

-D delay for refresh rate. Data refresh time such as nethogs-d 1 is refreshed once per second

-h Display available commands usage. Display named Help, usage information

-P sniff in promiscious mode (not recommended).

-T TraceMode.

-V Prints Version info.

Demo Example:

#5秒刷新一次数据

Nethogs-d 5

#监控网卡eth0数据

Nethogs eth0

#同时监视eth0和eth1接口

Nethogs eth0 eth1

#将监控日志写入日志文件
Nethogs >>test.log

Resources:

Http://rpm.pbone.net/index.php3/stat/4/idpl/17273936/dir/redhat_el_6/com/nethogs-0.8.0-1.el6.x86_64.rpm.html

Http://sourceforge.net/projects/nethogs/?source=directory

Linux nethogs Monitoring Tool Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.