![]() |
打酱油的核桃 · mysql8.0设置binlog保存时间,并 ...· 4 周前 · |
![]() |
宽容的橡皮擦 · MySQL - mysqldump ...· 2 周前 · |
![]() |
重感情的大象 · Mysql中autocommit的用法 - ...· 2 周前 · |
![]() |
怕老婆的鸵鸟 · PHP: mysql_field_name ...· 4 天前 · |
![]() |
潇洒的香瓜 · 阿杰学python----pymysql ...· 3 天前 · |
![]() |
坚强的伏特加 · Vector GP68 HX 13V· 7 月前 · |
![]() |
焦虑的跑步鞋 · AWS SES Email error - ...· 8 月前 · |
![]() |
飘逸的肉夹馍 · 出海易 - 出海资讯· 9 月前 · |
![]() |
飞翔的豆浆 · java.net.SocketTimeout ...· 1 年前 · |
![]() |
体贴的太阳 · 【AWS获取S3中所有相关文件路径】_jav ...· 1 年前 · |
info host percona mysql |
https://www.percona.com/blog/mysql-8-0-22-show-processlist-version-2-now-available-from-performance_schema/ |
![]() |
苦恼的小蝌蚪
1 年前 |
See all of Percona’s upcoming events and view materials like webinars and forums from past events
View Our EventsPercona is an open source database software, support, and services company that helps make databases and applications run better.
Learn MoreSee Percona’s recent news coverage, press releases and industry recognition for our open source software and support.
News coverage Press ReleasesJanuary 15, 2021
Sri Sakthivel
The “SHOW PROCESSLIST” command is very famous and very useful for MySQL DBAs. It will help you to understand the ongoing thread activities and their current states. By default, the “show processlist” output details will be collected from the thread manager, and it needs the global mutex. From MySQL 8.0.22, we have an alternative way to get the process details from the PERFORMANCE_SCHEMA. It doesn’t need the global mutex. 🙂
Note: We also have the non-blocking SYS schema views “processlist” and “x$processlist”, which provide more complete information than the SHOW PROCESSLIST statement and the INFORMATION_SCHEMA.PROCESSLIST and PERFORMANCE_SCHEMA.PROCESSLIST. But, we can’t integrate this with the “SHOW PROCESSLIST” command.
In this blog, I am going to explain the complete details about the new processlist implementation using PERFORMANCE_SCHEMA.
The following statements are equivalent:
The following statements are equivalent:
“PERFORMANCE_SCHEMA.PROCESSLIST” table has similar columns as “INFORMATION_SCHEMA.PROCESSLIST”
MySQL provides a variable “ performance_schema_show_processlist ” to enable this feature. Once we enable the variable, the “SHOW PROCESSLIST” command will start to show the details from the “PERFORMANCE_SCHEMA.PROCESSLIST” table instead of the thread manager.
The variable has a global scope, no need to restart the MySQL server.
Yes, the PERFORMANCE_SCHEMA.PROCESSLIST table is activated for the “SHOW PROCESSLIST”.
“SHOW PROCESSLIST” output from “PERFORMANCE_SCHEMA” :
You can also query the “performance_schema.processlist” table to get the thread information.
“mysqladmin processlist” output from “performance_schema” :
By submitting my information I agree that Percona may use my personal data in sending communication to me about Percona services. I understand that I can unsubscribe from the communication at any time in accordance with the Percona Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
MySQL, PostgreSQL, InnoDB, MariaDB, MongoDB and Kubernetes are trademarks for their respective owners.
![]() |
重感情的大象 · Mysql中autocommit的用法 - 三国梦回 2 周前 |
![]() |
坚强的伏特加 · Vector GP68 HX 13V 7 月前 |
![]() |
飘逸的肉夹馍 · 出海易 - 出海资讯 9 月前 |