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

search for in the

Memcached::getVersion> <Memcached::getServerList
Last updated: Fri, 13 Nov 2009

view this page in

Memcached::getStats

(PECL memcached >= 0.1.0)

Memcached::getStatsサーバプールの統計情報を取得する

説明

public array Memcached::getStats ( void )

Memcached::getStats() は、 すべての memcache サーバの状態を含む配列を返します。 その詳細については、» memcache プロトコル の仕様を参照ください。

パラメータ

この関数にはパラメータはありません。

返り値

サーバの統計情報の配列を返します。サーバごとにひとつのエントリとなります。

例1 Memcached::getStats() の例

<?php
$m 
= new Memcached();
$m->addServer('localhost'11211);

print_r($m->getStats());
?>

上の例の出力は、 たとえば以下のようになります。

Array
(
    [localhost:11211] => Array
        (
            [pid] => 4933
            [uptime] => 786123
            [threads] => 1
            [time] => 1233868010
            [pointer_size] => 32
            [rusage_user_seconds] => 0
            [rusage_user_microseconds] => 140000
            [rusage_system_seconds] => 23
            [rusage_system_microseconds] => 210000
            [curr_items] => 145
            [total_items] => 2374
            [limit_maxbytes] => 67108864
            [curr_connections] => 2
            [total_connections] => 151
            [connection_structures] => 3
            [bytes] => 20345
            [cmd_get] => 213343
            [cmd_set] => 2381
            [get_hits] => 204223
            [get_misses] => 9120
            [evictions] => 0
            [bytes_read] => 9092476
            [bytes_written] => 15420512
            [version] => 1.2.6
        )

)



add a note add a note User Contributed Notes
Memcached::getStats
There are no user contributed notes for this page.

Memcached::getVersion> <Memcached::getServerList
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites