Visual Studio 2010远程调试非常慢(跨域,通过VPN)
总体调试是有效的,但是代码的每一步都需要几十秒。
我已经关闭了所有其他窗口,例如堆栈跟踪、手表、汽车;删除了所有断点。
服务器和开发计算机位于不同的域,因此我在两者上设置了本地用户,并使用匹配的密码。远程调试器作为服务运行。
查看安全日志,发现有相当多的远程调试账号登录的条目(大约每分钟记录一次)。
关于如何加快远程调试速度有什么建议吗?
- 开发计算机:四核、8 GB 内存、Windows 7 x64、Visual Studio 2010 Ultimate。
- 目标服务器:ASP.NET 网站,2x 双核 Xeon,2 GB 内存,远程调试器2010.
- 通信通道:VPN,5Mbit/s,延迟约20ms。 (看来调试从来不会使用超过20kbyte/s)
Overall debugging works, but each step through code takes dozens of seconds.
I've already closed all additional windows like stack trace, watches, autos; deleted all breakpoints.
The server and development machine are located in different domains, so I set up a local user on both, with a matching password. The remote debugger is running as a service.
Looking at the security log, I found quite a lot of entries about remote debugging account logging in (record about every minute).
Any suggestions on how I can speed up remote debugging?
- Development computer: quad core, 8 GB memory, Windows 7 x64, Visual Studio 2010 Ultimate.
- Target server: ASP.NET website, 2x dual core Xeon, 2 GB memory, remote debugger 2010.
- Communication channel: VPN, 5 Mbit/s, latency about 20 ms. (it seems that debugging never uses more than 20 kbyte/s)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先确定总体响应时间。它可能有点低级,但是获取 Wireshark 并监视两台服务器之间的通信。这样您就可以知道调试是否因您的网络而缓慢,并为您提供一个起点。
关闭活动模式,否则您可能会在网络中发出一些警报。我用它来调试 WFE 和 FAST 查询服务器之间的通信,并检测到问题出在哪里。
First identify the overall response times. It may be a little bit low level, but get Wireshark and monitor communication between both servers. That way you will know if debugging is slow because of your network and will give you a starting point.
Turn off active mode, else you may raise a few alarms in your network. I used it to debug communication between our WFE and a FAST query server, and we detected where the problem was.
这可能是由于防火墙过度活跃造成的。
如果可以的话,只是为了测试一下,禁用两个机器上的防火墙,看看性能是否有所提高。
This could be caused by an overactive firewall.
If you can, just to test, disable your firewall on both boxes and see if your performance increases at all.