当前位置:首页 > 技术 > 资源文档

查看redis状态-redis状态查询命令-redis info详解

2023-08-30 来源:无名网 作者:无名网整理

查看Redis服务状态

语法【Syntax】

INFO [section [section ...]]

返回信息

# Server




redis_version7.2.0redis版本号



redis_git_sha1:00000000     //Git SHA1值
redis_git_dirty:0           //表示Redis的Git仓库是否存在未提交的修改。它的作用是标识当前Redis服务器的代码库是否有未提交的更改。
redis_build_id:385bf5474d85473b    //Redis build id
redis_mode:standalone     // 运行模式,分为:Cluster、Sentinel、Standalone。

os:Linux 5.15.0-1015-aws x86_64

arch_bits:64

monotonic_clock:POSIX clock_gettime

multiplexing_api:epoll

atomicvar_api:c11-builtin

gcc_version:10.2.1

process_id:1

process_supervised:no

run_id:1ad721e5850e0ebc996844be33e27506da1ed0c2

tcp_port:6379

server_time_usec:1693359055759406

uptime_in_seconds:1257250

uptime_in_days:14

hz:10

configured_hz:10

lru_clock:15637455

executable:/data/redis-server

config_file:/etc/redis/redis.conf

io_threads_active:0

listener0:name=tcp,bind=*,bind=-::*,port=6379



# Clients

connected_clients:2

cluster_connections:0

maxclients:10000

client_recent_max_input_buffer:20480

client_recent_max_output_buffer:0

blocked_clients:0

tracking_clients:0

clients_in_timeout_table:0

total_blocking_keys:0

total_blocking_keys_on_nokey:0



# Memory

used_memory:79692712

used_memory_human:76.00M

used_memory_rss:87818240

used_memory_rss_human:83.75M

used_memory_peak:79705240

used_memory_peak_human:76.01M

used_memory_peak_perc:99.98%

used_memory_overhead:24116832

used_memory_startup:867280

used_memory_dataset:55575880

used_memory_dataset_perc:70.51%

allocator_allocated:79766520

allocator_active:79978496

allocator_resident:86269952

total_system_memory:16585560064

total_system_memory_human:15.45G

used_memory_lua:31744

used_memory_vm_eval:31744

used_memory_lua_human:31.00K

used_memory_scripts_eval:0

number_of_cached_scripts:0

number_of_functions:0

number_of_libraries:0

used_memory_vm_functions:32768

used_memory_vm_total:64512

used_memory_vm_total_human:63.00K

used_memory_functions:184

used_memory_scripts:184

used_memory_scripts_human:184B

maxmemory:4294967296

maxmemory_human:4.00G

maxmemory_policy:allkeys-lru

allocator_frag_ratio:1.00

allocator_frag_bytes:211976

allocator_rss_ratio:1.08

allocator_rss_bytes:6291456

rss_overhead_ratio:1.02

rss_overhead_bytes:1548288

mem_fragmentation_ratio:1.10

mem_fragmentation_bytes:8147824

mem_not_counted_for_evict:0

mem_replication_backlog:0

mem_total_replication_buffers:0

mem_clients_slaves:0

mem_clients_normal:24328

mem_cluster_links:0

mem_aof_buffer:0

mem_allocator:jemalloc-5.3.0

active_defrag_running:0

lazyfree_pending_objects:0

lazyfreed_objects:0



# Persistence

loading:0

async_loading:0

current_cow_peak:0

current_cow_size:0

current_cow_size_age:0

current_fork_perc:0.00

current_save_keys_processed:0

current_save_keys_total:0

rdb_changes_since_last_save:1258836

rdb_bgsave_in_progress:0

rdb_last_save_time:1692101805

rdb_last_bgsave_status:ok

rdb_last_bgsave_time_sec:-1

rdb_current_bgsave_time_sec:-1

rdb_saves:0

rdb_last_cow_size:0

rdb_last_load_keys_expired:0

rdb_last_load_keys_loaded:0

aof_enabled:0

aof_rewrite_in_progress:0

aof_rewrite_scheduled:0

aof_last_rewrite_time_sec:-1

aof_current_rewrite_time_sec:-1

aof_last_bgrewrite_status:ok

aof_rewrites:0

aof_rewrites_consecutive_failures:0

aof_last_write_status:ok

aof_last_cow_size:0

module_fork_in_progress:0

module_fork_last_cow_size:0



# Stats

total_connections_received:11

total_commands_processed:1567195

instantaneous_ops_per_sec:3

total_net_input_bytes:124759468

total_net_output_bytes:44146315

total_net_repl_input_bytes:0

total_net_repl_output_bytes:0

instantaneous_input_kbps:0.27

instantaneous_output_kbps:0.01

instantaneous_input_repl_kbps:0.00

instantaneous_output_repl_kbps:0.00

rejected_connections:0

sync_full:0

sync_partial_ok:0

sync_partial_err:0

expired_keys:37339

expired_stale_perc:0.00

expired_time_cap_reached_count:0

expire_cycle_cpu_milliseconds:121601

evicted_keys:0

evicted_clients:0

total_eviction_exceeded_time:0

current_eviction_exceeded_time:0

keyspace_hits:362492

keyspace_misses:26537

pubsub_channels:0

pubsub_patterns:0

pubsubshard_channels:0

latest_fork_usec:0

total_forks:0

migrate_cached_sockets:0

slave_expires_tracked_keys:0

active_defrag_hits:0

active_defrag_misses:0

active_defrag_key_hits:0

active_defrag_key_misses:0

total_active_defrag_time:0

current_active_defrag_time:0

tracking_total_keys:0

tracking_total_items:0

tracking_total_prefixes:0

unexpected_error_replies:0

total_error_replies:2630

dump_payload_sanitizations:0

total_reads_processed:1568242

total_writes_processed:1568241

io_threaded_reads_processed:0

io_threaded_writes_processed:0

reply_buffer_shrinks:4158

reply_buffer_expands:4178

eventloop_cycles:14079199

eventloop_duration_sum:3142847493

eventloop_duration_cmd_sum:1213682451

instantaneous_eventloop_cycles_per_sec:12

instantaneous_eventloop_duration_usec:142

acl_access_denied_auth:0

acl_access_denied_cmd:997

acl_access_denied_key:0

acl_access_denied_channel:0



# Replication

role:master

connected_slaves:0

master_failover_state:no-failover

master_replid:9de7ae06ca4cb91ffae1b1b2128b615091c8da86

master_replid2:0000000000000000000000000000000000000000

master_repl_offset:0

second_repl_offset:-1

repl_backlog_active:0

repl_backlog_size:1048576

repl_backlog_first_byte_offset:0

repl_backlog_histlen:0



# CPU

used_cpu_sys:1197.160759

used_cpu_user:2510.129606

used_cpu_sys_children:0.001261

used_cpu_user_children:0.003055

used_cpu_sys_main_thread:1196.707722

used_cpu_user_main_thread:2509.531105



# Modules



# Errorstats

errorstat_BUSYGROUP:count=5

errorstat_ERR:count=1447

errorstat_EXECABORT:count=1

errorstat_NOGROUP:count=1

errorstat_NOPERM:count=996

errorstat_WRONGTYPE:count=180



# Cluster

cluster_enabled:0



# Keyspace

db0:keys=474673,expires=1143,avg_ttl=32180881595886


相关内容: redis
『 猜你喜欢 』
  • redis_git_dirty是什么意思

    redis_git_dirty是Redis服务器信息中的一个字段,它表示Redis的Git仓库是否存在未提交的修改。它的作用是标识当前Redis服务器的代码库是否有未提