引出问题

当前Redis配置项

image-20220211160738129

测压环境

image-20220211160801177

出现的问题:

image-20220211161125442

image-20220211161158286

redis.clients.jedis.exceptions.JedisConnectionException: Attempting to read from a broken connection
	at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:314) ~[jedis-3.1.0.jar:na]
	at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:236) ~[jedis-3.1.0.jar:na]
	at redis.clients.jedis.BinaryJedis.quit(BinaryJedis.java:257) ~[jedis-3.1.0.jar:na]
	at org.springframework.data.redis.connection.jedis.JedisConnection.close(JedisConnection.java:291) ~[spring-data-redis-2.2.3.RELEASE.jar:2.2.3.RELEASE]


解决方案

添加如下参数
image-20220211161327810

重启

解决之后

image-20220211160928629

image-20220211160941973

参考于:

JedisPool的配置参数整理

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐