<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="mysql-cluster-programs-ndb-top">
      </a>
      25.5.30 ndb_top — View CPU usage information for NDB threads
     </h3>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045095909200">
  </a>
  <p>
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   displays running information in the
        terminal about CPU usage by NDB threads on an NDB Cluster data
        node. Each thread is represented by two rows in the output, the
        first showing system statistics, the second showing the measured
        statistics for the thread.
  </p>
  <p>
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   is available beginning with MySQL NDB
        Cluster 7.6.3.
  </p>
  <h4>
   <a name="idm46045095904384">
   </a>
   Usage
  </h4>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa6332940"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal">ndb_top <span class="token punctuation">[</span><span class="token property">-h</span> <em class="replaceable">hostname</em><span class="token punctuation">]</span> <span class="token punctuation">[</span><span class="token property">-t</span> <em class="replaceable">port</em><span class="token punctuation">]</span> <span class="token punctuation">[</span><span class="token property">-u</span> <em class="replaceable">user</em><span class="token punctuation">]</span> <span class="token punctuation">[</span><span class="token property">-p</span> <em class="replaceable">pass</em><span class="token punctuation">]</span> <span class="token punctuation">[</span><span class="token property">-n</span> <em class="replaceable">node_id</em><span class="token punctuation">]</span></code></pre>
  </div>
  <p>
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   connects to a MySQL Server running as
        an SQL node of the cluster. By default, it attempts to connect
        to a
   <a class="link" href="mysqld.html" title="6.3.1 mysqld — The MySQL Server">
    <span class="command">
     <strong>
      mysqld
     </strong>
    </span>
   </a>
   running on
   <code class="literal">
    localhost
   </code>
   and port 3306, as the MySQL
   <code class="literal">
    root
   </code>
   user with no password specified. You can
        override the default host and port using, respectively,
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_host">
    <code class="option">
     --host
    </code>
   </a>
   (
   <code class="option">
    -h
   </code>
   ) and
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_port">
    <code class="option">
     --port
    </code>
   </a>
   (
   <code class="option">
    -t
   </code>
   ). To
        specify a MySQL user and password, use the
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_user">
    <code class="option">
     --user
    </code>
   </a>
   (
   <code class="option">
    -u
   </code>
   ) and
   <a class="ulink" href="/doc/refman/5.7/en/mysql-cluster-programs-ndb-top.html#option_ndb_top_passwd" target="_top">
    <code class="option">
     --passwd
    </code>
   </a>
   (
   <code class="option">
    -p
   </code>
   )
        options. This user must be able to read tables in the
   <a class="link" href="mysql-cluster-ndbinfo.html" title="25.6.17 ndbinfo: The NDB Cluster Information Database">
    <code class="literal">
     ndbinfo
    </code>
   </a>
   database
        (
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   uses information from
   <a class="link" href="mysql-cluster-ndbinfo-cpustat.html" title="25.6.17.19 The ndbinfo cpustat Table">
    <code class="literal">
     ndbinfo.cpustat
    </code>
   </a>
   and related
        tables).
  </p>
  <p>
   For more information about MySQL user accounts and passwords,
        see
   <a class="xref" href="access-control.html" title="8.2 Access Control and Account Management">
    Section 8.2, “Access Control and Account Management”
   </a>
   .
  </p>
  <p>
   Output is available as plain text or an ASCII graph; you can
        specify this using the
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_text">
    <code class="option">
     --text
    </code>
   </a>
   (
   <code class="option">
    -x
   </code>
   ) and
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_graph">
    <code class="option">
     --graph
    </code>
   </a>
   (
   <code class="option">
    -g
   </code>
   )
        options, respectively. These two display modes provide the same
        information; they can be used concurrently. At least one display
        mode must be in use.
  </p>
  <p>
   Color display of the graph is supported and enabled by default
        (
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_color">
    <code class="option">
     --color
    </code>
   </a>
   or
   <code class="option">
    -c
   </code>
   option). With color support enabled, the graph display shows OS
        user time in blue, OS system time in green, and idle time as
        blank. For measured load, blue is used for execution time,
        yellow for send time, red for time spent in send buffer full
        waits, and blank spaces for idle time. The percentage shown in
        the graph display is the sum of percentages for all threads
        which are not idle. Colors are not currently configurable; you
        can use grayscale instead by using
   <code class="option">
    --skip-color
   </code>
   .
  </p>
  <p>
   The sorted view (
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_sort">
    <code class="option">
     --sort
    </code>
   </a>
   ,
   <code class="option">
    -r
   </code>
   ) is based on the maximum of the measured
        load and the load reported by the OS. Display of these can be
        enabled and disabled using the
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_measured-load">
    <code class="option">
     --measured-load
    </code>
   </a>
   (
   <code class="option">
    -m
   </code>
   ) and
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_os-load">
    <code class="option">
     --os-load
    </code>
   </a>
   (
   <code class="option">
    -o
   </code>
   )
        options. Display of at least one of these loads must be enabled.
  </p>
  <p>
   The program tries to obtain statistics from a data node having
        the node ID given by the
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_node-id">
    <code class="option">
     --node-id
    </code>
   </a>
   (
   <code class="option">
    -n
   </code>
   )
        option; if unspecified, this is 1.
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   cannot provide information about other types of nodes.
  </p>
  <p>
   The view adjusts itself to the height and width of the terminal
        window; the minimum supported width is 76 characters.
  </p>
  <p>
   Once started,
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   runs continuously until
        forced to exit; you can quit the program using
   <code class="literal">
    Ctrl-C
   </code>
   . The display updates once per second;
        to set a different delay interval, use
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_sleep-time">
    <code class="option">
     --sleep-time
    </code>
   </a>
   (
   <code class="option">
    -s
   </code>
   ).
  </p>
  <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Note
   </div>
   <p>
    <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
     <span class="command">
      <strong>
       ndb_top
      </strong>
     </span>
    </a>
    is available on macOS, Linux, and
          Solaris. It is not currently supported on Windows platforms.
   </p>
  </div>
  <p>
   The following table includes all options that are specific to
        the NDB Cluster program
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   . Additional
        descriptions follow the table.
  </p>
  <p>
  </p>
  <h4>
   <a name="mysql-cluster-programs-ndb-top-additional-options">
   </a>
   Additional Options
  </h4>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      <a name="option_ndb_top_color">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_color">
       <code class="option">
        --color
       </code>
      </a>
      ,
      <code class="option">
       -c
      </code>
     </p>
     <a class="indexterm" name="idm46045095856688">
     </a>
     <a class="indexterm" name="idm46045095855200">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for color">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --color
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Show ASCII graphs in color; use
      <code class="option">
       --skip-colors
      </code>
      to disable.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_defaults-extra-file">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_defaults-extra-file">
       <code class="option">
        --defaults-extra-file
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095844944">
     </a>
     <a class="indexterm" name="idm46045095843488">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for defaults-extra-file">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --defaults-extra-file=path
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          String
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           [none]
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Read given file after global files are read.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_defaults-file">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_defaults-file">
       <code class="option">
        --defaults-file
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095829200">
     </a>
     <a class="indexterm" name="idm46045095827712">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for defaults-file">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --defaults-file=path
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          String
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           [none]
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Read default options from given file only.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_defaults-group-suffix">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_defaults-group-suffix">
       <code class="option">
        --defaults-group-suffix
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095813488">
     </a>
     <a class="indexterm" name="idm46045095812032">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for defaults-group-suffix">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --defaults-group-suffix=string
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          String
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           [none]
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Also read groups with concat(group, suffix).
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_graph">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_graph">
       <code class="option">
        --graph
       </code>
      </a>
      ,
      <code class="option">
       -g
      </code>
     </p>
     <a class="indexterm" name="idm46045095797520">
     </a>
     <a class="indexterm" name="idm46045095796032">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for graph">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --graph
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Display data using graphs; use
      <code class="option">
       --skip-graphs
      </code>
      to disable. This option or
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_text">
       <code class="option">
        --text
       </code>
      </a>
      must be true; both
            options may be true.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_help">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_help">
       <code class="option">
        --help
       </code>
      </a>
      ,
      <code class="option">
       -?
      </code>
     </p>
     <a class="indexterm" name="idm46045095784528">
     </a>
     <a class="indexterm" name="idm46045095783040">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for help">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --help
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Show program usage information.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_host">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_host">
       <code class="option">
        --host[
       </code>
      </a>
      =
      <em class="replaceable">
       <code>
        name]
       </code>
      </em>
      ,
      <code class="option">
       -h
      </code>
     </p>
     <a class="indexterm" name="idm46045095772640">
     </a>
     <a class="indexterm" name="idm46045095771152">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for host">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --host=string
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          String
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           localhost
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Host name or IP address of MySQL Server to connect to.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_login-path">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_login-path">
       <code class="option">
        --login-path
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095756896">
     </a>
     <a class="indexterm" name="idm46045095755408">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for login-path">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --login-path=path
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          String
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           [none]
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Read given path from login file.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_no-login-paths">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_no-login-paths">
       <code class="option">
        --no-login-paths
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095741136">
     </a>
     <a class="indexterm" name="idm46045095739648">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for no-login-paths">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --no-login-paths
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Skips reading options from the login path file.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_measured-load">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_measured-load">
       <code class="option">
        --measured-load
       </code>
      </a>
      ,
      <code class="option">
       -m
      </code>
     </p>
     <a class="indexterm" name="idm46045095729568">
     </a>
     <a class="indexterm" name="idm46045095728080">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for measured-load">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --measured-load
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Show measured load by thread. This option or
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_os-load">
       <code class="option">
        --os-load
       </code>
      </a>
      must be true; both
            options may be true.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_no-defaults">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_no-defaults">
       <code class="option">
        --no-defaults
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095717360">
     </a>
     <a class="indexterm" name="idm46045095715872">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for no-defaults">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --no-defaults
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Do not read default options from any option file other than
            login file.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_node-id">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_node-id">
       <code class="option">
        --node-id[
       </code>
      </a>
      =
      <em class="replaceable">
       <code>
        #]
       </code>
      </em>
      ,
      <code class="option">
       -n
      </code>
     </p>
     <a class="indexterm" name="idm46045095705488">
     </a>
     <a class="indexterm" name="idm46045095704000">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for node-id">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --node-id=#
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          Integer
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           1
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Watch the data node having this node ID.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_os-load">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_os-load">
       <code class="option">
        --os-load
       </code>
      </a>
      ,
      <code class="option">
       -o
      </code>
     </p>
     <a class="indexterm" name="idm46045095689600">
     </a>
     <a class="indexterm" name="idm46045095688112">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for os-load">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --os-load
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Show load measured by operating system. This option or
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_measured-load">
       <code class="option">
        --measured-load
       </code>
      </a>
      must be
            true; both options may be true.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_password">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_password">
       <code class="option">
        --password[
       </code>
      </a>
      =
      <em class="replaceable">
       <code>
        password]
       </code>
      </em>
      ,
      <code class="option">
       -p
      </code>
     </p>
     <a class="indexterm" name="idm46045095676528">
     </a>
     <a class="indexterm" name="idm46045095675040">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for password">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --password=password
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          String
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           NULL
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Connect to a MySQL Server using this password and the MySQL
            user specified by
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_user">
       <code class="option">
        --user
       </code>
      </a>
      .
     </p>
     <p>
      This password is associated with a MySQL user account only,
            and is not related in any way to the password used with
            encrypted
      <code class="literal">
       NDB
      </code>
      backups.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_port">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_port">
       <code class="option">
        --port[
       </code>
      </a>
      =
      <em class="replaceable">
       <code>
        #]
       </code>
      </em>
      ,
      <code class="option">
       -P
      </code>
     </p>
     <a class="indexterm" name="idm46045095657984">
     </a>
     <a class="indexterm" name="idm46045095656496">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for port">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --port=#
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          Integer
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           3306
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Port number to use when connecting to MySQL Server.
     </p>
     <p>
      (Formerly, the short form for this option was
      <code class="option">
       -t
      </code>
      , which was repurposed as the short form
            of
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_text">
       <code class="option">
        --text
       </code>
      </a>
      .)
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_print-defaults">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_print-defaults">
       <code class="option">
        --print-defaults
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095640224">
     </a>
     <a class="indexterm" name="idm46045095638736">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for print-defaults">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --print-defaults
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Print program argument list and exit.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_sleep-time">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_sleep-time">
       <code class="option">
        --sleep-time[
       </code>
      </a>
      =
      <em class="replaceable">
       <code>
        seconds]
       </code>
      </em>
      ,
      <code class="option">
       -s
      </code>
     </p>
     <a class="indexterm" name="idm46045095628304">
     </a>
     <a class="indexterm" name="idm46045095626816">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for sleep-time">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --sleep-time=#
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          Integer
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           1
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Time to wait between display refreshes, in seconds.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_socket">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_socket">
       <code class="option">
        --socket=
        <em class="replaceable">
         <code>
          path/to/file
         </code>
        </em>
       </code>
      </a>
      ,
      <code class="option">
       -S
      </code>
     </p>
     <a class="indexterm" name="idm46045095611904">
     </a>
     <a class="indexterm" name="idm46045095610416">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for socket">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --socket=path
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          Path name
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           [none]
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Use the specified socket file for the connection.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_sort">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_sort">
       <code class="option">
        --sort
       </code>
      </a>
      ,
      <code class="option">
       -r
      </code>
     </p>
     <a class="indexterm" name="idm46045095596000">
     </a>
     <a class="indexterm" name="idm46045095594512">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for sort">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --sort
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Sort threads by usage; use
      <code class="option">
       --skip-sort
      </code>
      to
            disable.
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_text">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_text">
       <code class="option">
        --text
       </code>
      </a>
      ,
      <code class="option">
       -t
      </code>
     </p>
     <a class="indexterm" name="idm46045095584096">
     </a>
     <a class="indexterm" name="idm46045095582608">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for text">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --text
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Display data using text. This option or
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_graph">
       <code class="option">
        --graph
       </code>
      </a>
      must be true; both
            options may be true.
     </p>
     <p>
      (The short form for this option was
      <code class="option">
       -x
      </code>
      in
            previous versions of NDB Cluster, but this is no longer
            supported.)
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_usage">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_usage">
       <code class="option">
        --usage
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045095570880">
     </a>
     <a class="indexterm" name="idm46045095569392">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for usage">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --usage
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Display help text and exit; same as
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_help">
       <code class="option">
        --help
       </code>
      </a>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      <a name="option_ndb_top_user">
      </a>
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_user">
       <code class="option">
        --user[
       </code>
      </a>
      =
      <em class="replaceable">
       <code>
        name]
       </code>
      </em>
      ,
      <code class="option">
       -u
      </code>
     </p>
     <a class="indexterm" name="idm46045095558016">
     </a>
     <a class="indexterm" name="idm46045095556528">
     </a>
     <div class="informaltable">
      <table frame="box" rules="all" summary="Properties for user">
       <colgroup>
        <col style="width: 30%"/>
        <col style="width: 70%"/>
       </colgroup>
       <tbody>
        <tr>
         <th>
          Command-Line Format
         </th>
         <td>
          <code class="literal">
           --user=name
          </code>
         </td>
        </tr>
        <tr>
         <th>
          Type
         </th>
         <td>
          String
         </td>
        </tr>
        <tr>
         <th>
          Default Value
         </th>
         <td>
          <code class="literal">
           root
          </code>
         </td>
        </tr>
       </tbody>
      </table>
     </div>
     <p>
      Connect as this MySQL user. Normally requires a password
            supplied by the
      <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_password">
       <code class="option">
        --password
       </code>
      </a>
      option.
     </p>
    </li>
   </ul>
  </div>
  <p>
   <b>
    Sample Output.
   </b>
   The next figure shows
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   running in a
          terminal window on a Linux system with an
   <a class="link" href="mysql-cluster-programs-ndbmtd.html" title="25.5.3 ndbmtd — The NDB Cluster Data Node Daemon (Multi-Threaded)">
    <span class="command">
     <strong>
      ndbmtd
     </strong>
    </span>
   </a>
   data node under a moderate load.
          Here, the program has been invoked using
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_node-id">
    <code class="option">
     -n8
    </code>
   </a>
   <a class="link" href="mysql-cluster-programs-ndb-top.html#option_ndb_top_text">
    <code class="option">
     -x
    </code>
   </a>
   to provide
          both text and graph output:
  </p>
  <div class="figure">
   <a name="ndb_top-running-terminal">
   </a>
   <p class="title">
    <b>
     Figure 25.5 ndb_top Running in Terminal
    </b>
   </p>
   <div class="figure-contents">
    <div class="mediaobject">
     <img alt="Display from ndb_top, running in a terminal window. Shows information for each node, including the utilized resources." src="images/ndb-top-1.png" style="width: 100%; max-width: 800px;"/>
    </div>
   </div>
  </div>
  <br class="figure-break"/>
  <p>
   <a class="link" href="mysql-cluster-programs-ndb-top.html" title="25.5.30 ndb_top — View CPU usage information for NDB threads">
    <span class="command">
     <strong>
      ndb_top
     </strong>
    </span>
   </a>
   also shows spin times for threads,
        displayed in green.
  </p>
 </div>
 <br/>
</div>
