Utility

NetHogs – monitor network bandwidth usage by process

NetHogs is a terminal-based network monitoring utility that shows which processes are consuming network bandwidth.

Unlike tools that organise traffic by protocol, subnet or communicating host, NetHogs groups network activity according to the processes responsible for it. This makes it particularly useful when a computer is transferring unexpected amounts of data and the offending application is unknown.

The interface resembles the top process monitor, displaying active processes alongside their upload and download rates. Administrators can quickly identify bandwidth-intensive applications without having to analyse individual packets.

NetHogs relies heavily on the Linux /proc filesystem for process attribution. It does not require a special kernel module, although packet capture normally requires elevated privileges.

This is free and open source software.

Key Features

  • Displays network upload and download rates for individual processes.
  • Associates network traffic with process identifiers and executable names.
  • Continuously updates bandwidth measurements in a terminal interface.
  • Supports both IPv4 and IPv6 traffic.
  • Monitors Ethernet and PPP network interfaces.
  • Can monitor multiple network interfaces.
  • Displays transfer rates or cumulative traffic totals.
  • Supports interactive changes to display units and sorting.
  • Trace mode produces a stream of network activity suitable for logging and further processing.
  • Offers an optional promiscuous capture mode.
  • Uses standard packet capture facilities without requiring a dedicated kernel module.
  • Can identify network activity from processes that would otherwise be difficult to associate with individual connections.
  • Cross-platform support – runs on Linux and macOS, although process attribution is limited outside Linux.

Website: github.com/raboof/nethogs
Support:
Developer: Arnout Engelen and contributors
License: GNU General Public License v2.0

NetHogs

NetHogs is written in C++. Learn C++ with our recommended free books and free tutorials.


Related Software

Network 'top' Tools
NetHogsGroups bandwidth by process
bandwhichShows network bandwidth usage by process and connection
NetWatchInteractive terminal monitor for traffic, connections and packets
IPTraf-ngFork of IPTraf
RustNetReal-time terminal monitor for connections and process traffic
vnStatLightweight monitor for long-term network traffic statistics
netshowProcess-aware terminal monitor for active network connections
iftopDisplays bandwidth usage on an interface by host
socktopRemote system monitor with a rich TUI
FlowReal-time terminal dashboard for upload and download speeds
bmonInteractive bandwidth monitor with live interface statistics
rdmatopTerminal monitor for RDMA traffic, devices and processes
ntapTerminal tool for live network monitoring and packet capture

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted