Sharepoint 速度非常慢(身份验证问题? - 在图像和样式上出现 401 错误)

发布于 2024-10-14 18:12:01 字数 1016 浏览 7 评论 0原文

我目前使用 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 技术交流群。

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

发布评论

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

评论(5

梦毁影碎の 2024-10-21 18:12:01

我们在共享点网站上就遇到过这个问题。

根本原因在于 NTLM 的工作方式。 NTLM 握手是 401.2 401.1 后跟 200。每个文件始终有 3 个请求。

对于每个请求,Web 服务器都会向 AD 服务器发送一个请求。问题是默认情况下只有 2 个到 AD 服务器的连接。因此请求会被备份并重试。

您可以执行以下两件事:

  • 确保正在缓存 gif 文件(这样您就不必一直获取它们)
  • 切换到 Kerberos

编辑

要设置 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:

  • Make sure that you are caching the gif files (then you will not have to get them all the time)
  • Switch to Kerberos

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

南城追梦 2024-10-21 18:12:01

您能验证所有客户端都会发生这种情况吗?如果您从服务器本身的浏览器访问该页面,您还会得到这个结果吗?

如果尚未关闭,请在网络设置中关闭 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)?

最后的乘客 2024-10-21 18:12:01

如果你的 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

财迷小姐 2024-10-21 18:12:01

我在下载的 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...)

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