Redis – sunzhuli

redis性能排查步骤

redis-cli命令
cd /usr/local/redis-stable/bin/
登录:./redis-cli -h 10.11.60.8 -p 6379 -a foobared
在交互方式下查看信息:
查看连接池
info clients

redis exception

连接存在异常

org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection

批量操作

Callback cannot return a non-null value as it gets overwritten by the pipeline

redisson 连接异常

org.redisson.client.RedisConnectionException: Can’t init enough connections amount! Only 8 from 10 were initialized. Server:

org.springframework.data.redis.RedisConnectionFailureException: java.net.SocketTimeoutException: Read timed out; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out

可以在安装redis服务机器中查看已经建立的连接个数:
netstat -antl | grep 6379
或者
netstat -antl | grep 6379 | wc -l

查看已经创建的连接,目的端口固定,而源端口随机

redisson版本问题

对3.5.x版本
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: 10.11.42.151:6379



You must enable javascript to see captcha here!

Copyright © All Rights Reserved · Green Hope Theme by Sivan & schiy · Proudly powered by WordPress

无觅相关文章插件,快速提升流量