---
title: "memcached stats 说明"
author: "woxiangxin"
date: "2012-02-24T21:18:24Z"
tags: ["memcached"]
categories: ["企业架构"]
slug: "memcached-stats"
draft: false
lastmod: "2012-02-24T21:18:24Z"
id: 1423398
url: "https://woxiangxin.iteye.com/blog/1423398"
---

stats命令  
得到的数据的意义如下：  
pid：32u，服务器进程ID。  
uptime：32u， 服务器运行时间，单位秒。  
time ：32u， 服务器当前的UNIX时间。  
version ：string， 服务器的版本号。  
curr\_items ：32u， 服务器当前存储的内容数量 Current number of items stored by the server  
total\_items ：32u， 服务器启动以来存储过的内容总数。  
bytes ：64u， 服务器当前存储内容所占用的字节数。  
curr\_connections ：32u， 连接数量。  
total\_connections ：32u， 服务器运行以来接受的连接总数。  
connection\_structures：32u， 服务器分配的连接结构的数量。  
cmd\_get ：32u， 取回请求总数。  
cmd\_set ：32u， 存储请求总数。  
get\_hits ：32u， 请求成功的总次数。  
get\_misses ：32u， 请求失败的总次数。  
bytes\_read ：64u， 服务器从网络读取到的总字节数。  
bytes\_written ：64u， 服务器向网络发送的总字节数。  
limit\_maxbytes ：32u， 服务器在存储时被允许使用的字节总数。  
上面的描述中32u和64u表示32位和64位无符号整数，string表示是string类型数据。