如何知道给定时间使用的网络带宽?
我正在尝试为在两台不同服务器中运行的程序构建一个负载平衡器。
到目前为止,我的负载均衡器仅使用每个服务器程序中的 PerformanceCounter 实例来检查每个服务器的 CPU 使用情况。
我还想查看每台服务器的带宽使用情况,如何查看?
(这可能也是使用 PerformanceCounter 完成的,但我不熟悉它的用法)
I'm trying to build a load balancer for a program that is running in 2 different servers.
So far my load balancer, only checks the CPU usage of each server using an instance of PerformanceCounter in each server program.
I would also like to check the bandwidth usage of each server, how can I check that?
(it is probably done also using the PerformanceCounter but I'm unfamiliar with its usage)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢月光,我找到了这个 http://www.keyvan .ms/how-to-calculate-network-utilization-in-net
查找可用的网卡此代码帮助我:
Thanks to moonlight I've found this http://www.keyvan.ms/how-to-calculate-network-utilization-in-net
to find the available network cards this code helped me: