StringRedisTemplate obtain information redis

Properties info = stringRedisTemplate.getRequiredConnectionFactory().getConnection().info("memory");

Optional parameters:

  • server: General information about the Redis server
  • clients: Client connecting portion
  • memory: Memory consumption information
  • persistence: RDB and AOF information
  • stats: General Statistics
  • replication: Master / replica copy information
  • cpu: CPU consumption statistics
  • commandstats: Redis commands Statistics
  • cluster: "Redis Cluster" section
  • keyspace: Database-related statistics

It can take the following values:

  • all: Return all parts
  • default: Returns only part of the default set

If it does not provide any parameters, using this defaultoption.

return value:

Redis> INFO
 # Server 
# Redis server version 
redis_version: 999.999.999 
redis_git_sha1: 3c968ff0 
redis_git_dirty: 0 
redis_build_id: 51089de051945df4 
redis_mode: Standalone 
# host operating system Redis server 
os: Linux 4.8.0-1- AMD64 x86_64
 # architecture (32 or 64 bit) 
arch_bits: 64- # event handling mechanism Redis used multiplexing_api: epoll 
atomicvar_api: Atomic - the BUILTIN
 # GCC version used to compile Redis 
gcc_version: 6.3.0 # server process PID 
process_id: 9941 # Redis server random identifier (for Sentinel and clusters)




run_id: b770a8af038963f3d1b55358c2e376d0b5e00182
 # TCP / IP listening port 
TCP_PORT: 6379 # since Redis server is started, the number of seconds 
1,028,993: uptime_in_seconds # Since Redis server startup, after a number of days 
uptime_in_days: 11 
Hz: 10
 # of minutes to be incremented clock, for LRU management 
lru_clock: 10,750,613 
Executable: / usr / local / bin / redis- server 
config_file: # clients 
# number of connected clients (including the client is not connected by a slave server) 
connected_clients:. 4 # current connection among clients, the longest output list 
client_longest_output_list: 0 # currently connected client, the greatest input buffer 
client_biggest_input_buf: 0 #






Waiting for blocking command (BLPOP, BRPOP, BRPOPLPUSH) client number 
blocked_clients: 0 # Memory 
# amount of memory allocated by the allocator Redis in bytes (byte) units 
used_memory: 154.2728 million # return a human readable format Redis total amount of memory allocated 
used_memory_human: 147 .13M
 # from the operating system point of view, the total return Redis memory allocated (commonly known as resident set size). This value is consistent with the output and top, ps and other commands. 
used_memory_rss: 160 612 352 # return a human readable format 
used_memory_rss_human: 153 .17M
 # memory Redis peak consumption (in bytes) 
used_memory_peak: 154 319 968 # returned Redis in human-readable form peak memory consumption 
used_memory_peak_human: 147 .17M 
used_memory_peak_perc: 99.97% 
used_memory_overhead: 44.08204 million





used_memory_startup:510704
used_memory_dataset:110190760
used_memory_dataset_perc:71.66%
allocator_allocated:154256264
allocator_active:154550272
allocator_resident:159731712
total_system_memory:1044770816
total_system_memory_human:996.37M
used_memory_lua:37888
used_memory_lua_human:37.00K
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:1.00
allocator_frag_bytes:294008
allocator_rss_ratio:1.03
allocator_rss_bytes: 5.18144 million 
rss_overhead_ratio: 1.01 
rss_overhead_bytes: 880 640
 # ratio between used_memory_rss and used_memory 
mem_fragmentation_ratio: 1.04 
mem_fragmentation_bytes: 6422528
 # specified at compile time, memory allocator Redis used. It can be libc, jemalloc or tcmalloc. 
mem_allocator: jemalloc-4.0.3 
active_defrag_running: 0 
lazyfree_pending_objects: 0 # Persistence, persistence and RDB AOF persistent information 
# a flag value, records whether the server is loaded persistent file 
loading: 0 # Nearest create a lasting success after of the documents, after a number of seconds 
rdb_changes_since_last_save: 3,813,014 # a flag value is recorded if the server is creating RDB file




rdb_bgsave_in_progress: 0 # last successful RDB files created UNIX timestamp 
rdb_last_save_time: 1,570,002,708 # A flag value, recorded the results of the last file is created RDB success or failure rdb_last_bgsave_status: the ok
 # records the last file to create the number of seconds it takes RDB 
rdb_last_bgsave_time_sec: -1 # If the server is created RDB file, then the field is the current record of creation has cost the number of seconds 
rdb_current_bgsave_time_sec: -1 
rdb_last_cow_size: 0
 # a flag value, whether recorded AOF is open 
aof_enabled: 0 # a flag value is recorded if the server is being created AOF file 
aof_rewrite_in_progress: 0 # a flag value, recorded AOF rewrite operation after you have created RDB file, if you need to perform appointment 
aof_rewrite_scheduled: 0 # last created when the AOF file takes longer 
aof_last_rewrite_time_sec: -1







# If the server is created AOF file, then the field is the current record of creation has cost the number of seconds 
aof_current_rewrite_time_sec: -1 # A flag value, recorded the results of the last file is created AOF success or failure aof_last_bgrewrite_status: the ok 
aof_last_write_status: OK 
aof_last_cow_size: 0 # the Stats, general statistics 
# server has accepted the connection request number 
total_connections_received: 96 # number of commands executed in the server 
total_commands_processed: 8.7 million # number of commands executed by the server per 
instantaneous_ops_per_sec:. 11 
total_net_input_bytes: 710.52333 million 
total_net_output_bytes: 109 073 206 
instantaneous_input_kbps : 1.04 
instantaneous_output_kbps: 0.32 
rejected_connections:





0 
sync_full: 0 
sync_partial_ok: 0 
sync_partial_err: 0
 # number of database keys as expired are automatically deleted 
expired_keys: 13569 
expired_stale_perc: 0.00 
expired_time_cap_reached_count: 0
 #   because the maximum memory capacity limit was expelled (evict) the number of key 
evicted_keys: 0 # Find database key number of successes 
keyspace_hits: 1911035 # searchable database key number of failed 
keyspace_misses: 749 427 # currently subscribed channel number 
pubsub_channels: 0 # current subscription model number 
pubsub_patterns: 0 # last fork () operation of milliseconds spent 
latest_fork_usec : 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 # Replication, master / slave replication information 
# server roles Role: Master
 # connected from the number of servers 
connected_slaves: 0 
master_replid: 33f9e49948d61df7fa02e315ecff02bbc3b2c9aa 
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:925.48
used_cpu_user:3467.41
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=876234,expires=3,avg_ttl=204565882

 

Guess you like

Origin www.cnblogs.com/sjshare/p/11671338.html