Sharepoint 速度非常慢(身份验证问题? - 在图像和样式上出现 401 错误)
我目前使用 Team Foundation Server 和 WSS 3.0 作为团队门户。安装和配置后,我注意到应用程序有时非常慢,需要几分钟才能加载页面。然后我用谷歌搜索并找到了n个解决方案,但没有一个解决了我的问题。
使用 Firebug 我注意到我收到了很多 401 错误,主要是在 _layouts 和 _themes 文件夹中。
错误图像: https://i.sstatic.net/SmurI.jpg
身份验证方法为 NTLM
Any知道发生了什么吗?页面加载后,需要很长时间才能显示。
编辑:这里是提琴手统计数据:
请求计数:161 发送的字节数:144.851(标头:133249;正文:11602) 收到的字节数:400.222(标头:69769;正文:330453)
实际性能
请求开始于:09:47:55.449 回复完成时间:09:50:03.311 总会话时间:00:03:11.542 序列(时钟)时间:00:02:07.8627850 TCP/IP 连接时间:239ms
响应代码
HTTP/401:84 HTTP/200:74 HTTP/302:2 HTTP/404:1
响应字节(按内容类型)
application/x-javascript:218.048 〜标题〜:69.769 文本/html:37.837 图片/gif:31.467 文本/CSS:27.506 图片/png:10.133 图像/jpeg:3.937 文本/javascript:1.007 文本/xml:518
I'm currently using Team Foundation Server and WSS 3.0 as the Team Portal. After the installation and configuring, I noticed the application was very slow sometimes, taking minutes to load a page. Then I googled it and found n solutions, none solved my problem.
Using Firebug I noticed I was getting a lot of 401 errors, mostly in _layouts and _themes folders.
Error image: https://i.sstatic.net/SmurI.jpg
Authentication method is NTLM
Any clue on what's happening? The page loads, it just takes forever before showing up.
EDIT: Here's fiddler statistics:
Request Count: 161
Bytes Sent: 144.851 (headers:133249; body:11602)
Bytes Received: 400.222 (headers:69769; body:330453)
ACTUAL PERFORMANCE
Requests started at: 09:47:55.449
Responses completed at: 09:50:03.311
Aggregate Session time: 00:03:11.542
Sequence (clock) time: 00:02:07.8627850
TCP/IP Connect time: 239ms
RESPONSE CODES
HTTP/401: 84
HTTP/200: 74
HTTP/302: 2
HTTP/404: 1
RESPONSE BYTES (by Content-Type)
application/x-javascript: 218.048
~headers~: 69.769
text/html: 37.837
image/gif: 31.467
text/css: 27.506
image/png: 10.133
image/jpeg: 3.937
text/javascript: 1.007
text/xml: 518
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我们在共享点网站上就遇到过这个问题。
根本原因在于 NTLM 的工作方式。 NTLM 握手是 401.2 401.1 后跟 200。每个文件始终有 3 个请求。
对于每个请求,Web 服务器都会向 AD 服务器发送一个请求。问题是默认情况下只有 2 个到 AD 服务器的连接。因此请求会被备份并重试。
您可以执行以下两件事:
编辑
要设置 Kerberos,请查看此博客文章 http://blogs.msdn.com/b/martinearn/archive/2007/04/23/configuring-kerberos-for-sharepoint-2007-part-1-base-configuration- for-sharepoint.aspx
We have had exactly this problem with a sharepoint site.
The root cause is the way that NTLM works. The NTLM handshake is a 401.2 401.1 followed by a 200. Allways 3 requests for each file.
For each request, the web server will send a request to the AD server. The problem is that by default there is only 2 connections to the AD server. So the request get backed up and retried.
There are two things that you can do:
Edit
For setting up Kerberos have a look at this blog post http://blogs.msdn.com/b/martinkearn/archive/2007/04/23/configuring-kerberos-for-sharepoint-2007-part-1-base-configuration-for-sharepoint.aspx
您是否看过这个常见的 SharePoint 性能修复 ?
Did you look at this common SharePoint performance fix?
您能验证所有客户端都会发生这种情况吗?如果您从服务器本身的浏览器访问该页面,您还会得到这个结果吗?
如果尚未关闭,请在网络设置中关闭 IPv6。另外,请验证您的 DNS 设置。 AD 身份验证缓慢 + RPC 服务器不可用使我相信您可能遇到了解决问题。从 ping 来看,一切似乎都有响应吗?当您登录到您的计算机时,是否需要很长时间才能登录(DNS 设置问题的另一个症状)?
Can you verify this happens on all clients? If you access the page from a browser on the server itself, do you still get this result?
If you haven't yet, turn off IPv6 in your network settings. Also, verify your DNS settings. Slow AD authentication + RPC Server Unavailable leads me to believe you may have addressing issues. Does everything seem responsive from a ping? When you log on to your machine, does it take a long time to log in (another symptom of DNS setting problems)?
如果你的 CSS / js / Images / .axd 出现 401 错误。与共享点/
NTLM认证
您必须在 Web 应用程序上配置匿名访问,如果您有发布门户,请在以下位置激活匿名:
- 样式库
- 网站收集图片
if you are 401 errors on CSS / js / Images / .axd. with sharepoint /
NTLM authentification
You must configure the anonymous access on the webapplication and if you have a publishing portal activate the anonymous on :
- style library
- sitecollectionimage
我在下载的 css 文件中遇到了这个问题。由于某种原因,对某些文件检查了 Windows 设置“加密内容以保护数据”。删除此设置后,一切正常。如有必要,请务必解锁它们。
(只是为了确定:我正在谈论(文件)->属性->高级->加密数据...)
I came across this problem with css files I downloaded. For some reason, the windows setting "encrypt contents to secure data" was checked for some files. After removing this setting, everything went fine. Be sure to unblock them if necessary.
(just to be sure: I'm talking about (file)->properties->advanced->encrypt data...)