Now that I have the redis instance in this state, I would like to be able to clear out the memory, and fix the fragmentation ratio. How can I do this?
127.0.0.1:6379> info
# Server
redis_version:4.0.2
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:4739a91f5597d6c6
redis_mode:standalone
os:Linux 4.4.0-98-generic x86_64
arch_bits:64
multiplexing_api:epoll
atomicvar_api:atomic-builtin
gcc_version:5.4.0
process_id:28619
run_id:8ebcf313d1e1788ada1b3436f435007df743eb58
tcp_port:6379
uptime_in_seconds:64883
uptime_in_days:0
hz:10
lru_clock:115521
executable:/home/andrew.eisenberg/redis-server
config_file:
# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
# Memory
used_memory:30941231512
used_memory_human:28.82G
used_memory_rss:4258734080
used_memory_rss_human:3.97G
used_memory_peak:31065311136
used_memory_peak_human:28.93G
used_memory_peak_perc:99.60%
used_memory_overhead:155435264
used_memory_startup:765488
used_memory_dataset:30785796248
used_memory_dataset_perc:99.50%
total_system_memory:33611145216
total_system_memory_human:31.30G
used_memory_lua:37888
used_memory_lua_human:37.00K
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
mem_fragmentation_ratio:0.14
mem_allocator:jemalloc-4.0.3
active_defrag_running:0
lazyfree_pending_objects:0
# Persistence
loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1510044314
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:17956
rdb_current_bgsave_time_sec:-1
rdb_last_cow_size:2301952
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_last_write_status:ok
aof_last_cow_size:0
# Stats
total_connections_received:213
total_commands_processed:19476731
instantaneous_ops_per_sec:1
total_net_input_bytes:24390903484
total_net_output_bytes:1003936041
instantaneous_input_kbps:0.05
instantaneous_output_kbps:0.01
rejected_connections:5
sync_full:3
sync_partial_ok:0
sync_partial_err:3
expired_keys:0
evicted_keys:0
keyspace_hits:2
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:374842
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
role:master
connected_slaves:1
slave0:ip=127.0.0.1,port=8104,state=online,offset=15118951610,lag=0
master_replid:2bf77a532bdf4e8e87bd8822ca3d562ac7c5355c
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:15118951610
second_repl_offset:-1
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:15117903035
repl_backlog_histlen:1048576
# CPU
used_cpu_sys:463.07
used_cpu_user:174.64
used_cpu_sys_children:303.20
used_cpu_user_children:198.70
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=3000007,expires=0,avg_ttl=0
127.0.0.1:6379>
> email to redis-db+unsubscribe@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.
--
Salvatore 'antirez' Sanfilippo
open source developer - Redis Labs https://redislabs.com
"If a system is to have conceptual integrity, someone must control the
concepts."
— Fred Brooks, "The Mythical Man-Month", 1975.
--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/17nbNJdQsd4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.