Archery 平台执行DDL error:Threads_connected exceeds its critical threshold
在数据库管理平台Archery上定时任务执行DDL操作,第二天发现报错,报错信息如下:
Error copying rows from `DB`.`TABLE_NAME` to `DB`.`_TABLE_NAME_new`: Threads_connected=1358 exceeds its critical threshold 1300
登录查看Threads_connected信息,Threads_connected 一直处于大于1300个连接:
mysql> show status like '%thread%';
+------------------------------------------+----------+
| Variable_name | Value |
+------------------------------------------+----------+
| Com_show_thread_statistics | 0 |
| Delayed_insert_threads | 0 |
| Innodb_master_thread_active_loops | 30810790 |
| Innodb_master_thread_idle_loops | 45 |
| Performance_schema_thread_classes_lost | 0 |
| Performance_schema_thread_instances_lost | 0 |
| Slow_launch_threads | 0 |
| Threadpool_idle_threads | 92 |
| Threadpool_threads | 99 |
| Threads_cached | 0 |
| Threads_connected | 1368 |
| Threads_created | 2283216 |
| Threads_running | 8 |
+------------------------------------------+----------+
查看inception中变量值设置:
[root@hankyoon ~]# mysql -h127.0.0.1 -uroot -P6669
mysql> inception get variables ;
...
...
...
| inception_osc_critical_thread_connected | 1300 |
...
...
...
修改inception_osc_critical_thread_connected值,为1800
mysql> inception set inception_osc_max_thread_connected = 1800;
在Archery平台重新提交DDL SQL即可.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· AI 智能体引爆开源社区「GitHub 热点速览」
2017-05-23 MySQL构造测试数据