Chapter 13. Monitoring Server and Database Activity
388
13.4.2. Monitoring Databases from the Command Line
The directory's database activities can be monitored using any LDAP too, such as
ldapsearch
3
,
using the following characteristics:
• Search with the attribute filter
objectClass=*
.
• Use the search base
cn=monitor,cn=
database_instance,
cn=ldbm database, cn=plugins,
cn=config
.
database_instance
is the name of the database to monitor.
• Use the search scope
base
.
For example:
ldapsearch -h directory.example.com -s base -p 389 -D "cn=Directory Manager" -w password
-b "cn=monitor,cn=Example,cn=ldbm database,cn=plugins, cn=config" "objectclass=*"
In this example, the
ldapsearch
operation looks for the
Example
database. For information on
searching the directory, see
Section B.2, “Using ldapsearch”
.
Monitoring the server's activities shows the following information:
Attribute
Description
database
Identifies the type of database currently being
monitored.
readonly
Indicates whether the database is in read-only
mode;
0
means that the server is not in read-only
mode,
1
means that it is in read-only mode.
entrycachehits
The total number of successful entry cache
lookups. That is, the total number of times
the server could process a search request by
obtaining data from the cache rather than by
going to disk.
entrycachetries
The total number of entry cache lookups since
the directory was last started. That is, the total
number of search operations performed against
the server since server startup.
entrycachehitratio
Ratio that indicates the number of entry cache
tries to successful entry cache lookups. This
number is based on the total lookups and hits
since the directory was last started. The closer
this value is to 100%, the better. Whenever a
search operation attempts to find an entry that
is not present in the entry cache, the directory
has to perform a disk access to obtain the
entry. Thus, as this ratio drops towards zero,
the number of disk accesses increases, and
directory search performance drops. To improve
this ratio, increase the number of entries that
the directory maintains in the entry cache by
increasing the value of the
Maximum Entries
in Cache
attribute. See
Section 15.2, “Tuning
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...