Redis精通系列——info 指令用法

它也可以采取以下值:

  • all: 返回所有信息

  • default: 值返回默认设置的信息

如果没有使用任何参数时,默认为default,返回所有的信息。

2、info/info all


返回Redis服务所有的信息

# Server

redis_version:6.2.4

redis_git_sha1:00000000

redis_git_dirty:0

redis_build_id:fa652e749408dcfd

redis_mode:standalone

os:Linux 3.10.0-327.el7.x86_64 x86_64

arch_bits:64

multiplexing_api:epoll

atomicvar_api:c11-builtin

gcc_version:9.3.1

process_id:4617

process_supervised:no

run_id:9662797d01b55345cd6cabad38d102e27db19e66

tcp_port:6379

server_time_usec:1632494557942546

uptime_in_seconds:4

uptime_in_days:0

hz:10

configured_hz:10

lru_clock:5104605

executable:/usr/local/soft/redis-6.2.4/src/redis-server

config_file:/usr/local/soft/redis-6.2.4/redis.conf

io_threads_active:0

# Clients

connected_clients:1

cluster_connections:0

maxclients:10000

client_recent_max_input_buffer:16

client_recent_max_output_buffer:0

blocked_clients:0

tracking_clients:0

clients_in_timeout_table:0

# Memory

used_memory:874728

used_memory_human:854.23K

used_memory_rss:10207232

used_memory_rss_human:9.73M

used_memory_peak:932800

used_memory_peak_human:910.94K

used_memory_peak_perc:93.77%

used_memory_overhead:830808

used_memory_startup:810168

used_memory_dataset:43920

used_memory_dataset_perc:68.03%

allocator_allocated:1036080

allocator_active:1380352

allocator_resident:3932160

total_system_memory:1913507840

total_system_memory_human:1.78G

used_memory_lua:37888

used_memory_lua_human:37.00K

used_memory_scripts:0

used_memory_scripts_human:0B

number_of_cached_scripts:0

maxmemory:104857600

maxmemory_human:100.00M

maxmemory_policy:volatile-lfu

allocator_frag_ratio:1.33

allocator_frag_bytes:344272

allocator_rss_ratio:2.85

allocator_rss_bytes:2551808

rss_overhead_ratio:2.60

rss_overhead_bytes:6275072

mem_fragmentation_ratio:12.27

mem_fragmentation_bytes:9375272

mem_not_counted_for_evict:0

mem_replication_backlog:0

mem_clients_slaves:0

mem_clients_normal:20496

mem_aof_buffer:0

mem_allocator:jemalloc-5.1.0

active_defrag_running:0

lazyfree_pending_objects:0

lazyfreed_objects:0

# Persistence

loading: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:0

rdb_bgsave_in_progress:0

rdb_last_save_time:1632494553

rdb_last_bgsave_status:ok

rdb_last_bgsave_time_sec:-1

rdb_current_bgsave_time_sec:-1

  • 8
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值