【发布时间】:2019-02-12 08:07:50
【问题描述】:
我发现当我使用新的 SPSite 对象打开 SharePoint 站点时,响应速度太慢。
using(SPSite s = new SPSite(siteURL) //30 seconds
{
...
}
我确实尝试了以下方法,但是该方法并没有获得显着的性能提升,我可以就性能问题寻求您的帮助吗?
- 热身脚本:
http://www.justinkobel.com/post/2013/08/16/My-SharePoint-2013-%28and-2010%29-Warm-up-Script
http://www.jonthenerd.com/2011/04/19/easy-sharepoint-2010-warmup-script-using-powershell/
- 禁用分布式缓存
https://sharepoint.stackexchange.com/questions/65695/sharepoint-2013-extremely-slow
【问题讨论】:
-
网站在浏览器中加载需要多长时间?您的代码没有什么问题。性能缓慢可能是由于系统资源不足(内存不足等),因为 SharePoint 2013 占用了内存。您的 SharePoint/SQL Server 服务器有多少 RAM?
-
SharePoint 服务器安装了 24 GB RAM,SQL Server 安装了 12 GB RAM。
标签: c# sharepoint sharepoint-2013