<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>7.2.3. check — groonga v1.2.6ドキュメント</title> <link rel="stylesheet" href="../_static/groonga.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '1.2.6', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/translations.js"></script> <link rel="shortcut icon" href="../_static/favicon.ico"/> <link rel="top" title="groonga v1.2.6ドキュメント" href="../index.html" /> <link rel="up" title="7.2. コマンド" href="../commands.html" /> <link rel="next" title="7.2.4. clearlock" href="clearlock.html" /> <link rel="prev" title="7.2.2. cache_limit" href="cache_limit.html" /> </head> <body> <div class="header"> <h1 class="title"> <a id="top-link" href="../index.html"> <span class="project">groonga</span> <span class="separator">-</span> <span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span> </a> </h1> <div class="other-language-links"> <ul> <li><a href="../../../en/html/commands/check.html"><img src="../_static/us.png" alt="English"></a></li> </ul> </div> </div> <div class="related"> <h3>ナビゲーション</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="総合索引" accesskey="I">索引</a></li> <li class="right" > <a href="clearlock.html" title="7.2.4. clearlock" accesskey="N">次へ</a> |</li> <li class="right" > <a href="cache_limit.html" title="7.2.2. cache_limit" accesskey="P">前へ</a> |</li> <li><a href="../index.html">groonga v1.2.6ドキュメント</a> »</li> <li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li> <li><a href="../commands.html" accesskey="U">7.2. コマンド</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="check"> <h1>7.2.3. check<a class="headerlink" href="#check" title="このヘッドラインへのパーマリンク">¶</a></h1> <div class="section" id="id1"> <h2>7.2.3.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>check - オブジェクトの状態表示</p> </div> <div class="section" id="id2"> <h2>7.2.3.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2> <div class="highlight-none"><div class="highlight"><pre>check obj </pre></div> </div> </div> <div class="section" id="id3"> <h2>7.2.3.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>groonga組込コマンドの一つであるcheckについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。</p> <p>checkコマンドは、groongaプロセス内の指定したオブジェクトの状態を表示します。主にデータベースが壊れた場合など異常時の問題解決のために使用することを想定しています。デバッグ用のため、返値のフォーマットが安定しているということは保証されません。(フォーマットが変更される可能性が高い)</p> </div> <div class="section" id="id4"> <h2>7.2.3.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2> <p><tt class="docutils literal"><span class="pre">obj</span></tt></p> <blockquote> <div>状態を表示するオブジェクトの名前を指定します。</div></blockquote> </div> <div class="section" id="id5"> <h2>7.2.3.5. 返値<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2> <div class="section" id="json"> <h3>7.2.3.5.1. json形式<a class="headerlink" href="#json" title="このヘッドラインへのパーマリンク">¶</a></h3> <p>チェックするオブジェクトにより返される値が変わります。</p> <p>インデックスカラムの場合:</p> <div class="highlight-none"><div class="highlight"><pre>下記のような配列が出力されます。 [インデックスの状態, バッファの状態1, バッファの状態2, ...] ``インデックスの状態``には下記の項目がハッシュ形式で出力されます。 ``flags`` 指定されているフラグ値です。16進数で表現されています。 ``max sid`` セグメントのうち最も大きなIDです。 ``number of garbage segments`` ゴミセグメントの数です。 ``number of array segments`` 配列セグメントの数です。 ``max id of array segment`` 配列セグメントのうち最も大きなIDです。 ``number of buffer segments`` バッファセグメントの数です。 ``max id of buffer segment`` バッファセグメントのうち最も大きなIDです。 ``max id of physical segment in use`` 使用中の論理セグメントのうち最も大きなIDです。 ``number of unmanaged segments`` 管理されていないセグメントの数です。 ``total chunk size`` チャンクサイズの合計です。 ``max id of chunk segments in use`` 使用中のチャンクセグメントのうち最も大きなIDです。 ``number of garbage chunk`` 各チャンク毎のゴミの数です。 ``バッファの状態``には下記の項目がハッシュ形式で出力されます。 ``buffer id`` バッファIDです。 ``chunk size`` チャンクのサイズです。 ``buffer term`` バッファ内にある語の一覧です。各語の状態は以下のような配列となっています。 [語, バッファに登録されている語のID, 用語集に登録されている語のID, バッファ内でのサイズ, チャンク内でのサイズ] ``buffer free`` バッファの空き容量です。 ``size in buffer`` バッファの使用量です。 ``nterms`` バッファ内にある語の数です。 ``nterms with chunk`` バッファ内にある語のうち、チャンクを使っている語の数です。 </pre></div> </div> </div> </div> <div class="section" id="id6"> <h2>7.2.3.6. 例<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2> <p>テーブルTermsのインデックスカラムnameの状態を表示します。:</p> <div class="highlight-none"><div class="highlight"><pre>check Terms.name [{"flags":"00008202", "max sid":1, "number of garbage segments":0, "number of array segments":1, "max id of array segment":1, "number of buffer segments":110, "max id of buffer segment":111, "max id of physical segment in use":111, "number of unmanaged segments":4294967185, "total chunk size":7470239, "max id of chunk segments in use":127, "number of garbage chunk":[0,0,0,0,0,0,0,0,2,2,0,0,0,0,0]}, {"buffer id":0, "chunk size":94392, "buffer term":["596","59777","6",...], "buffer free":152944, "size in buffer":7361, "nterms":237, "nterms with chunk":216, "buffer id":1, "chunk size":71236, "buffer term":[["に述",18149,18149,2,25,6,6], ["に追",4505,4505,76,485,136,174], ["に退",26568,26568,2,9,2,2], ...], "buffer free":120000, "size in buffer":11155, "nterms":121, "nterms with chunk":116}, {"buffer id":1, ...}, ...] </pre></div> </div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="../index.html">目次</a></h3> <ul> <li><a class="reference internal" href="#">7.2.3. check</a><ul> <li><a class="reference internal" href="#id1">7.2.3.1. 名前</a></li> <li><a class="reference internal" href="#id2">7.2.3.2. 書式</a></li> <li><a class="reference internal" href="#id3">7.2.3.3. 説明</a></li> <li><a class="reference internal" href="#id4">7.2.3.4. 引数</a></li> <li><a class="reference internal" href="#id5">7.2.3.5. 返値</a><ul> <li><a class="reference internal" href="#json">7.2.3.5.1. json形式</a></li> </ul> </li> <li><a class="reference internal" href="#id6">7.2.3.6. 例</a></li> </ul> </li> </ul> <h4>前のトピックへ</h4> <p class="topless"><a href="cache_limit.html" title="前の章へ">7.2.2. cache_limit</a></p> <h4>次のトピックへ</h4> <p class="topless"><a href="clearlock.html" title="次の章へ">7.2.4. clearlock</a></p> <h3>このページ</h3> <ul class="this-page-menu"> <li><a href="../_sources/commands/check.txt" rel="nofollow">ソースコードを表示</a></li> </ul> <div id="searchbox" style="display: none"> <h3>クイック検索</h3> <form class="search" action="../search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="検索" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> モジュール、クラス、または関数名を入力してください </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>ナビゲーション</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="../genindex.html" title="総合索引" >索引</a></li> <li class="right" > <a href="clearlock.html" title="7.2.4. clearlock" >次へ</a> |</li> <li class="right" > <a href="cache_limit.html" title="7.2.2. cache_limit" >前へ</a> |</li> <li><a href="../index.html">groonga v1.2.6ドキュメント</a> »</li> <li><a href="../reference.html" >7. リファレンスマニュアル</a> »</li> <li><a href="../commands.html" >7.2. コマンド</a> »</li> </ul> </div> <div class="footer"> © Copyright 2009-2011, Brazil, Inc. </div> </body> </html>