none
CPU utilization is high while fetching global catalog servers in a site through c++ code. RRS feed

  • Question

  • Hi,

    I have to find the global catalog servers in a site through c++ code.

    I have used the following APIs

    ADsGetObject()

    ADsBuildEnumerator()

    DsGetSiteName()

    I have first fetch the configuration naming context , then find the Site Name and after the find GCs in a Site using following LDAP queries( LDAP://CN=NTDS Settings,CN=hostname,CN=Servers ).

    I am fetch the above information after every 100 milliseconds in a thread and it is taking high CPU Processor Time like 10 to 30 %. 

    Is their any way to reduce the the % processor Time( any other way to find GCs in a site )?

    Thanks 


    Sandeep Gupta

    Tuesday, July 30, 2013 10:35 AM