线上mysql问题排查 宕机 UTC - mysqld got signal 6 java后台:Communications link failure 虚拟内存设置

本文主要介绍了线上MySQL服务出现宕机及'Communications link failure'错误的排查过程。通过分析日志发现资源损耗问题,尤其是内存不足。解决方案包括在Linux系统中临时启用或设置虚拟内存,如通过创建交换分区文件并设置开机自启。同时,调整swappiness参数以优化内存使用策略。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

线上mysql无法连接:

java后台显示:Communications link failure
通信链路故障
咱们先说说这个,链路故障 表明没法连接线上的mysql服务,确定了错误后咱们再看看线上环境~

	com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
	at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
	at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:835)
	at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:455)
	at com.mysql
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值