Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【 TiDB 使用环境】
4.0.6
【概述】场景+问题概述
业务方报错

Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 275,632 milliseconds ago. The last packet sent successfully to the server was 21 milliseconds ago.

JDBC参数配置
/trade?autoReconnect=true&autoReconnectForPools=true&generateSimpleParameterMetadata=true&useSSL=false

DB侧timeout


【背景】做过哪些操作
【现象】业务和数据库现象
【业务影响】
【TiDB 版本】
【附件】

  1. TiUP Cluster Display 信息

  2. TiUP Cluster Edit Config 信息

  3. TiDB- Overview 监控

  • 对应模块日志(包含问题前后1小时日志)

这个问题么?
https://blog.csdn.net/xuzhuang2008/article/details/8129204

目前业务设置的最大等待时间 是 10s 不像是这个问题

是不是网络被打满了?
tidb 的默认配置,可以支持到 1000个连接数的;另外还有 token limit 可以限制连接数…

目前你的环境配置是什么样的?