如何开始使用WCF性能分析 [英] How to get started with WCF Performance profiling

查看:59
本文介绍了如何开始使用WCF性能分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚如何配置WCF服务,以便找出任何瓶颈.
我已经在线上找到了一些信息,但是没有任何东西可以假设我没有先验知识.

I'm trying to figure out how to profile a WCF service so I can identify any bottlenecks.
I have found a bit of information on line, but nothing that assumes no prior knowlege which is where I'm at.

什么是推荐的免费工具?

- visual studio tools
- clrprofiler 

Here is information I found using vsperfcmd.exe to profile wcf service and according to this it is very simple, but I need to fill in the gaps on where to start. My assumptions are to copy VsPerfCLREnv and VsPerfCmd to the server that hosts my wcf service and perform some configuraiton steps that I'm not quite sure on. I'm also not quite sure how I would be able to see the call stack to evaluate the performance of each call.

clrprofiler似乎更简单.我假设我会将clrprofiler.exe复制到服务器File->Profile Service并添加名称和启动/停止命令. (这是一个友好的名称还是文件名,还是服务的显示名称?)我假设我随后将对该服务运行测试,并且可以在clrprofiler中看到调用堆栈.听起来正确吗?

clrprofiler seems a bit simpler. I assume I would copy clrprofiler.exe to the server, File->Profile Service and add the name and start/stop commands. (is this a friendly name or filename or the service display name?) I assume I would then run my tests against the service and I could see the call stack in clrprofiler. Does that sound correct?


我对测试网络不太感兴趣,因为它位于测试服务器上,这是一个大型的wcf项目,上面有多个开发人员,我无法仅出于监视性能的目的而对该项目进行更改.我想重点关注其中实际方法的性能.

[edit]
I'm not so interested in testing the network since this is on a test server, and this is a large wcf project with multiple devs on it and I am unable to make changes to the project for the sole purpose of monitoring the performance. I want to focus on the performance of the actual methods within it.

在使用入门方面提供的任何帮助都将不胜感激.

Any assistance on getting started is greatly appreciated.

推荐答案

我了解到有人可能会有所帮助的一些事情:

some things I've learned that someone might find helpful:

即使在本地网络上,您也无法远程配置服务的配置文件.探查器必须与服务在同一台计算机上运行. (这实际上花了我很多时间.也许对您来说很明显,但是它从未被阐明,所以我一直在努力做到)

you cannot remote profile a service, even over your local network. The profiler must be running on the same machine as the service. (This actually took me quite a while to figure out. Maybe obvious to you, but it was never spelled out so I kept trying to do it)

Visual Studio无法为我配置WCF服务.我能够从VS Profiler团队那里获得一些帮助,但是从来没有一个可行的解决方案来解决这个问题.

Visual Studio didn't work for me to profile my WCF service. I was able to get a bit of help from the VS profiler team, but never came out of it with a working solution.

VS连接和断开探查器的速度很慢,经常检测我的二进制文件并使它们处于损坏状态.

VS was slow to connect and disconnect the profiler and often instrumented my binaries and left them in a corrupted state.

.net二进制文件不需要检测,因为它们包含方法的元数据,这很奇怪,Visual Studio会不断尝试尝试检测它们.

.net binaries do not need to be instrumented since they contain the metadata of the methods which is odd that visual studio kept hosing my binaries trying to instrument them.

我还尝试了VS独立探查器,但这使用起来非常复杂,需要重新启动服务器.

I also tried the VS standalone profiler but this is very complex to use and requires reboots of my server.

我最终得到了一个内部探查器(从团队获得了私有版本之后)开始工作,所以我不确定在那里有多少探查器旨在与WCF服务一起使用.

I ended up getting an internal profiler to work (after getting a private build from the team) so I'm not sure how many profilers out there are designed to work with a WCF service.

我实际上将探查器设置为监视WAS服务,然后将其他二进制文件添加到探查器.

I actually set the profiler to watch the WAS service and then added my additional binaries to the profiler.

进程浏览器在进行故障排除时很有用.用它来查看inetinfo.exe环境

process explorer is useful when troubleshooting if the profiler is connected or not. Use it to look at inetinfo.exe environment

这篇关于如何开始使用WCF性能分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆