一段时间后台无访问,redis链接超时

Blade 未结 1 2038
KuXin
KuXin 剑童 2020-07-09 15:11

一、该问题的重现步骤是什么?

1. 之前一直项目部署在winds上未出现问题,现在要求部署别的服务器centos7.4上,redis和数据库在另一台服务器上未变,好不容易装环境部署完成,发现一段时间不访问项目后,会报redis连接超时



二、你期待的结果是什么?实际看到的又是什么?

成功部署项目

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

商业2.1.0

四、请提供详细的错误堆栈信息,这很重要。

nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 5 second(s) ### The error may exist in org/springblade/system/mapper/MenuMapper.java (best guess) ### The error may involve org.springblade.system.mapper.MenuMapper.selectList ### The error occurred while executing a query ### Cause: org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 5 second(s)

五、若有更多详细信息,请在下面提供。

看了好多网上的说法,都是说lettuce和jedis的问题,找下面的链接重新改了pom报同样的错误,开发环境和之前的服务器都是正常能正常连接数据库与redis

http://www.classinstance.cn/detail/77.html

1条回答
提交回复