|
Memcache::getExtendedStatsGet statistics from all servers in pool Description
array Memcache::getExtendedStats
([ string
$type
[, int $slabid
[, int $limit = 100
]]] )
Memcache::getExtendedStats returns a two-dimensional
associative array with server statistics. Array keys correspond to
host:port of server and values contain the individual server statistics.
A failed server will have its corresponding entry set to
Parameters
Warning
The cachedump stat type has been removed from the memcached daemon due to security reasons. Return Values
Returns a two-dimensional associative array of server statistics or Examples
Example #1 Memcache::getExtendedStats example
<?phpThe above example will output:
Array
(
[memcache_host:11211] => Array
(
[pid] => 3756
[uptime] => 603011
[time] => 1133810435
[version] => 1.1.12
[rusage_user] => 0.451931
[rusage_system] => 0.634903
[curr_items] => 2483
[total_items] => 3079
[bytes] => 2718136
[curr_connections] => 2
[total_connections] => 807
[connection_structures] => 13
[cmd_get] => 9748
[cmd_set] => 3096
[get_hits] => 5976
[get_misses] => 3772
[bytes_read] => 3448968
[bytes_written] => 2318883
[limit_maxbytes] => 33554432
)
[failed_host:11211] => false
)
See Also
|