上一主题: 指定复制等待时间下一主题: 如何改善目录搜索性能


指定 LDAP 连接设置

要改善性能,您可以在目录配置文件 (directory.xml) 中指定以下参数:

连接超时

指定 CA Identity Manager 在终止搜索之前搜索目录的最大毫秒数。

如下所示在目录配置文件中指定此属性:

com.sun.jndi.ldap.connect.timeout

连接池最大大小

指定 CA Identity Manager 可以建立对 LDAP 目录的连接的最大数目。

如下所示在目录配置文件中指定此属性:

com.sun.jndi.ldap.connect.pool.maxsize

连接池默认大小

指定 CA Identity Manager 和 LDAP 目录之间的连接的默认数目。

如下所示在目录配置文件中指定此属性:

com.sun.jndi.ldap.connect.pool.prefsize

遵循这些步骤:

  1. 在目录配置文件 (directory.xml) 中,找到描述用户对象的 ImsManagedObject 元素。
  2. 添加下列 PropertyDict 元素:
    <PropertyDict name="LDAP_CONNECTION_SETTINGS" description="LDAP Connection Settings">
    
    <Property name="com.sun.jndi.ldap.connect.timeout">5000</Property>
    <Property name="com.sun.jndi.ldap.connect.pool.maxsize">200</Property>
    <Property name="com.sun.jndi.ldap.connect.pool.prefsize">10</Property>
    
    </PropertyDict>
    
  3. 保存 directory.xml 文件。

    在您使用此文件创建 CA Identity Manager 目录时,CA Identity Manager 会配置这些设置。