libmemcached的安装

来源:互联网 发布:隐藏应用程序的软件 编辑:程序博客网 时间:2024/05/16 15:53

 libmemcached的安装

访问其官方站:
http://download.tangent.org/

下载rpm包后安装,注意其最新的版本对glibc要求较高,如果不适用,建议用旧一点的版本

比如: centos5.2可以使用较低的libmemcached-0.25-1.x86_64.rpm

安装完成后,memstat等命令可以用了

 

下面的内容引用自:
http://www.oschina.net/p/libmemcached

 

libmemcached是C客户端到memcached服务器的接口库。具有低内存占用率、线程安全、并提供对memcached功能的全面支持。它还采用 多种命令行工具: memcat , memflush , memrm , memstat ,并memslap (负载代)。程序库一直在设计,让不同的散列方法对密钥,分割的钥匙,并使用统一的散列分配。


memsat的例子:

memstat --server 127.0.0.1

 

 

stats内容的一个说明:

以下是引用片段:

pid = process id
uptime = number of seconds since the process was started
time = current time
version = memcached version
rusage_user = seconds the cpu has devoted to the process as the user
rusage_system = seconds the cpu has devoted to the process as the system
curr_items = total number of items currently in memcache
total_items = total number of items that have passed through the cache
bytes = total number of bytes currently in use by curr_items
curr_connections = total number of open connections to memcached
connection_structures = ???
cmd_get = total GET commands issued to the server
cmd_set = total SET commands issued to the server
get_hits = total number of times a GET command was able to retrieve and
return data
get_misses = total number of times a GET command was unable to retrieve and
return data
bytes_read = total number of bytes input into the server
bytes_written = total number of bytes written by the server
limit_maxbytes = total storage bytes available to the server.