Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 1.8
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
7 Command-line Interface for Administration
Chapter Sections
Chapters

7.3. Using cbstats

7.3.1. Retrieving Bucket Statistics
7.3.2. Viewing Memory Allocations
7.3.3. Viewing Timing for Operations

You can use cbstats to access information about individual nodes, and the buckets associated with the nodes, in a Couchbase cluster. The utility is located in one of the following directories, depending upon your platform install:

Linux/opt/couchbase/bin/cbstats
WindowsC:\Program Files\Couchbase\Server\bin\cbstats.exe
Mac OS X/Applications/Couchbase \Server.app/Contents/Resources/couchbase-core/bin/cbstats

You can use this utility to get couchbase node statistics. The general format for using it is:

shell> cbstats HOST:BUCKET_PORT COMMAND [-flags] [bucketname password]

For this command, note that host and port are specifically for a bucket, not a node or cluster. The following describes the command format:

The following are the possible cbstats commands you can use:

Table 7.4. cbstats Tool Commands

CommandDescription
allProvides statistics for a named bucket.
allocatorMemory allocation for bucket, if exists.
checkpoint [vbid]Checkpoints are internal markers used to flag items in queue. View them with this command.
dispatcher [logs] 
hash [detail] 
items 
kvstore 
kvtimings 
raw argument 
resetResets hit- and miss- counters which indicate number of requests and failed requests.
slabs 
tap [username password] 
tapagg 
timingsShows history and time durations of different read/write operations. In milliseconds.
vkey keyname vbid 
help 

For example, the cbstats output can be used with other command-line tools to sort and filter the data.

watch --diff "cbstats \
    ip-10-12-19-81:11210 all | egrep 'item|mem|flusher|ep_queue|bg|eje|resi|warm'"