libmemcached的安装

 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.

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值