When I run getStats()
on my PHP instance, it results in the following:
array (
'10.143.27.235:11211' =>
array (
'����' => '',
'pid' => 3602,
'uptime' => 49804,
'time' => 1663088274,
'version' => '1.5.22',
'libevent' => '2.1.8-stable',
'pointer_size' => 64,
'rusage_user' => 30.254434,
'rusage_system' => 62.188442000000002,
'max_connections' => 4096,
'curr_connections' => 2,
'total_connections' => 23609,
'rejected_connections' => 0,
'connection_structures' => 3167,
'reserved_fds' => 40,
'cmd_get' => 40992,
'cmd_set' => 449861,
'cmd_flush' => 0,
'cmd_touch' => 0,
'cmd_meta' => 0,
'get_hits' => 8371,
'get_misses' => 32621,
'get_expired' => 11,
'get_flushed' => 0,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15221200168,
'bytes_written' => 310816593,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 0,
'time_in_listen_disabled_us' => 0,
'threads' => 8,
'conn_yields' => 226,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'slab_reassign_rescues' => 0,
'slab_reassign_chunk_rescues' => 0,
'slab_reassign_evictions_nomem' => 0,
'slab_reassign_inline_reclaim' => 0,
'slab_reassign_busy_items' => 0,
'slab_reassign_busy_deletes' => 0,
'slab_reassign_running' => 0,
'slabs_moved' => 0,
'lru_crawler_running' => 0,
'lru_crawler_starts' => 10557,
'lru_maintainer_juggles' => 2063686,
'malloc_fails' => 0,
'log_worker_dropped' => 0,
'log_worker_written' => 0,
'log_watcher_skipped' => 0,
'log_watcher_sent' => 0,
'bytes' => 4544738368,
'curr_items' => 133847,
'total_items' => 137181,
'slab_global_page_pool' => 0,
'expired_unfetched' => 97,
'evicted_unfetched' => 0,
'evicted_active' => 0,
'evictions' => 0,
'reclaimed' => 4,
'crawler_reclaimed' => 110,
'crawler_items_checked' => 3211510,
'lrutail_reflocked' => 0,
'moves_to_cold' => 130364,
'moves_to_warm' => 434,
'moves_within_lru' => 26,
'direct_reclaims' => 0,
'lru_bumps_dropped' => 0,
),
'10.143.27.236:11211' =>
array (
'lru_bumps_dropped' => 0,
'pid' => 4740,
'uptime' => 51568,
'time' => 1663088274,
'version' => '1.5.22',
'libevent' => '2.1.8-stable',
'pointer_size' => 64,
'rusage_user' => 31.862048999999999,
'rusage_system' => 64.406024000000002,
'max_connections' => 4096,
'curr_connections' => 2,
'total_connections' => 35973,
'rejected_connections' => 0,
'connection_structures' => 4048,
'reserved_fds' => 40,
'cmd_get' => 44847,
'cmd_set' => 454104,
'cmd_flush' => 0,
'cmd_touch' => 0,
'cmd_meta' => 0,
'get_hits' => 9163,
'get_misses' => 35684,
'get_expired' => 7,
'get_flushed' => 0,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15307804903,
'bytes_written' => 352732366,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 6,
'time_in_listen_disabled_us' => 2229873734,
'threads' => 8,
'conn_yields' => 79,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'slab_reassign_rescues' => 0,
'slab_reassign_chunk_rescues' => 0,
'slab_reassign_evictions_nomem' => 0,
'slab_reassign_inline_reclaim' => 0,
'slab_reassign_busy_items' => 0,
'slab_reassign_busy_deletes' => 0,
'slab_reassign_running' => 0,
'slabs_moved' => 0,
'lru_crawler_running' => 0,
'lru_crawler_starts' => 10512,
'lru_maintainer_juggles' => 2164258,
'malloc_fails' => 0,
'log_worker_dropped' => 0,
'log_worker_written' => 0,
'log_watcher_skipped' => 0,
'log_watcher_sent' => 0,
'bytes' => 4628120364,
'curr_items' => 136702,
'total_items' => 140446,
'slab_global_page_pool' => 0,
'expired_unfetched' => 82,
'evicted_unfetched' => 0,
'evicted_active' => 0,
'evictions' => 0,
'reclaimed' => 4,
'crawler_reclaimed' => 82,
'crawler_items_checked' => 2953530,
'lrutail_reflocked' => 0,
'moves_to_cold' => 132317,
'moves_to_warm' => 511,
'moves_within_lru' => 5,
'direct_reclaims' => 0,
),
'10.143.27.237:11211' =>
array (
'lru_bumps_dropped' => 0,
'pid' => 16373,
'uptime' => 51548,
'time' => 1663088274,
'version' => '1.4.15',
'libevent' => '2.0.21-stable',
'pointer_size' => 64,
'rusage_user' => 39.035840999999998,
'rusage_system' => 60.120074000000002,
'curr_connections' => 19,
'total_connections' => 36254,
'connection_structures' => 4064,
'reserved_fds' => 40,
'cmd_get' => 45428,
'cmd_set' => 455441,
'cmd_flush' => 0,
'cmd_touch' => 0,
'get_hits' => 9028,
'get_misses' => 36400,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15402562747,
'bytes_written' => 333855851,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 12,
'threads' => 8,
'conn_yields' => 0,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'bytes' => 4674195333,
'curr_items' => 137929,
'total_items' => 141594,
'expired_unfetched' => 1,
'evicted_unfetched' => 0,
'evictions' => 0,
'reclaimed' => 1,
),
'10.143.27.238:11211' =>
array (
'reclaimed' => 0,
'pid' => 15280,
'uptime' => 51538,
'time' => 1663088275,
'version' => '1.4.15',
'libevent' => '2.0.21-stable',
'pointer_size' => 64,
'rusage_user' => 38.798851999999997,
'rusage_system' => 65.026118999999994,
'curr_connections' => 18,
'total_connections' => 36494,
'connection_structures' => 4064,
'reserved_fds' => 40,
'cmd_get' => 45197,
'cmd_set' => 454172,
'cmd_flush' => 0,
'cmd_touch' => 0,
'get_hits' => 9146,
'get_misses' => 36051,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15340862218,
'bytes_written' => 335691464,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 11,
'threads' => 8,
'conn_yields' => 0,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'bytes' => 4654658805,
'curr_items' => 137242,
'total_items' => 140672,
'expired_unfetched' => 0,
'evicted_unfetched' => 0,
'evictions' => 0,
),
)
What is the peculiarity here with '����' => '',
in the first server in the list?
I am using a persistent pool with Memcached::OPT_REPLY set to true. When I set Memcached::OPT_REPLY to false, it doesn't happen, as so:
array (
'10.143.27.235:11211' =>
array (
'pid' => 3602,
'uptime' => 49959,
'time' => 1663088429,
'version' => '1.5.22',
'libevent' => '2.1.8-stable',
'pointer_size' => 64,
'rusage_user' => 30.308837,
'rusage_system' => 62.233024999999998,
'max_connections' => 4096,
'curr_connections' => 3,
'total_connections' => 23633,
'rejected_connections' => 0,
'connection_structures' => 3167,
'reserved_fds' => 40,
'cmd_get' => 41053,
'cmd_set' => 449907,
'cmd_flush' => 0,
'cmd_touch' => 0,
'cmd_meta' => 0,
'get_hits' => 8382,
'get_misses' => 32671,
'get_expired' => 11,
'get_flushed' => 0,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15222793477,
'bytes_written' => 311234016,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 0,
'time_in_listen_disabled_us' => 0,
'threads' => 8,
'conn_yields' => 226,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'slab_reassign_rescues' => 0,
'slab_reassign_chunk_rescues' => 0,
'slab_reassign_evictions_nomem' => 0,
'slab_reassign_inline_reclaim' => 0,
'slab_reassign_busy_items' => 0,
'slab_reassign_busy_deletes' => 0,
'slab_reassign_running' => 0,
'slabs_moved' => 0,
'lru_crawler_running' => 0,
'lru_crawler_starts' => 10559,
'lru_maintainer_juggles' => 2069197,
'malloc_fails' => 0,
'log_worker_dropped' => 0,
'log_worker_written' => 0,
'log_watcher_skipped' => 0,
'log_watcher_sent' => 0,
'bytes' => 4546284827,
'curr_items' => 133892,
'total_items' => 137227,
'slab_global_page_pool' => 0,
'expired_unfetched' => 98,
'evicted_unfetched' => 0,
'evicted_active' => 0,
'evictions' => 0,
'reclaimed' => 4,
'crawler_reclaimed' => 111,
'crawler_items_checked' => 3212248,
'lrutail_reflocked' => 0,
'moves_to_cold' => 130427,
'moves_to_warm' => 436,
'moves_within_lru' => 26,
'direct_reclaims' => 0,
'lru_bumps_dropped' => 0,
),
'10.143.27.236:11211' =>
array (
'pid' => 4740,
'uptime' => 51722,
'time' => 1663088428,
'version' => '1.5.22',
'libevent' => '2.1.8-stable',
'pointer_size' => 64,
'rusage_user' => 31.919661000000001,
'rusage_system' => 64.440667000000005,
'max_connections' => 4096,
'curr_connections' => 3,
'total_connections' => 36004,
'rejected_connections' => 0,
'connection_structures' => 4048,
'reserved_fds' => 40,
'cmd_get' => 44924,
'cmd_set' => 454162,
'cmd_flush' => 0,
'cmd_touch' => 0,
'cmd_meta' => 0,
'get_hits' => 9179,
'get_misses' => 35745,
'get_expired' => 7,
'get_flushed' => 0,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15309904804,
'bytes_written' => 353273497,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 6,
'time_in_listen_disabled_us' => 2229873734,
'threads' => 8,
'conn_yields' => 79,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'slab_reassign_rescues' => 0,
'slab_reassign_chunk_rescues' => 0,
'slab_reassign_evictions_nomem' => 0,
'slab_reassign_inline_reclaim' => 0,
'slab_reassign_busy_items' => 0,
'slab_reassign_busy_deletes' => 0,
'slab_reassign_running' => 0,
'slabs_moved' => 0,
'lru_crawler_running' => 0,
'lru_crawler_starts' => 10514,
'lru_maintainer_juggles' => 2169813,
'malloc_fails' => 0,
'log_worker_dropped' => 0,
'log_worker_written' => 0,
'log_watcher_skipped' => 0,
'log_watcher_sent' => 0,
'bytes' => 4630181944,
'curr_items' => 136759,
'total_items' => 140504,
'slab_global_page_pool' => 0,
'expired_unfetched' => 83,
'evicted_unfetched' => 0,
'evicted_active' => 0,
'evictions' => 0,
'reclaimed' => 4,
'crawler_reclaimed' => 83,
'crawler_items_checked' => 2954949,
'lrutail_reflocked' => 0,
'moves_to_cold' => 132398,
'moves_to_warm' => 512,
'moves_within_lru' => 5,
'direct_reclaims' => 0,
'lru_bumps_dropped' => 0,
),
'10.143.27.237:11211' =>
array (
'pid' => 16373,
'uptime' => 51702,
'time' => 1663088428,
'version' => '1.4.15',
'libevent' => '2.0.21-stable',
'pointer_size' => 64,
'rusage_user' => 39.043318999999997,
'rusage_system' => 60.140808,
'curr_connections' => 18,
'total_connections' => 36279,
'connection_structures' => 4064,
'reserved_fds' => 40,
'cmd_get' => 45495,
'cmd_set' => 455502,
'cmd_flush' => 0,
'cmd_touch' => 0,
'get_hits' => 9036,
'get_misses' => 36459,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15404658093,
'bytes_written' => 334099718,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 12,
'threads' => 8,
'conn_yields' => 0,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'bytes' => 4676289024,
'curr_items' => 137990,
'total_items' => 141655,
'expired_unfetched' => 1,
'evicted_unfetched' => 0,
'evictions' => 0,
'reclaimed' => 1,
),
'10.143.27.238:11211' =>
array (
'pid' => 15280,
'uptime' => 51692,
'time' => 1663088429,
'version' => '1.4.15',
'libevent' => '2.0.21-stable',
'pointer_size' => 64,
'rusage_user' => 38.808259999999997,
'rusage_system' => 65.046334999999999,
'curr_connections' => 18,
'total_connections' => 36522,
'connection_structures' => 4064,
'reserved_fds' => 40,
'cmd_get' => 45272,
'cmd_set' => 454235,
'cmd_flush' => 0,
'cmd_touch' => 0,
'get_hits' => 9158,
'get_misses' => 36114,
'delete_misses' => 0,
'delete_hits' => 0,
'incr_misses' => 0,
'incr_hits' => 0,
'decr_misses' => 0,
'decr_hits' => 0,
'cas_misses' => 0,
'cas_hits' => 0,
'cas_badval' => 0,
'touch_hits' => 0,
'touch_misses' => 0,
'auth_cmds' => 0,
'auth_errors' => 0,
'bytes_read' => 15342489140,
'bytes_written' => 336093091,
'limit_maxbytes' => 6442450944,
'accepting_conns' => 1,
'listen_disabled_num' => 11,
'threads' => 8,
'conn_yields' => 0,
'hash_power_level' => 17,
'hash_bytes' => 1048576,
'hash_is_expanding' => 0,
'bytes' => 4656283703,
'curr_items' => 137305,
'total_items' => 140735,
'expired_unfetched' => 0,
'evicted_unfetched' => 0,
'evictions' => 0,
'reclaimed' => 0,
),
)
My page encoding is set to UTF-8.
Additionally, I have Memcached::OPT_BINARY_PROTOCOL set to true. If I try to set it to false, getStats() times out the page.
Here are all my settings:
$this->_memcached->setOptions(array(
Memcached::OPT_NO_BLOCK => true,
Memcached::OPT_BUFFER_WRITES => true,
Memcached::OPT_TCP_NODELAY => true,
Memcached::OPT_NOREPLY => true,
Memcached::OPT_BINARY_PROTOCOL => true,
Memcached::OPT_LIBKETAMA_COMPATIBLE => true,
));