线上报错:
[25136] 18 Sep 16:24:38 # === REDIS BUG REPORT END. Make sure to include from START to END. ===
Please report the crash opening an issue on github:
http://github.com/antirez/redis/issues
原因是必须修改linux /etc/sysctl.conf
vm.overcommit_memory = 1
推荐的redis配置:
daemonize yes
pidfile /duitang/data/work/redis_session.pid
port 6389
timeout 300
bind 192.168.172.13
loglevel notice
logfile /duitang/logs/sys/redis_session.log
databases 6
save 900 1
maxclients 0
rdbcompression yes
dbfilename session.rdb
dir /duitang/data/redis_session/
slave-serve-stale-data yes
appendonly no
appendfsync no
no-appendfsync-on-rewrite yes
slowlog-log-slower-than 10000
slowlog-max-len 1024
vm-enabled no
vm-swap-file /duitang/data/work/redis_session.swap
vm-max-memory 0
vm-page-size 64
vm-pages 268435456
vm-max-threads 8
hash-max-zipmap-entries 4096
hash-max-zipmap-value 4096
list-max-ziplist-entries 4096
list-max-ziplist-value 4096
set-max-intset-entries 4096
activerehashing yes
zset-max-ziplist-entries 4096
zset-max-ziplist-value 4096