4 <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
5 <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
9 <meta name=
"viewport" content=
"width=device-width, initial-scale=1.0">
11 <title>memstat
— libmemcached
1.0.99 documentation
</title>
20 <script type=
"text/javascript" src=
"../_static/js/modernizr.min.js"></script>
23 <script type=
"text/javascript" id=
"documentation_options" data-url_root=
"../" src=
"../_static/documentation_options.js"></script>
24 <script src=
"../_static/jquery.js"></script>
25 <script src=
"../_static/underscore.js"></script>
26 <script src=
"../_static/doctools.js"></script>
27 <script src=
"../_static/language_data.js"></script>
29 <script type=
"text/javascript" src=
"../_static/js/theme.js"></script>
34 <link rel=
"stylesheet" href=
"../_static/css/theme.css" type=
"text/css" />
35 <link rel=
"stylesheet" href=
"../_static/pygments.css" type=
"text/css" />
36 <link rel=
"index" title=
"Index" href=
"../genindex.html" />
37 <link rel=
"search" title=
"Search" href=
"../search.html" />
38 <link rel=
"copyright" title=
"Copyright" href=
"../copyright.html" />
39 <link rel=
"next" title=
"memerror" href=
"memerror.html" />
40 <link rel=
"prev" title=
"memping" href=
"memping.html" />
43 <body class=
"wy-body-for-nav">
46 <div class=
"wy-grid-for-nav">
48 <nav data-toggle=
"wy-nav-shift" class=
"wy-nav-side">
49 <div class=
"wy-side-scroll">
50 <div class=
"wy-side-nav-search" >
54 <a href=
"../index.html" class=
"icon icon-home"> libmemcached
71 <form id=
"rtd-search-form" class=
"wy-form" action=
"../search.html" method=
"get">
72 <input type=
"text" name=
"q" placeholder=
"Search docs" />
73 <input type=
"hidden" name=
"check_keywords" value=
"yes" />
74 <input type=
"hidden" name=
"area" value=
"default" />
81 <div class=
"wy-menu wy-menu-vertical" data-spy=
"affix" role=
"navigation" aria-label=
"main navigation">
88 <p class=
"caption"><span class=
"caption-text">libmemcached
</span></p>
90 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached.html">Introduction
</a></li>
91 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached/index.html">libmemcached API
</a></li>
92 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcached/index_misc.html">Misc
</a></li>
94 <p class=
"caption"><span class=
"caption-text">libmemcachedutil
</span></p>
96 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcachedutil.html">Introduction
</a></li>
97 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libmemcachedutil/index.html">libmemcachedutil API
</a></li>
99 <p class=
"caption"><span class=
"caption-text">libhashkit
</span></p>
101 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libhashkit.html">Introduction
</a></li>
102 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../libhashkit/index.html">libhashkit API
</a></li>
104 <p class=
"caption"><span class=
"caption-text">Client Applications
</span></p>
106 <li class=
"toctree-l1 current"><a class=
"reference internal" href=
"index.html">Client Applications
</a><ul class=
"current">
107 <li class=
"toctree-l2"><a class=
"reference internal" href=
"index.html#data-manipulation">Data Manipulation
</a></li>
108 <li class=
"toctree-l2 current"><a class=
"reference internal" href=
"index.html#tests-and-analysis">Tests and Analysis
</a><ul class=
"current">
109 <li class=
"toctree-l3"><a class=
"reference internal" href=
"memaslap.html">memaslap - Load testing and benchmarking a server
</a></li>
110 <li class=
"toctree-l3"><a class=
"reference internal" href=
"memslap.html">memslap
</a></li>
111 <li class=
"toctree-l3"><a class=
"reference internal" href=
"memping.html">memping – Ping a server
</a></li>
112 <li class=
"toctree-l3 current"><a class=
"current reference internal" href=
"#">memstat – Gather statistics from a server
</a><ul>
113 <li class=
"toctree-l4"><a class=
"reference internal" href=
"#synopsis">SYNOPSIS
</a></li>
114 <li class=
"toctree-l4"><a class=
"reference internal" href=
"#description">DESCRIPTION
</a></li>
115 <li class=
"toctree-l4"><a class=
"reference internal" href=
"#options">OPTIONS
</a></li>
116 <li class=
"toctree-l4"><a class=
"reference internal" href=
"#environment">ENVIRONMENT
</a></li>
117 <li class=
"toctree-l4"><a class=
"reference internal" href=
"#see-also">SEE ALSO
</a></li>
120 <li class=
"toctree-l3"><a class=
"reference internal" href=
"memerror.html">memerror — Translate libmemcached error codes
</a></li>
121 <li class=
"toctree-l3"><a class=
"reference internal" href=
"memparse.html">memparse — Parse and validate an option string
</a></li>
122 <li class=
"toctree-l3"><a class=
"reference internal" href=
"memcapable.html">memcapable — Check a server's capabilities and compatibility
</a></li>
125 <li class=
"toctree-l2"><a class=
"reference internal" href=
"index.html#server-administration">Server Administration
</a></li>
129 <p class=
"caption"><span class=
"caption-text">Copyright
</span></p>
131 <li class=
"toctree-l1"><a class=
"reference internal" href=
"../copyright.html">Copyright
</a></li>
140 <section data-toggle=
"wy-nav-shift" class=
"wy-nav-content-wrap">
143 <nav class=
"wy-nav-top" aria-label=
"top navigation">
145 <i data-toggle=
"wy-nav-top" class=
"fa fa-bars"></i>
146 <a href=
"../index.html">libmemcached
</a>
151 <div class=
"wy-nav-content">
153 <div class=
"rst-content">
171 <div role=
"navigation" aria-label=
"breadcrumbs navigation">
173 <ul class=
"wy-breadcrumbs">
175 <li><a href=
"../index.html">Docs
</a> »</li>
177 <li><a href=
"index.html">Client Applications
</a> »</li>
182 <li class=
"wy-breadcrumbs-aside">
193 <div role=
"main" class=
"document" itemscope=
"itemscope" itemtype=
"http://schema.org/Article">
194 <div itemprop=
"articleBody">
196 <div class=
"section" id=
"memstat">
197 <h1>memstat
<a class=
"headerlink" href=
"#memstat" title=
"Permalink to this headline">¶
</a></h1>
198 <div class=
"section" id=
"synopsis">
199 <h2>SYNOPSIS
<a class=
"headerlink" href=
"#synopsis" title=
"Permalink to this headline">¶
</a></h2>
200 <p>memstat [options]
</p>
201 <p>Gather statistics from a server
</p>
203 <div class=
"section" id=
"description">
204 <h2>DESCRIPTION
<a class=
"headerlink" href=
"#description" title=
"Permalink to this headline">¶
</a></h2>
205 <p><strong class=
"program">memstat
</strong> dumps the state of
<em class=
"manpage"><a class=
"manpage reference external" href=
"https://linux.die.net/man/1/memcached">memcached(
1)
</a></em> servers.
206 It prints all data to stdout.
</p>
208 <div class=
"section" id=
"options">
209 <h2>OPTIONS
<a class=
"headerlink" href=
"#options" title=
"Permalink to this headline">¶
</a></h2>
210 <dl class=
"std option">
211 <dt id=
"cmdoption-memstat-help">
212 <code class=
"sig-name descname">--help
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-help" title=
"Permalink to this definition">¶
</a></dt>
213 <dd><p>Display help.
</p>
216 <dl class=
"std option">
217 <dt id=
"cmdoption-memstat-version">
218 <code class=
"sig-name descname">--version
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-version" title=
"Permalink to this definition">¶
</a></dt>
219 <dd><p>Display version.
</p>
222 <dl class=
"std option">
223 <dt id=
"cmdoption-memstat-quiet">
224 <code class=
"sig-name descname">--quiet
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-quiet" title=
"Permalink to this definition">¶
</a></dt>
225 <dd><p>Operate quietly.
</p>
228 <dl class=
"std option">
229 <dt id=
"cmdoption-memstat-verbose">
230 <code class=
"sig-name descname">--verbose
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-verbose" title=
"Permalink to this definition">¶
</a></dt>
231 <dd><p>Operate more verbosely.
</p>
234 <dl class=
"std option">
235 <dt id=
"cmdoption-memstat-debug">
236 <code class=
"sig-name descname">--debug
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-debug" title=
"Permalink to this definition">¶
</a></dt>
237 <dd><p>See
<a class=
"reference internal" href=
"#cmdoption-memstat-verbose"><code class=
"xref std std-option docutils literal notranslate"><span class=
"pre">--verbose
</span></code></a>.
</p>
240 <dl class=
"std option">
241 <dt id=
"cmdoption-memstat-servers">
242 <code class=
"sig-name descname">--servers
</code><code class=
"sig-prename descclassname"> <list of servers
></code><a class=
"headerlink" href=
"#cmdoption-memstat-servers" title=
"Permalink to this definition">¶
</a></dt>
243 <dd><p>Specify the list of servers as
<em>hostname[:port][,hostname[:port]...]
</em>.
</p>
246 <dl class=
"std option">
247 <dt id=
"cmdoption-memstat-binary">
248 <code class=
"sig-name descname">--binary
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-binary" title=
"Permalink to this definition">¶
</a></dt>
249 <dd><p>Enable binary protocol.
</p>
252 <dl class=
"std option">
253 <dt id=
"cmdoption-memstat-username">
254 <code class=
"sig-name descname">--username
</code><code class=
"sig-prename descclassname"> <username
></code><a class=
"headerlink" href=
"#cmdoption-memstat-username" title=
"Permalink to this definition">¶
</a></dt>
255 <dd><p>Use
<em>username
</em> for SASL authentication.
</p>
258 <dl class=
"std option">
259 <dt id=
"cmdoption-memstat-password">
260 <code class=
"sig-name descname">--password
</code><code class=
"sig-prename descclassname"> <password
></code><a class=
"headerlink" href=
"#cmdoption-memstat-password" title=
"Permalink to this definition">¶
</a></dt>
261 <dd><p>Use
<em>password
</em> for SASL authentication.
</p>
264 <dl class=
"std option">
265 <dt id=
"cmdoption-memstat-analyze">
266 <code class=
"sig-name descname">--analyze
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-analyze" title=
"Permalink to this definition">¶
</a></dt>
267 <dd><p>Analyze and print differences of a server cluster. A memory and uptime comparison is performed by default.
</p>
268 <p>Available additional modes:
</p>
269 <dl class=
"option-list">
270 <dt><kbd><span class=
"option">--analyze=
<var>latency
</var></span></kbd></dt>
271 <dd><p>Network latency comparison
</p>
276 <dl class=
"std option">
277 <dt id=
"cmdoption-memstat-server-version">
278 <code class=
"sig-name descname">--server-version
</code><code class=
"sig-prename descclassname"></code><a class=
"headerlink" href=
"#cmdoption-memstat-server-version" title=
"Permalink to this definition">¶
</a></dt>
279 <dd><p>Obtain and print server version(s) only.
</p>
283 <div class=
"section" id=
"environment">
284 <h2>ENVIRONMENT
<a class=
"headerlink" href=
"#environment" title=
"Permalink to this headline">¶
</a></h2>
285 <dl class=
"std envvar">
286 <dt id=
"envvar-MEMCACHED_SERVERS">
287 <code class=
"sig-name descname">MEMCACHED_SERVERS
</code><a class=
"headerlink" href=
"#envvar-MEMCACHED_SERVERS" title=
"Permalink to this definition">¶
</a></dt>
288 <dd><p>Specify the list of servers.
</p>
292 <div class=
"section" id=
"see-also">
293 <h2>SEE ALSO
<a class=
"headerlink" href=
"#see-also" title=
"Permalink to this headline">¶
</a></h2>
295 <li><p><a class=
"reference internal" href=
"../libmemcached.html"><span class=
"doc">C/C++ Client Library for memcached
</span></a></p></li>
296 <li><p><a class=
"reference internal" href=
"../libmemcached/memcached_stats.html"><span class=
"doc">Working with statistical information from a server
</span></a></p></li>
307 <div class=
"rst-footer-buttons" role=
"navigation" aria-label=
"footer navigation">
309 <a href=
"memerror.html" class=
"btn btn-neutral float-right" title=
"memerror" accesskey=
"n" rel=
"next">Next
<span class=
"fa fa-arrow-circle-right"></span></a>
312 <a href=
"memping.html" class=
"btn btn-neutral float-left" title=
"memping" accesskey=
"p" rel=
"prev"><span class=
"fa fa-arrow-circle-left"></span> Previous
</a>
319 <div role=
"contentinfo">
321 © <a href=
"../copyright.html">Copyright
</a>
325 Built with
<a href=
"http://sphinx-doc.org/">Sphinx
</a> using a
<a href=
"https://github.com/rtfd/sphinx_rtd_theme">theme
</a> provided by
<a href=
"https://readthedocs.org">Read the Docs
</a>.
338 <script type=
"text/javascript">
340 SphinxRtdTheme.Navigation.enable(true);