man > db_stat(1)

๐Ÿ“– NAME

db5.3_stat โ€” Display statistics for Berkeley DB environments

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ“Š Locking Statsdb5.3_stat -cDisplay locking subsystem statistics
๐Ÿ’พ Cache Statsdb5.3_stat -mDisplay cache statistics
๐Ÿ“ Logging Statsdb5.3_stat -lDisplay logging subsystem statistics
๐Ÿ”„ Replication Statsdb5.3_stat -rDisplay replication statistics
๐Ÿงพ Transaction Statsdb5.3_stat -tDisplay transaction subsystem statistics
๐ŸŒ Environment Infodb5.3_stat -eDisplay database environment information
๐Ÿ—„๏ธ Specific DB Statsdb5.3_stat -d file -s databaseDisplay statistics for a specific database
โšก Fast DB Statsdb5.3_stat -d file -fDisplay database stats without traversing
๐Ÿ“‚ Specify Home Dirdb5.3_stat -h homeSpecify a home directory for the environment
๐Ÿ”„ Reset Statsdb5.3_stat -ZReset statistics after reporting
๐Ÿ› Debug Locking Internalsdb5.3_stat -C ADisplay detailed internal locking info
๐Ÿ› Debug Cache Internalsdb5.3_stat -M ADisplay detailed internal cache info

๐Ÿ“‹ SYNOPSIS

db5.3_stat -d file [-fN] [-h home] [-P password] [-s database]
db5.3_stat [-cEelmNrtVZ] [-C Aclop] [-h home] [-L A] [-M A] [-R A] [-P password]

๐Ÿ“ DESCRIPTION

The db5.3_stat utility displays statistics for Berkeley DB environments.

Values normally displayed in quantities of bytes are displayed as a combination of gigabytes (GB), megabytes (MB), kilobytes (KB), and bytes (B). Otherwise, values smaller than 10 million are displayed without any special notation, and values larger than 10 million are displayed as a number followed by "M".

The db5.3_stat utility may be used with a Berkeley DB environment (as described for the -h option, the environment variable DB_HOME, or because the utility was run in a directory containing a Berkeley DB environment). In order to avoid environment corruption when using a Berkeley DB environment, db5.3_stat should always be given the chance to detach from the environment and exit gracefully. To cause db5.3_stat to release all environment resources and exit cleanly, send it an interrupt signal (SIGINT).

โš™๏ธ OPTIONS

-C ๐Ÿ› Locking Subsystem Internals

Display internal information about the locking subsystem. (The output from this option is often both voluminous and meaningless, and is intended only for debugging.)

-c ๐Ÿ”’ Locking Subsystem Statistics

Display locking subsystem statistics, as described in DB_ENV->lock_stat.

-d ๐Ÿ—„๏ธ Database Statistics

Display database statistics for the specified file, as described in DB->stat.

If the database contains multiple databases and the -s flag is not specified, the statistics are for the internal database that describes the other databases the file contains, and not for the file as a whole.

-E ๐Ÿ› Database Environment Internals

Display internal information about the database environment, including all configured subsystems of the database environment. (The output from this option is often both voluminous and meaningless, and is intended only for debugging.)

-e ๐ŸŒ Database Environment Information

Display information about the database environment, including all configured subsystems of the database environment.

-f โšก Fast Database Statistics

Display only those database statistics that can be acquired without traversing the database.

-h ๐Ÿ“‚ Home Directory

Specify a home directory for the database environment; by default, the current working directory is used.

-L ๐Ÿ› Logging Subsystem Internals

Display internal information about the logging subsystem. (The output from this option is often both voluminous and meaningless, and is intended only for debugging.)

-l ๐Ÿ“ Logging Subsystem Statistics

Display logging subsystem statistics, as described in DB_ENV->log_stat.

-M ๐Ÿ› Cache Internals

Display internal information about the cache. (The output from this option is often both voluminous and meaningless, and is intended only for debugging.)

-m ๐Ÿ’พ Cache Statistics

Display cache statistics, as described in DB_ENV->memp_stat.

-N ๐Ÿšซ Non-blocking Operation

Do not acquire shared region mutexes while running. Other problems, such as potentially fatal errors in Berkeley DB, will be ignored as well. This option is intended only for debugging errors, and should not be used under any other circumstances.

-P ๐Ÿ”‘ Environment Password

Specify an environment password. Although Berkeley DB utilities overwrite password strings as soon as possible, be aware there may be a window of vulnerability on systems where unprivileged users can see command-line arguments or where utilities are not able to overwrite the memory containing the command-line arguments.

-R ๐Ÿ› Replication Subsystem Internals

Display internal information about the replication subsystem. (The output from this option is often both voluminous and meaningless, and is intended only for debugging.)

-r ๐Ÿ”„ Replication Statistics

Display replication statistics, as described in DB_ENV->rep_stat.

-s ๐Ÿ“Œ Specific Database

Display statistics for the specified database contained in the file specified with the -d flag.

-t ๐Ÿงพ Transaction Subsystem Statistics

Display transaction subsystem statistics, as described in DB_ENV->txn_stat.

-V โ„น๏ธ Version Information

Write the library version number to the standard output, and exit.

-Z ๐Ÿ”„ Reset Statistics

Reset the statistics after reporting them; valid only with the -C, -c, -E, -e, -L, -l, -M, -m, -R, -r, and -t options.

๐Ÿ”ง ENVIRONMENT

DB_HOME

If the -h option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home, as described in DB_ENV->open.

๐Ÿšช Exit Codes

โœ๏ธ AUTHORS

Sleepycat Software, Inc. This manual page was created based on the HTML documentation for db_stat from Sleepycat, by Thijs Kinkhorst <thijs AT kinkhorst.com>, for the Debian system (but may be used by others).

db_stat(1)
๐Ÿ“– NAME ๐Ÿš€ Quick Reference ๐Ÿ“‹ SYNOPSIS ๐Ÿ“ DESCRIPTION โš™๏ธ OPTIONS
-C ๐Ÿ› Locking Subsystem Internals -c ๐Ÿ”’ Locking Subsystem Statistics -d ๐Ÿ—„๏ธ Database Statistics -E ๐Ÿ› Database Environment Internals -e ๐ŸŒ Database Environment Information -f โšก Fast Database Statistics -h ๐Ÿ“‚ Home Directory -L ๐Ÿ› Logging Subsystem Internals -l ๐Ÿ“ Logging Subsystem Statistics -M ๐Ÿ› Cache Internals -m ๐Ÿ’พ Cache Statistics -N ๐Ÿšซ Non-blocking Operation -P ๐Ÿ”‘ Environment Password -R ๐Ÿ› Replication Subsystem Internals -r ๐Ÿ”„ Replication Statistics -s ๐Ÿ“Œ Specific Database -t ๐Ÿงพ Transaction Subsystem Statistics -V โ„น๏ธ Version Information -Z ๐Ÿ”„ Reset Statistics
๐Ÿ”ง ENVIRONMENT
DB_HOME
๐Ÿšช Exit Codes โœ๏ธ AUTHORS

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 09:16 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^