.I#Berkeley DB: db_stat[P

db_stat





db_stat [-clmNt]J    [-C Acfhlmo] [-d file] [-h home] [-M Ahlm]




Description



EThe db_stat utility displays statistics for Berkeley DB environments.

The options are as follows:

G

-C
Display internal information about the lock region.F(The output from this option is often both voluminous and meaningless,$and is intended only for debugging.)
$

A
Display all information.&
c
Display lock conflict matrix.,
f
Display lock and object free lists.,
l
Display lockers within hash chains.+
m
Display region memory information.,
o
Display objects within hash chains.
x

-c
Display lock region statistics as described in lock_stat.X

-d
Display database statistics for the specified database, as described/in db_open.>

-h
Specify a home directory for the database.r

-l
Display log region statistics as described in log_stat.U

-M
Display internal information about the shared memory buffer pool.F(The output from this option is often both voluminous and meaningless,$and is intended only for debugging.)
$

A
Display all information.,
h
Display buffers within hash chains.+
l
Display buffers within LRU chains.+
m
Display region memory information.
P

-m
Display shared memory buffer pool statistics as described in3memp_stat.X

-N
Don't acquire shared region locks while accumulating the statistics.IThis option is intended only for debugging corrupt regions and should not&be used under any other circumstances.I

-t
Display transaction region statistics as described in3txn_stat.


>Values smaller than 10 million are generally displayed withoutany special notation.IValues larger than 10 million are normally displayed as M.

LThe db_stat utility attaches to one or more of the Berkeley DB shared memoryHregions. In order to avoid region corruption, it should always be givenGthe chance to detach and exit gracefully. To cause db_stat to clean up<after itself and exit, send it an interrupt signal (SIGINT).

BThe db_stat utility exits 0 on success, and >0 if an error occurs.



Environment Variables





DB_HOME
EIf the -h option is not specified and the environment variableIDB_HOME is set, it is used as the path of the database home, as described8in db_appinit.




See Also

4db_archive,:db_checkpoint,6db_deadlock,.db_dump,.db_load,4db_recover,anddb_stat.
ÿÿ