
Monitoring Database Activity
Chapter 12
Monitoring Server and Database Activity
465
Monitoring Databases from the Command-Line
You can monitor your directory’s database activities from any LDAP client by
performing a search operation with the following characteristics:
• Search for attribute
objectClass=*
• Search base:
cn=monitor,cn=
database_instance
,cn=ldbm database,
cn=plugins, cn=config,
where
database_instance
is the name of the database
that you want to monitor
• Search scope:
base
For example:
ldapsearch -h directory.example.com -s base -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 “Using ldapsearch,” on page 588.
When you monitor your server’s activities, you see the following information:
•
database
: Identifies the type of database you are currently monitoring.
•
readonly
: Indicates whether the database is in read-only mode.
0
indicates
that the server is not in read-only mode,
1
indicates that it is in read-only
mode.
•
entrycachehits
: Provides the same information as described in Entry cache
hits in Table 12-5, on page 463.
Table 12-7
Database Performance Monitoring - Database File-Specific
Performance Metric
Current Total
Cache hits
Number of times that a search result resulted in a cache hit on this specific
file. That is, a client performs a search that requires data from this file, and
the directory obtains the required data from the cache.
Cache misses
Number of times that a search result failed to hit the cache on this specific
file. That is, a search that required data from this file was performed, and
the required data could not be found in the cache.
Pages read in
Indicates the number of pages brought to the cache from this file.
Pages written out
Indicates the number of pages for this file written from cache to disk.
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...