Rechercher dans le manuel MySQL
25.40 INFORMATION_SCHEMA Thread Pool Tables
[+/-]
As of MySQL 8.0.14, the thread pool
INFORMATION_SCHEMA
tables are also available as
Performance Schema tables. (See
Section 26.12.15, “Performance Schema Thread Pool Tables”.) The
INFORMATION_SCHEMA
tables are deprecated and
will be removed in a future MySQL version. Applications should
transition away from the old tables to the new tables. For
example, if an application uses this query:
The application should use this query instead:
The following sections describe the
INFORMATION_SCHEMA
tables associated with the
thread pool plugin (see Section 5.6.3, “MySQL Enterprise Thread Pool”). They provide
information about thread pool operation:
TP_THREAD_GROUP_STATE
: Information about thread pool thread group statesTP_THREAD_GROUP_STATS
: Thread group statisticsTP_THREAD_STATE
: Information about thread pool thread states
Rows in these tables represent snapshots in time. In the case of
TP_THREAD_STATE
, all rows for a thread group
comprise a snapshot in time. Thus, the MySQL server holds the mutex
of the thread group while producing the snapshot. But it does not
hold mutexes on all thread groups at the same time, to prevent a
statement against TP_THREAD_STATE
from blocking
the entire MySQL server.
The INFORMATION_SCHEMA
thread pool tables are
implemented by individual plugins and the decision whether to load
one can be made independently of the others (see
Section 5.6.3.2, “Thread Pool Installation”). However, the content of
all the tables depends on the thread pool plugin being enabled. If a
table plugin is enabled but the thread pool plugin is not, the table
becomes visible and can be accessed but will be empty.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-thread-pool-i-s-tables.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.