人人框架连接池的严重bug

提问 3 1252
版本:renren-security 开发环境:jdk8
[pre] Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure The last packet successfully received from the server was 319 milliseconds ago. The last packet sent successfully to the server was 319 milliseconds ago. [/pre] img[//cdn.renren.io/2580b202112091533014292.png] img[//cdn.renren.io/a6df1202112091533105706.png] img[//cdn.renren.io/c866d202112091533204863.png] 在for循环内调用查询方法,必然会报此错误,求作者给个解决方案啊
回帖
  • 我们使用的是阿里的,没有对连接池进行改造,可以尝试升级版本号试试
    0
  • 冷面
    2021-12-13
    这个不是框架的问题,你需要从三个地方出发进行排查 1.网络是否有波动 2.mysql并发设置的多少 3.连接池大小的合理性 你这个用for循环去查询,说明查询的频率高,且有并发,所以最好排查下配置
    0
  • 不急god
    2021-12-14
    @Mark 阿里的这个连接池确实有问题,我看github上也没解决,open状态的issue已经两千多了,这个项目看样子是废弃了,renren啥时候把连接池改成hikari啊??
    0
本帖已结贴