TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hogwatch – a bandwidth monitor that shows per process network transfer

195 点作者 cujanovic大约 9 年前

14 条评论

sciurus大约 9 年前
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.
akshayKMR大约 9 年前
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.
aparadja大约 9 年前
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 未加载
TheAceOfHearts大约 9 年前
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 未加载
eps大约 9 年前
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 未加载
kalleboo大约 9 年前
A quick alternative on Mac is &quot;nettop&quot; in the Terminal
hanief大约 9 年前
Nice. I use Little Snitch myself. I also appreciate the clever naming. ;)
lsv1大约 9 年前
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.
jszymborski大约 9 年前
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 未加载
gardano大约 9 年前
Dammit, now I&#x27;ve gone down a Terry Pratchett black hole again. Thanks, cujanovic.
yduuz大约 9 年前
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 未加载
SixSigma大约 9 年前
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 未加载
janee大约 9 年前
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 未加载
jcoffland大约 9 年前
etherape is another option on Linux.