redis slowlog启用

1月 21, 2019 |

#启用慢log功能,假设大于100ms定义为慢log
config set slowlog-log-slower-than 100000
#获取100条慢log记录
slowlog get 100

#重置slowlog
slowlog reset

#查询当前正在执行的命令及客户端ip
client list

Posted in: redis

Comments are closed.