如何验证 Web 应用程序中的网络带宽问题
我正在维护一个 ASP.NET 应用程序。有些用户的操作速度相当慢;我的一位同事声称这是由网络带宽引起的,因为一些使用的 dll 会连接到互联网来获取数据。
我如何验证这确实是由于网络问题造成的?在此过程中是否有任何工具可以对等网络连接?
谢谢。
I am maintainign a ASP.NET app. Some of users action are pretty slow; one of my colleagues claim it is caused by network bandwidth as some used dll will connect over to internet to get data.
How could I verify it's really due to network issue? Any tools can peer the network connection during the process?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将实现跟踪 - 在服务器上启用远程跟踪
,然后修改调用有问题的 DLL 的代码,在调用之前和之后包含此代码:
然后
点击缓慢的页面,然后转到 http://yourserver/Trace.axd 并查看最后一个 aspx 请求
I would implement tracing - enable remote tracing on the server
and then modify the code that calls the DLL in question, include this code before and after call:
and after
then hit the page that's slow, and after that go to http://yourserver/Trace.axd and look at the last aspx request
如果您认为“网络问题”出在服务器端,那么您可以使用任务管理器并切换到网络选项卡来查看带宽利用率。如果利用率接近服务器端的带宽,那么您就可以确定了。
如果您怀疑用户没有足够的带宽,也可以执行相同的操作。
仅供参考:如果您进行额外的互联网调用(无论是从客户端还是从服务器),您将获得额外的网络延迟(对于每个调用)。这并不表示存在带宽问题,而只是表示存在其他网络延迟问题需要处理。
If you think the "network issue" is on the server side then you could just use TaskManager andswitch to the network tab to see the bandwidth utilization. If the utilization is close to the bandwidth you have at your server's end then you'll know for sure.
The same can be done if you suspect the user doesn't have enough bandwidth.
FYI: If you are making additional internet calls (either from the client or the server) there will be additional network latency that you'll get (for each call). That doesn't indicate a bandwidth issue but just that there are additional network latency issues to deal with.