Repository navigation
Description
Hi,
We're conducting some performance tests on Amazon and we're experiencing a continuous increase of used_memory_lua. We mainly collect data from 1000 hosts, push them into redis and delete them as soon as possible (less than few minutes). We use EVAL for deleting data.
When I issue a BGSAVE, I get a dump.rdb of only 26MB and the number of keys is generally below 6000. In one day, used_memory_lua went from 0 to around 2GB. mem_fragmentation has been however always between 3.3 and 3.5.
Is this a possible LUA memory leak or is it just the OS not reclaiming all used memory ? And yes we only use around 10% of total physical memory, so redis and other processes have always plenty of RAM.
Below is a dump of our configuration. I can send you my rdb and a sample of our queries. Note that our redis binary does not have any debug symbols so a core dump is not possible in this case.
Thanks in advance for your help !
Server
redis_version:2.8.2
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:6875f0d49ab02569
redis_mode:standalone
os:Linux 2.6.32-358.14.1.el6.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.4
process_id:4757
run_id:720d2ea705a8389f01dab670b4f031a5ea5b939b
tcp_port:6379
uptime_in_seconds:140421
uptime_in_days:1
hz:10
lru_clock:1111710
config_file:/var/cfengine/config/redis.conf
Clients
connected_clients:26
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:25
Memory
used_memory:987879032
used_memory_human:942.11M
used_memory_rss:3312504832
used_memory_peak:989408400
used_memory_peak_human:943.57M
used_memory_lua:2005702656
mem_fragmentation_ratio:3.35
mem_allocator:jemalloc-3.2.0
Persistence
loading:0
rdb_changes_since_last_save:1417592
rdb_bgsave_in_progress:0
rdb_last_save_time:1395236225
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:1
rdb_current_bgsave_time_sec:-1
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
Stats
total_connections_received:581506
total_commands_processed:100579933
instantaneous_ops_per_sec:0
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:12941868
keyspace_misses:2024715
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:894912
Replication
role:master
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0
CPU
used_cpu_sys:1476.04
used_cpu_user:963.47
used_cpu_sys_children:0.34
used_cpu_user_children:0.37
Keyspace
db0:keys=5093,expires=0,avg_ttl=0
Activity
Update RedisJson to version 8.10.0 (#15541)