linux - Redis and memory -


i developing software in embedded system (512 mb ram). i'm using redis take place of shared memory between processes inside django application. talking 150 values, stored every second, coming modbus device. have same key , expire time 10 minutes. after work hours (tipically day), redis ceases function, due memory problems. can me out?

output of ps aux | grep redis

redis 1934 1.9 2.2 76216 8400 ? ssl 07:49 10:37 /usr/bin/redis-server 127.0.0.1:6379

redis.info

# server redis_version:2.8.6 redis_git_sha1:00000000 redis_git_dirty:0 redis_build_id:7cc01333adfd1c61 redis_mode:standalone os:linux 3.4.79+ armv7l arch_bits:32 multiplexing_api:epoll gcc_version:4.6.3 process_id:1934 run_id:be418b5a05b6670bb4bff9c73cc7126589d6b5c8 tcp_port:6379 uptime_in_seconds:33584 uptime_in_days:0 hz:10 lru_clock:858206 config_file:/etc/redis/redis.conf  # clients connected_clients:138 client_longest_output_list:54 client_biggest_input_buf:0 blocked_clients:0  # memory used_memory:6893800 used_memory_human:6.57m used_memory_rss:6152192 used_memory_peak:47902480 used_memory_peak_human:45.68m used_memory_lua:25600 mem_fragmentation_ratio:0.89 mem_allocator:jemalloc-3.0.0  # persistence loading:0 rdb_changes_since_last_save:1370469 rdb_bgsave_in_progress:0 rdb_last_save_time:1434611837 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 aof_last_write_status:ok  # stats total_connections_received:155 total_commands_processed:3207775 instantaneous_ops_per_sec:55 rejected_connections:0 sync_full:0 sync_partial_ok:0 sync_partial_err:0 expired_keys:297 evicted_keys:0 keyspace_hits:2141758 keyspace_misses:12495 pubsub_channels:6 pubsub_patterns:0 latest_fork_usec:0  # 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:295.85 used_cpu_user:333.85 used_cpu_sys_children:0.00 used_cpu_user_children:0.00  # keyspace db0:keys=2,expires=2,avg_ttl=3185003 db1:keys=937,expires=242,avg_ttl=585637 

snippet of redis-server.log

[1969] 18 jun 22:17:21.819 # server started, redis version 2.8.6 [1969] 18 jun 22:17:21.919 * db loaded disk: 0.100 seconds [1969] 18 jun 22:17:21.919 * server ready accept connections on port 6379 [1969] 18 jun 22:17:21.919 * server ready accept connections @ /var/run/redis/redis.sock [1969] 19 jun 09:16:50.444 # client addr=127.0.0.1:38745 fd=9 name= age=39516 idle=4330 flags=n db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=13724 oll=415 omem=8509160 events=rw cmd=subscribe scheduled closed asap overcoming of output buffer limits. [1969] 19 jun 09:20:54.056 # client addr=127.0.0.1:38759 fd=14 name= age=4713 idle=4331 flags=n db=0 sub=1 psub=0 multi=-1 qbuf=0 qbuf-free=0 obl=13688 oll=415 omem=8509160 events=rw cmd=subscribe scheduled closed asap overcoming of output buffer limits. [1941] 19 jun 09:17:17.134 # unable set max number of files limit 10032 (operation not permitted), setting max clients configuration 3984. 

some lines redis-cli monitor, if finds useful. being same keys rewritten on , on again, puzzles me high amount of memory used , files descriptors.

http://pastebin.com/rqqthuhf


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -