Service manual

Optimizing For Searches
Chapter 6 Tuning Cache Sizes 119
Figure 6-5 Monitoring Cache Hit Rate Using Directory Server Console
Alternatively, paging and cache activity can be monitored by searching from the
commandline:
$ ldapsearch -D admin -w password \
-b cn=monitor,cn=database_name,cn=ldbm database,cn=plugins,cn=config
As a rough estimate of the amount ofmemory needed for all the database indexes
held in
.db3 files to fit in the database cache, use the following formula. This
formula is approximately accurate for default index configuration used with
typical entries having no large binary attributes such as photos.
nsslapd-dbcachesize = 1.2 x SUM
all .db3 files
(file size)