MEMSTAT(1)
๐
MEMSTAT(1) โ your girl's guide to memstat
okay bestie, welcome to memstat(1), straight out of libmemcached-awesome โจ this is the little tool that strolls up to your memcached(1) servers and asks them how they're doing. no cap, it's giving "wellness check for your cache" ๐ซถ
๐ธ NAME ๐ธ
memstat โ libmemcached Documentation ๐
(yeah, the official NAME section is literally just "libmemcached Documentation", we're not gonna pretend otherwise, periodt)
โจ SYNOPSIS โจ
memstat [options] [stat args]
Gather statistics from a server ๐
๐ฆ DESCRIPTION ๐ฆ
So here's the vibe: memstat dumps the state of memcached(1) servers. All of it. It prints all data to stdout ๐ซ
That's it, that's the whole personality. She shows up, she dumps state, she leaves. iconic.
๐ OPTIONS ๐
-h,--helpโ Display help. your lil "what do I do" button ๐ฅบ-V,--versionโ Display version. proof of who she is โจ-q,--quietโ Operate quietly ๐คซ (lowercase girlie)-v,--verboseโ Operate more verbosely ๐ฃ๏ธ (uppercase girlie energy)-d,--debugโ See-v,--verbose. basically the same thing, she's just wearing a different outfit ๐-s,--servers <list of servers>โ Specify the list of servers ashostname[:port][,hostname[:port]...]. yes the bracket situation is real, that's the whole format, copy it carefully bestie ๐ง-n,--non-blockingโ Enable non-blocking operations. no waiting around fr fr-N,--tcp-nodelayโ Disable Nagle's algorithm. less batching, more immediate, we love a fast girl ๐ฅ-b,--binaryโ Enable binary protocol. binary mode activated bestie ๐-B,--bufferโ Buffer requests. hold it, hold it, annnnnd go ๐ฆ-u,--username <username>โ Use username for SASL authentication ๐-p,--password <password>โ Use password for SASL authentication ๐ค-A,--args <stat>โ Stat args.
โ ๏ธ DEPRECATED: use positional arguments. seriously, use the positional args instead, this one's on the way out, don't get attached ๐ญ
-a,--analyze [<arg>]โ Analyze and print differences of a server cluster. A memory and uptime comparison is performed by default ๐
Options:
--analyze[=default]โ Memory and uptime comparison.--analyze=latencyโ Network latency comparison. (speed-checking your cluster, we love to see it โญ)
-S,-server-versionโ Obtain and print server version(s) only. just the version, nothing else, she's being mysterious ๐--iterationsโ Iteration count of GETs sent by the latency test (default:1000). a thousand whole GETs, go off ๐ฏ
๐ ENVIRONMENT ๐
MEMCACHED_SERVERSโ Specify a list of servers. set it once, forget about it, live your life ๐ซถ
๐ NOTES ๐
๐ PROGRAM PREFIX ๐
okay this part is a lil meta but it's important iykyk:
The prefix of this program is variable, i.e. it can be configured at build time ๐ทโโ๏ธ
Usually the client programs of libmemcached-awesome are prefixed with mem, like memcat or memcp ๐ฑ
It can be configured, though, to replace the prefix with something else like mc โ in case of that, the client programs of libmemcached-awesome would be called mccat, mccp, etc. respectively ๐ฎโ๐จ so if you can't find memstat, maybe she's going by another name now, main character rebrand energy fr fr.
โญ SEE ALSO โญ
memcached(1) libmemcached(3) ๐
- C/C++ Client Library for memcached
- Working with statistical information from a server
๐ก friendly reminder: everything gets printed to stdout. pipe it, redirect it, frame it, do whatever, she doesn't judge ๐
k so that's the whole page bestie ๐ธ this was libmemcached-awesome, version 1.1, dated Jul 18, 2024 โ go forth, run memstat, gather those stats, and slay ๐
๐โจ
๐ฆ where this page comes from
- epel 10: libmemcached-awesome-tools 1.1.4-5.el10_0 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms