AD LDS第一次访问慢 - 为什么? [英] AD LDS slow on first access - Why?

查看:300
本文介绍了AD LDS第一次访问慢 - 为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的应用程序在本地机器(在Windows Server 2008 R2中)上ADLDS实例安装,并撞倒了一些净code来访问它。这是我测试的功能之一,你可以看到它的相当简单的东西。

I have an ADLDS instance setup on a local machine (Windows Server 2008 R2 box) for a new application and have knocked up some .Net code to access it. This is one of the functions i'm testing, as you can see its fairly simple stuff.

Dim MyLdapUri As New Uri(searchRoot)

Using MyContext As New PrincipalContext(ContextType.ApplicationDirectory,
                                         MyLdapUri.Authority,
                                         MyLdapUri.LocalPath.Substring(1), ContextOptions.SimpleBind,
                                         strUsername, strPassword)
        Return UserPrincipal.FindByIdentity(MyContext, IdentityType.Name, username)
    End Using

有一件事我发现反复发生的事情是在我第一次打电话或任何其他功能,从试验台应用程序访问实例〜18S延时。到AD LDS实例所做的后续调用都在40毫秒的顺序。一旦你离开unqueried几分钟实例然后调用回去取18S在第一次通话。

One thing i'm finding happening repeatedly is a ~18s delay on the first time I call this or any other function to access the instance from a test bed application. Subsequent calls made to the AD LDS instance are in the order of 40ms. Once you leave the instance unqueried for a few minutes then calls go back to taking 18s on the first call.

我找不到任何不幸的事件日志中。我也试着连接到该实例不同的方法(简单的绑​​定用户如在上面的实例中定义,同时使用本地和域的Windows帐户),这对18岁先打附加延迟总是会发生的。谁能给我任何指针是什么原因导致这和/或如何,我会去诊断/修复它?

I can't find anything untoward in the event logs. I've also tried connecting to the instance different ways (simple bind to a user defined in the instance as above, using both local and domain Windows accounts) and this 18s additional delay on the first hit always happens. Can anyone give me any pointers to what causes this and/or how I might go about diagnosing/fixing it?

推荐答案

这可能是由于您的身份验证服务器的方式。

This can be due to the way you authenticate to your server.

你是在一个域控制器上安装ADLDS在服务器上至极?

Is the server on wich you install ADLDS in a domain controler ?

是您的客户端计算机在同一个域中的服务器?

Is your client computer in the same domain as your server ?

如何你的客户端计算机解决您的URI的DNS部分?

How you client computer resolve the DNS part of your URI ?

  • 在你的情况替换 LDAP:// MYSERVER LDAP://myserver.ourdomain.local

这篇关于AD LDS第一次访问慢 - 为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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