The last packet successfully received from the server was 30,516,920 milliseconds ago.
来源:互联网 发布:航天证券交易软件 编辑:程序博客网 时间:2024/05/01 06:13
今天早上发了一笔交易 发现服务器上报错
可见这笔交易是9点半左右发出的 入库的时候发现连接已经断掉,第一反应先计算了一下断掉的时间30516920/3600/1000 = 8.4769222222222.
大概就是半夜一点钟断掉的.我又去查了一下上一次启动项目的时间,发现现在的进程已经不是我上一次启动的进程了,也就是说中间肯定有人启过,于是我去查了一下Jenkins .果然有人动过.是不是他启的方法不对,比如说脚本执行完毕后没有重启项目(这里先存疑,不排除这个情况)
我重启了一下,项目问题当然就解决了,但是这肯定不是解决问题的办法,因为没办法确定过段时间会不会出现该问题.所以还是要统计一下持续时间 ....去查启动日志 发现启动日志只有今天我启动后的记录了(这里可以调查一下).很明显启动记录的日志被覆盖了.我只能从这次开始计时了.
好了,现在开始找代码中的问题.
先说一下背景 这个项目是用mybatis .数据源配置是com.mchange.v2.c3p0.ComboPooledDataSource
所以从这两点着手.之前在网上查过解决办法,就是加上autoreconnect=true,然后就发现加了没卵用.过段时间照样断连.
看了一下配置的数据源,感觉问题是出在这里,是不是少配了东西.
参考了一些网上的配置 ,最后的配置如图.问题解决告一段落,如果过段时间还出问题,本文会继续更新,毕竟还有存疑的部分呢.
阅读全文
0 0
- The last packet successfully received from the server was 30,516,920 milliseconds ago.
- 彻底解决"The last packet successfully received from the server was * milliseconds ago"问题
- The last packet successfully received from the server was 78,682,686 milliseconds ago
- mysql超时:The last packet successfully received from the server was 172,848,658 milliseconds ago.
- The last packet successfully received fro m the server was 63,020,509 milliseconds ago
- The last packet successfully received from the server was71200 milliseconds ago
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
- (2)Mysql ----- The last packet successfully received from the server was *** millisecond ago.The
- Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- The last packet sent successfully to the server was 0 milliseconds ago, The driver has not received
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
- The last packet successfully received from the server was XXX seconds ago
- mysql The last packet successfully received from the server was XXX seconds ago
- The last packet sent successfully to the server was 0 milliseconds ago. The
- [Java] 解决异常:“The last packet sent successfully to the server was 0 milliseconds ago.
- The last packet sent successfully to the server was 0 milliseconds ago.
- The last packet sent successfully to the server was 0 milliseconds ago. 的解决办法
- git 导出多个版本的文件,用于更新
- 删除链表中的重复元素
- 170622 high perfermance computing: no_loop vs two loops for calculating distance matrix
- 关于web.XML文件的welcome-file设置成 .do/.action问题
- Matlab 图像处理总结
- The last packet successfully received from the server was 30,516,920 milliseconds ago.
- dySE:一个 Java 搜索引擎的实现,第 3 部分 查询服务
- ExpandableTextView——一个可折叠的Textview
- 日期、字符串、时间戳之间的互相转换
- python for循环和range内置函数
- 我是如何入门、成长并进阶为数据分析师的?
- 操作系统(六)文件与文件系统
- hdoj1098 Ignatius's puzzle(数论)
- <转>javascript之Object.assign()痛点