Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 44.5Mb
PDF (A4) - 44.6Mb
PDF (RPM) - 40.3Mb
HTML Download (TGZ) - 10.5Mb
HTML Download (Zip) - 10.5Mb
HTML Download (RPM) - 9.1Mb
Man Pages (TGZ) - 204.6Kb
Man Pages (Zip) - 311.6Kb
Info (Gzip) - 3.9Mb
Info (Zip) - 3.9Mb
Excerpts from this Manual

5.6.3.1 Thread Pool Components

The thread pool feature comprises these components:

  • A plugin library file implements a plugin for the thread pool code as well as several associated monitoring tables that provide information about thread pool operation:

    • As of MySQL 8.0.14, the monitoring tables are Performance Schema tables; see Section 26.12.15, “Performance Schema Thread Pool Tables”.

    • Prior to MySQL 8.0.14, the monitoring tables are INFORMATION_SCHEMA tables; see Section 25.39, “INFORMATION_SCHEMA Thread Pool Tables”.

      The INFORMATION_SCHEMA tables now 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:

      SELECT * FROM INFORMATION_SCHEMA.TP_THREAD_STATE;

      The application should use this query instead:

      SELECT * FROM performance_schema.tp_thread_state;
    Note

    If you do not load all the monitoring tables, some or all MySQL Enterprise Monitor thread pool graphs will be empty.

    For a detailed description of how the thread pool works, see Section 5.6.3.3, “Thread Pool Operation”.

  • Several system variables are related to the thread pool. The thread_handling system variable has a value of loaded-dynamically when the server successfully loads the thread pool plugin.

    The other related variables are implemented by the thread pool plugin; they are not available unless it is enabled:

    If any variable implemented by the plugin is set to an illegal value at startup, plugin initialization fails and the plugin does not load.

    For information about setting thread pool parameters, see Section 5.6.3.4, “Thread Pool Tuning”.

  • The Performance Schema has instruments that expose information about the thread pool and may be used to investigate operational performance. To identify them, use this query:

    SELECT * FROM performance_schema.setup_instruments
    WHERE NAME LIKE '%thread_pool%';

    For more information, see Chapter 26, MySQL Performance Schema.


User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.