分析 SharePoint 应用程序的最佳实践

发布于 2024-07-07 17:36:13 字数 176 浏览 6 评论 0原文

当您正在处理的 SharePoint 应用程序的响应时间不令人满意时,您如何查明原因以及按什么顺序? 到目前为止,我还没有找到任何专门针对 SharePoint 部分的开源或商业分析工具,因此任何指向工具或最佳实践的指针将不胜感激。

附言。 我知道 Web 部件的分析选项,但我正在寻找涵盖整个应用程序的东西。

When the SharePoint application you are working on has unsatisfactory response times how do you pinpoint the causes and in which sequence? So far I have not yet found any open source or commercial profiling tools specific for the SharePoint segment, so any pointer to tools or best practices will be appreciated.

PS. I am aware of the profiling options for the web parts but I am looking for something that covers the entire application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

以可爱出名 2024-07-14 17:36:13

我的建议是查看以下内容:

  • 数据层检查并查看您的数据库是否运行正常,以及哪些请求花费了大量时间。 您在 SharePoint 中看到的所有内容 90% 都存储在数据库中的某个位置。 运行 SQL Profiler 几个小时并检查您的日志。

  • 网站集 我在 SharePoint 中发现,网站和网站集排列得越深,性能下降得越严重。 这纯粹是轶事,因此请持保留态度。

除此之外,我不知道还有多少 SharePoint 分析工具。 我在 SharePoint 方面的经验使我摆脱了繁重的自定义工作,转而使用更多功能 OOTB。 我很少推荐使用 SharePoint 作为应用程序平台。

祝你好运!

My advice is to look at the following:

  • Data Layer Check and see if your database is chugging along, and what requests are taking a lot of time. 90% of everything you see in SharePoint is stored in the database somewhere. Run SQL Profiler for a few hours and examine your logs.

  • Site Collections I have found in SharePoint that the deeper you arrange your sites and site collections, the further that performance degrades. This is purely anecdotal, so take it with a grain of salt.

Other than that, I don't know of many SharePoint profiling tools. My experience with SharePoint has pushed my away from heavy customization jobs, and towards using more functionality OOTB. I rarely recommend using SharePoint as an application platform.

Good Luck!

死开点丶别碍眼 2024-07-14 17:36:13

RedGate 有一份有关使用 ANTS Profiler 分析整个 Sharepoint 网站集的文档:

文件

我目前正在评估它,所以我不能说这是否有效以及它有多好。 确保您使用版本 4.1,以便能够在低于 1024 的端口上分析 IIS 6.0。Windows 权限的设置可能有点“奇怪”,但正如我所说,我仍在亲自评估它,不能说它有多好用。

RedGate has a document about profiling an entire Sharepoint Site Collection using the ANTS Profiler:

Document

I am currently evaluating it, so I cannot say if this works and how good it is. Make sure you use Version 4.1 though, to be able to profile IIS 6.0 on Ports below 1024. Windows Permissions maybe a bit "strange" to set up, but as said, I am still evaluating it myself and can not say how good this works.

缪败 2024-07-14 17:36:13

查看 Binary Wave 中名为 Sonar 的工具。 它详细介绍了有关 SharePoint 页面上加载内容需要时间的一些有用信息:

http:// /www.binarywave.com/products/sonar/default.aspx

您可以试用免费的精简版。

华泰
尼克·斯旺

check out a tool called Sonar from Binary Wave. It details some good information on what is taking time to load on your SharePoint page:

http://www.binarywave.com/products/sonar/default.aspx

There's a free lite version you can try out.

HTH
Nick Swan

初心未许 2024-07-14 17:36:13

正如 Michael 上面所说,Red Gate ANTS Profiler 是用于分析 SharePoint 代码的出色工具。

我在这里的帖子展示了启动和运行是多么容易,尽管您可能会说它是针对您的特定代码的,但当填充大型列表之类的内容时,可以测试性能问题。 但如果您进入这个领域,您并不是真的在寻找分析器,而是在负载和规模测试方面寻找更多。

http://www.21apps.com/sharepoint/code-profiling-ants/< /a>

希望这有帮助。

安德鲁

As Michael said above Red Gate ANTS Profiler is an excellent tool for profiling your SharePoint code.

My post here shows how easy it is to get up and running, although you could argue that it is aimed at your specific code it is possible to test perf issues when things like large lists are populated. But if your into this area you not really looking for a profiler and more at load and scale testing.

http://www.21apps.com/sharepoint/code-profiling-ants/

Hope this helps.

Andrew

本王不退位尔等都是臣 2024-07-14 17:36:13

不幸的是,很多 Sharepoint 开发都是原始的。 对于像你想要的东西,我会将逻辑和你认为缓慢的区域提取到一个独立的程序中,然后使用 Web 服务从 Sharepoint 提取数据,以便可以测试它们。

如果不是这样,那么开始在您不确定的代码周围放置一堆计时器并打印输出。

Unfortunately alot of Sharepoint development is primitive. For something like you want I would pull the logic and the areas you think are slow into a standalone program and then use the web services to pull the data from Sharepoint so they can be tested.

If not that then start putting a bunch of timers around code you are not sure about and printing the output.

话少心凉 2024-07-14 17:36:13

我已经使用 EQATEC Profiler 成功分析了 SharePoint 2010。 额外的好处是他们有免费版本。

此处设置步骤:
http://blogs.visigo。 com/chriscoulson/performance-profiling-a-sharepoint-2010-project-using-eqatec-profiler/

I've had success profiling SharePoint 2010 with EQATEC Profiler. Bonus is that they have a free edition.

Steps to set it up here:
http://blogs.visigo.com/chriscoulson/performance-profiling-a-sharepoint-2010-project-using-eqatec-profiler/

风苍溪 2024-07-14 17:36:13

您可以使用 Visual Studio 中的内置分析工具:http://msdn。 microsoft.com/en-us/library/hh322089.aspx

“本演练展示了如何使用 Visual 中的分析工具
Studio 用于优化 SharePoint 应用程序的性能。 这
示例应用程序是一个 SharePoint 功能事件接收器
包含会降低功能性能的空闲循环
事件接收器。 Visual Studio 探查器使您能够定位并
消除项目中最昂贵(执行最慢)的部分,
也称为热路径。”

You can use the built-in Profiling Tools in Visual Studio: http://msdn.microsoft.com/en-us/library/hh322089.aspx

"This walkthrough shows how to use the profiling tools in Visual
Studio to optimize the performance of a SharePoint application. The
example application is a SharePoint feature event receiver that
contains an idle loop that degrades the performance of the feature
event receiver. The Visual Studio profiler enables you to locate and
eliminate the most expensive (slowest-performing) part of the project,
also known as the hot path."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文