TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hogwatch – a bandwidth monitor that shows per process network transfer

195 pointsby cujanovicabout 9 years ago

14 comments

sciurusabout 9 years ago
Under the hood, this is using nethogs. Here&#x27;s how nethogs associates traffic with a process:<p>On linux the file &#x2F;proc&#x2F;net&#x2F;tcp lists all established TCP connections. It includes the local and remote socket addresses and the inode number for the local socket. Nethogs uses libpcap to sniff traffic and associate it with its entry in &#x2F;proc&#x2F;net&#x2F;tcp. It takes the inode from there and scans through &#x2F;proc&#x2F;*&#x2F;fd&#x2F; looking for the file descripter that has that inode to determine which process has the socket open. Once it finds the process it adds it to a table of inode to process id mappings so it doesn’t have to scan through &#x2F;proc again the second time a packet for that connection comes through.
akshayKMRabout 9 years ago
Hey, project author here. This is the first python package or project for that matter I&#x27;ve built for my college assignment.<p>I am really overwhelmed by the response. However the project is still very much unifinished.<p>Here are somethings that need to be fixed&#x2F;added for eg.<p>-fix some bugs on frontend.(proper sort on listing&#x2F;chart switching etc.)<p>-Kill nethogs process on exit &#x2F;&#x2F; fails sometimes<p>-Store history for restarts.<p>-proper packaging.<p>-unit tests.<p>I&#x27;ll add the above to the readme.md<p>First time on Hackernews&#x2F;Github feed feels great though. Cheers.
aparadjaabout 9 years ago
If you&#x27;re on Mac and just want to monitor the connections that each process makes (not the bandwidth), Radio Silence just got a built-in network monitor a few weeks ago: <a href="https:&#x2F;&#x2F;radiosilenceapp.com" rel="nofollow">https:&#x2F;&#x2F;radiosilenceapp.com</a><p>Disclaimer: I&#x27;m the author
评论 #11601853 未加载
评论 #11653237 未加载
TheAceOfHeartsabout 9 years ago
On OS X I use Little Snitch. Unfortunately, it&#x27;s not free.<p>I noticed in one of your screenshots you use LS as well, do they serve different purposes or was it just a project for fun?
评论 #11601509 未加载
评论 #11601676 未加载
评论 #11601648 未加载
epsabout 9 years ago
On Windows: Sysinternals Process Explorer, already mentioned Glasswire and NetBalancer and a bunch of other apps, almost all which aren&#x27;t very good at all. But Glasswire is very nice.
评论 #11601776 未加载
评论 #11602037 未加载
评论 #11601910 未加载
kallebooabout 9 years ago
A quick alternative on Mac is &quot;nettop&quot; in the Terminal
haniefabout 9 years ago
Nice. I use Little Snitch myself. I also appreciate the clever naming. ;)
lsv1about 9 years ago
The final build should have proper shebangs and I also noticed the CSS is a little messy. I&#x27;ll submit a pull request in a bit.<p>Otherwise I&#x27;ll give it a shot.
jszymborskiabout 9 years ago
I&#x27;ve been working on a similar python webserver + webview GUI from that used in this repo, but aren&#x27;t there security concerns of just opening it up to the local network? Aren&#x27;t you exposing your entire API to any app on the same computer?
评论 #11606176 未加载
gardanoabout 9 years ago
Dammit, now I&#x27;ve gone down a Terry Pratchett black hole again. Thanks, cujanovic.
yduuzabout 9 years ago
NetBalancer is a similar tool for Windows, with interesting functionality, but not free <a href="https:&#x2F;&#x2F;netbalancer.com" rel="nofollow">https:&#x2F;&#x2F;netbalancer.com</a>
评论 #11601531 未加载
评论 #11601547 未加载
评论 #11601795 未加载
SixSigmaabout 9 years ago
cli version<p><a href="http:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;8&#x2F;netstat" rel="nofollow">http:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;8&#x2F;netstat</a><p>similarly for disk<p><a href="http:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;1&#x2F;iotop" rel="nofollow">http:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;1&#x2F;iotop</a>
评论 #11601413 未加载
评论 #11601398 未加载
janeeabout 9 years ago
would be nice to configure a central server to which to push data to and list the machine name with each entry so you can monitor all machines on a network and see who and what is hogging the bandwidth. Might give it a go
评论 #11602503 未加载
jcofflandabout 9 years ago
etherape is another option on Linux.