博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysql的线程处于System lock状态下
阅读量:7264 次
发布时间:2019-06-29

本文共 1189 字,大约阅读时间需要 3 分钟。

The thread has called mysql_lock_tables() and the thread state has not been updated since. This is a very general state that can occur for many reasons.For example, the thread is going to request or is waiting for an internal or external system lock for the table. This can occur when InnoDB waits for a table-level lock during execution of LOCK TABLES. If this state is being caused by requests for external locks and you are not using multiple mysqld servers that are accessing the same MyISAM tables, you can disable external system locks with the --skip-external-locking option. However, external locking is disabled by default, so it is likely that this option will have no effect. For SHOW PROFILE, this state means the thread is requesting the lock (not waiting for it).

System lock

这个线程是被mysql_lock_tables()调用的。这种状态可能是很多种原因造成的。

例如,一个线程想请求或者正在等一个表的内部或者外部的system lock;

        也可能是InnoDB在执行lock tables的时候,等表级锁;

        也可能是请求内部锁,比如访问相同MyISM表没有用多个mysqld服务;

遇到这种情况,可以用--skip-external-locking选项,禁用内部的system locks。然而,内部锁如果默认禁用的话,那个选项就会没用了。

如果是在show profile的时候遇到这种状态,就说明这个线程正在请求锁(不是等)。

来源:https://dev.mysql.com/doc/refman/5.7/en/general-thread-states.html 

转载于:https://www.cnblogs.com/sunss/p/6404961.html

你可能感兴趣的文章
IBM用AI为癫痫患者分类,精准用药提高治愈率
查看>>
网络问题定位问题手段总结
查看>>
编程语言运行过程
查看>>
MYSQL修改存储过程的访问权限
查看>>
javascript正则表达式知识大全
查看>>
更好用的集群限流功能,Sentinel 发布 v1.4.2
查看>>
IDEA创建JavaWeb项目
查看>>
# iOS 使用 InjectionIII 注入动态库实现快速调试
查看>>
关于企业费控管理的这些陷阱,你知道吗?
查看>>
RTMP/RTSP直播播放器选择
查看>>
编排的艺术| K8S 中的容器编排和应用编排
查看>>
重大成果!世界首创、中国研制体细胞克隆猴诞生!
查看>>
除了冒泡排序,你知道Python内建的排序算法吗?
查看>>
Android 解决 Toolbar 的 Menu 图标无法显示
查看>>
阿里云服务器价格表,学会利用价格计算器查询阿里云服务器购买价格
查看>>
Jenkins 构建JAVA的Helloworld程序(学习笔记四)
查看>>
CheckListView扩展之框架修改
查看>>
斑马标签打印机蛋疼的打印错误处理方法
查看>>
Shape流动效果
查看>>
消息中间件核心实体(0)
查看>>