Analyze server information
Compile and link with -lmemcached
libmemcached has the ability to query a memcached server (or collection of servers) for their current state. Queries to find state return a memcached_analysis_st structure. You are responsible for freeing this structure.
A command line tool, memstat with the option memstat --analyze, is provided so that you do not have to write an application to use this method.
Any method returning a memcached_analysis_st expects you to free the memory allocated for it.
memcached(1) libmemcached(3) memcached_strerror(3)