PHP: Memcache::getStats - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Memcache::getVersion Memcache::getServerStatus

Last updated: Fri, 26 Jan 2007

view this page in

# Memcache::getStats

(no version information, might be only in CVS)

Memcache::getStats -- Get statistics of the server

## Описание

array Memcache::getStats ( [string type [, int slabid [, int limit]]] )

Memcache::getStats() returns an associative array with server's statistics. Array keys correspond to stats parameters and values to parameter's values. Also you can use memcache_get_stats() function.

## Список параметров

`type`

  The type of statistics to fetch. Valid values are {reset, malloc, maps, cachedump, slabs, items, sizes}. According to the memcached protocol spec these additional arguments "are subject to change for the convenience of memcache developers".

`slabid`

  Used in conjunction with `type` set to cachedump to identify the slab to dump from. The cachedump command ties up the server and is strictly to be used for debugging purposes.

`limit`

  Used in conjunction with `type` set to cachedump to limit the number of entries to dump. Default value is 100.

## Возвращаемые значения

Returns an associative array of server statistics or `FALSE` on failure.

## Смотрите также

Memcache::getVersion()
Memcache::getExtendedStats()

add a note User Contributed Notes
Memcache::getStats
24-Oct-2006 07:09
`The stats output from this function and what is output from the getExtendedStats() are identical except that getExtendedStats() provides information for all servers used.`
mikael at synd dot info
18-Sep-2006 12:22
`pid Process id of this server process
uptime Number of seconds this server has been running
time Current UNIX time according to the server
version Version string of this server
rusage_user Accumulated user time for this process
rusage_system Accumulated system time for this process
curr_items Current number of items stored by the server
total_items Total number of items stored by this server ever since it started
bytes Current number of bytes used by this server to store items
curr_connections Number of open connections
total_connections Total number of connections opened since the server started running
connection_structures Number of connection structures allocated by the server
cmd_get Cumulative number of retrieval requests
cmd_set Cumulative number of storage requests
get_hits Number of keys that have been requested and found present
get_misses Number of items that have been requested and not found
bytes_read Total number of bytes read by this server from network
bytes_written Total number of bytes sent by this server to network
limit_maxbytes Number of bytes this server is allowed to use for storage.`
add a note
Memcache::getVersion Memcache::getServerStatus

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST