Redis

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

转载于:https://www.cnblogs.com/sunzhuli/p/9696599.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值