How do I measure bytes in/out of an IP port used for .NET remoting?

时光毁灭记忆、已成空白 提交于 2019-12-23 09:31:44

问题


I am using .NET remoting to retrieve periodic status updates from a Windows service into a 'controller' application which is used to display some live stats about what the service is doing.

The resulting network traffic is huge - many times the size of the data for the updates - so clearly I have implemented the remoting code incorrectly in a very inefficient way. As a first step towards fixing it, I need to monitor the traffic on the IP port the service is using to talk to the controller, so that I can establish a baseline and then verify a fix.

Can anyone recommend a utility and/or coding technique that I can use to get the traffic stats? A "bytes sent" count for the port would suffice.


回答1:


Wireshark is one of the best tools for capturing and analyzing IP traffic.

[Edit] Sort of lame that you answered first and didn't get the check mark. I didn't mean to snake you. +1 as a consolation.




回答2:


I highly recommend Wireshark for traffic analysis.



来源:https://stackoverflow.com/questions/42468/how-do-i-measure-bytes-in-out-of-an-ip-port-used-for-net-remoting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!