Table of Contents
Cluster-wide stats vs Single-server stats
moxi provides a "cluster-wide" view of stats. That is, moxi broadcasts the "stats" command to every server in the cluster and aggregates (sums) the returned values that make sense, before returning aggregated values back to you. Underneath the hood, it uses a hashmap to do the aggregation, so that stats values that moxi emits are returned in un-sorted (confusing) order. Because of this, folks usually do something like the following to make values easier to read (port 11211 is where moxi is listening by default in membase).
echo "stats" | nc HOST 11211 | sort
If you just want to get a single server's stats, directly from memcached/ep-engine, please use:
/opt/membase/VERSION/bin/ep-engine/management/stats.py HOST:11210 all
Port 11210 is where memcached/ep-engine is running by default in membase.