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
- Log in as the directory server instance owner on the system where the directory server instance is running.
- To configure specific attributes for the directory database,
run the following command:
ldapmodify -p port -D adminDN -w adminPW -i filenamewhere, 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 - To configure automatic attribute caching for the directory
database, run the following command:
ldapmodify -D adminDN -p port -w adminPW -i filenamewhere, 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 - To configure specific attributes for the change log, run
the following command:
ldapmodify -D adminDN -p port -w adminPW -i filenamewhere, 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 - 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