Configuring attribute cache from the command line

You can configure the attribute cache from the command line to improve directory server performance when search operations are run against the server.

Procedure

  1. Log in as the directory server instance owner on the system where the directory server instance is running.
  2. To configure specific attributes for the directory database, run the following command:
    ldapmodify -p port -D adminDN -w adminPW -i filename
    where, filename contains the following entries:
    dn: cn=Directory, cn=RDBM Backends, cn=IBM Directory, cn=Schemas, cn=Configuration
    changetype: modify
    add: ibm-slapdCachedAttribute
    ibm-slapdCachedAttribute:sn
    -
    add: ibm-slapdCachedAttribute
    ibm-slapdCachedAttribute:cn
    -
    replace: ibm-SlapdCachedAttributeSize
    ibm-SlapdCachedAttributeSize: 262144
  3. To configure automatic attribute caching for the directory database, run the following command:
    ldapmodify -D adminDN -p port  -w adminPW -i filename
    where, filename contains the following entries:
    dn: cn=Directory, cn=RDBM Backends, cn=IBM Directory, cn=Schemas, cn=Configuration 
    changetype: modify 
    replace: ibm-SlapdCachedAttributeSize 
    ibm-SlapdCachedAttributeSize: 262144 
    -
    replace: ibm-slapdCachedAttributeAutoAdjust
    ibm-slapdCachedAttributeAutoAdjust: TRUE
  4. To configure specific attributes for the change log, run the following command:
    ldapmodify -D adminDN -p port  -w adminPW -i filename
    where, filename contains the following entries:
    dn: cn=change log, cn=RDBM Backends, cn=IBM Directory, cn=Schemas, cn=Configuration
    changetype: modify
    add: ibm-slapdCachedAttribute
    ibm-slapdCachedAttribute:changetype
    -
    replace: ibm-SlapdCachedAttributeSize
    ibm-SlapdCachedAttributeSize: 32768
  5. Restart the directory server and administration server to effect the changes made.
    ibmslapd -I instance -k
    ibmdiradm -I instance -k
    ibmslapd -I instance
    ibmdiradm -I instance