groonga - An open-source fulltext search engine and column store.

8.3.26. status

8.3.26.1. 名前

status - groongaプロセスの状態表示

8.3.26.2. 書式

status

8.3.26.3. 説明

groonga組込コマンドの一つであるstatusについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。

statusコマンドは、groongaプロセスの状態を表示します。主にgroongaサーバプロセスに対して使用することを想定しています。

8.3.26.4. 引数

ありません。

8.3.26.5. 返値

8.3.26.5.1. json形式

下記の項目がハッシュ形式で出力されます。

alloc_count

groongaプロセスの内部でアロケートされ、まだ解放されてないメモリブロックの数を示します。groongaをbuildする際に、configureオプションで --enable-exact-alloc-countが指定されていたならば、正確な値を返します。それ以外の場合は不正確な値を返す場合があります。

starttime

groongaプロセスが起動した時刻のtvsec値を返します。

uptime

groongaプロセスが起動してから経過した秒数を返します。

8.3.26.6. 例

Execution example:

status
# [
#   [
#     0,
#     1337566253.89858,
#     0.000355720520019531
#   ],
#   {
#     "uptime": 50,
#     "max_command_version": 2,
#     "n_queries": 39,
#     "cache_hit_rate": 0.0,
#     "version": "3.0.7",
#     "alloc_count": 300,
#     "command_version": 1,
#     "starttime": 1377493297,
#     "default_command_version": 1
#   }
# ]

Table Of Contents

Previous topic

8.3.25. shutdown

Next topic

8.3.27. suggest

This Page