Possibly consider using a shorter maxLifetime value.问题处理
问题描述:
发现日志中总是报这么个warn:
Possibly consider using a shorter maxLifetime value.
解决思路:
其中的Dataxxxx中的xxxx是数据库端口号。根据日志中提示,应该是maxlifetime值太大,看项目中配置是默认的180000,参考其他帖子说maxlifetime小于数据库配置参数timeout应该不少于30,于是再次将以上两个值改为300。
改后如下:
mysql> show variables like "%timeout%";
+-----------------------------+----------+
| Variable_name | Value |
+-----------------------------+----------+
| connect_timeout | 10 |
| delayed_insert_timeout | 300 |
| have_statement_timeout | YES |
| innodb_flush_log_at_timeout | 1 |
| innodb_lock_wait_timeout | 20 |
| innodb_rollback_on_timeout | OFF |
| interactive_timeout | 300 |
| lock_wait_timeout | 31536000 |
| net_read_timeout | 30 |
| net_write_timeout | 60 |
| rpl_stop_slave_timeout | 31536000 |
| slave_net_timeout | 3600 |
| wait_timeout | 300 |
+-----------------------------+----------+
13 rows in set (0.00 sec)
问题解决!
Possibly consider using a shorter maxLifetime value.问题处理相关推荐
- HikariCP连接池:Possibly consider using a shorter maxLifetime value.
错误分析.定位 在项目中使用到了数据库集群,使用时发现项目运行并且没有操作数据库一段时间之后再次操作数据库就会控制台出现以下报错. Failed to validate connection com. ...
- springboot Possibly consider using a shorter maxLifetime value.
我们在springboot项目中使用默认的连接池时,有时过一段时间不使用数据库,再次查询数据库时会报错,显示连接池中的连接不可用.具体就是报Possibly consider using a shor ...
- SpringBoot 中使用HikariPool 报错Possibly consider using a shorter maxLifetime value.
SpringBoot 使用HikariPool遇到: HikariPool-1 - Failed to validate connection com.mysql.jdbc.JDBC4Connecti ...
- (No operations allowed after connection closed.).Possibly consider using a shorter maxLifetime value
这两天碰到一个问题,在正常查询数据时,没有问题,但在使用多线程查询数据导出时,会报以下错误: 2020-05-21 08:40:36.639 WARN [charger-business,,,] 13 ...
- Hikaril过一段时间就出错,Possibly consider using a shorter maxLifetime value问题
问题背景: 我用的springboot2.2.,Hikari,,mysql,mp-plus.没有用druid,我不需要监控,就用spring自带的,做数据库连接时候,有段时间不连接,过一会就出错: H ...
- kafka同步mysql数据报Possibly consider using a shorter maxLifetime value.
目前有需求是在两个mysql数据库间同步数据,采用的方案是先利用maxwell将源数据库的log_bin日志传到kafka,再从kafka消费到目的数据库,但最近发现日志中总是报这么个warn: [1 ...
- Possibly consider using a shorter maxLifetime value.解决方法
[现象] 2022-08-24 14:54:49.130 WARN 174160 --- [nio-8082-exec-3] com.zaxxer.hikari.pool.PoolBase : Hik ...
- Possibly consider using a shorter maxLifetime value.
启动我的 SpringBoot 应用程序后,在服务器启动几分钟后出现异常.没有在外部使用任何 HikariPool 配置,Spring Boot 默认使用 HikariPool 这是我在控制台中遇到的 ...
- SpringCloud 中使用HikariPool 报错Possibly consider using a shorter maxLifetime value
SpringCloud 或 SpringBoot 使用HikariPool遇到: com.zaxxer.hikari.pool.PoolBase : HikariPool-1 - Failed to ...
最新文章
- python写一个文件下载器_Python3使用TCP编写一个简易的文件下载器
- 文件的特殊权限:suid sgid sticky
- 【 MATLAB 】信号处理工具箱的信号产生函数之 sawtooth 函数简记
- POJ-2948 Martian Mining 动态规划
- too many open files(打开的文件过多)解决方法
- 一个ASP站内搜索的实例源代码
- C语言经典算法 11-20
- [转]JavaScript var obj = { id:1, name:jacky } 大括号是啥意思?
- 修改 Angular Component 构造函数参数被认为是 breaking change
- python编程发展_编程的发展史及Python简介
- 一步步编写操作系统 41 快表tlb 简介
- InfoQ中文站2015年度优秀社区编辑评选揭晓
- 整洁架构之道--三种经典的编程范式
- LeetCode刷题(16)
- linux mint 1.9 qq 安装
- mysql_num_fielfs_mysql_num_fields
- 最新基于高德地图的android进阶开发(3)GPS地图定位
- 火山PC模拟鼠标操作
- 热烈祝贺小明SEO博客网站正式上线
- android ps模拟器 金手指,电脑ps模拟器金手指的使用教程