添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
宽容的橡皮擦  ·  MySQL - mysqldump ...·  2 周前    · 
怕老婆的鸵鸟  ·  PHP: mysql_field_name ...·  4 天前    · 
潇洒的香瓜  ·  阿杰学python----pymysql ...·  3 天前    · 
坚强的伏特加  ·  Vector GP68 HX 13V·  7 月前    · 
焦虑的跑步鞋  ·  AWS SES Email error - ...·  8 月前    · 
飘逸的肉夹馍  ·  出海易 - 出海资讯·  9 月前    · 
飞翔的豆浆  ·  java.net.SocketTimeout ...·  1 年前    · 
Monitor the health of your database infrastructure, explore new patterns in behavior, and improve the performance of your databases no matter where they’re located. Learn More Comprehensive support to navigate MySQL 5.7 EOL, whether you're looking to upgrade to MySQL 8.0 or stay supported on 5.7. Learn More All of Percona’s open-source software products, in one place, to download as much or as little as you need. View Downloads

Percona Events Hub

See all of Percona’s upcoming events and view materials like webinars and forums from past events

Percona Live 2023

Upcoming Events

View Our Events

Percona is an open source database software, support, and services company that helps make databases and applications run better.

Learn More

See Percona’s recent news coverage, press releases and industry recognition for our open source software and support.

News coverage Press Releases

MySQL 8.0.22: SHOW PROCESSLIST Version 2 – Now Available From PERFORMANCE_SCHEMA

January 15, 2021

Sri Sakthivel

SHOW PROCESSLIST Version 2 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.

“SHOW PROCESSLIST” Using Thread Manager (default)

  • This is the default method.
  • The default “show processlist” implementation iterates across active threads from within the thread manager while holding a global mutex.
  • Negatively impacts performance.
  • Particularly impacts the busy systems quite badly.
  • The INFORMATION_SCHEMA.PROCESSLIST is one of the sources of process information. This will also use the thread manager to collect the metrics.
  • By default, “mysqladmin processlist” also uses the thread manager to get the details.

The following statements are equivalent: