The Performance Schema implements several system variables that provide configuration information:
mysql> SHOW VARIABLES LIKE 'perf%';
+--------------------------------------------------------+---------+
| Variable_name | Value |
+--------------------------------------------------------+---------+
| performance_schema | ON |
| performance_schema_accounts_size | 100 |
| performance_schema_digests_size | 200 |
| performance_schema_events_stages_history_long_size | 10000 |
| performance_schema_events_stages_history_size | 10 |
| performance_schema_events_statements_history_long_size | 10000 |
| performance_schema_events_statements_history_size | 10 |
| performance_schema_events_waits_history_long_size | 10000 |
| performance_schema_events_waits_history_size | 10 |
| performance_schema_hosts_size | 100 |
| performance_schema_max_cond_classes | 80 |
| performance_schema_max_cond_instances | 1000 |
| performance_schema_max_file_classes | 50 |
| performance_schema_max_file_handles | 32768 |
| performance_schema_max_file_instances | 10000 |
| performance_schema_max_mutex_classes | 200 |
| performance_schema_max_mutex_instances | 1000000 |
| performance_schema_max_rwlock_classes | 30 |
| performance_schema_max_rwlock_instances | 1000000 |
| performance_schema_max_socket_classes | 10 |
| performance_schema_max_socket_instances | 1000 |
| performance_schema_max_stage_classes | 150 |
| performance_schema_max_statement_classes | 165 |
| performance_schema_max_table_handles | 10000 |
| performance_schema_max_table_instances | 1000 |
| performance_schema_max_thread_classes | 50 |
| performance_schema_max_thread_instances | 1000 |
| performance_schema_setup_actors_size | 100 |
| performance_schema_setup_objects_size | 100 |
| performance_schema_users_size | 100 |
+--------------------------------------------------------+---------+
Table 20.2. Performance Schema Variable Reference
The variables have the following meanings:
The value of this variable is ON or
OFF to indicate whether the Performance
Schema is enabled. By default, the value is
OFF. At server startup, you can specify
this variable with no value or a value of 1 to enable it, or
with a value of 0 to disable it.
performance_schema_accounts_size
The number of rows in the
accounts table. If this variable
is 0, the Performance Schema does not maintain connection
statistics in the accounts table.
This variable was added in MySQL 5.6.3.
performance_schema_digest_size
The maximum number of rows in the
events_statements_summary_by_digest
table. This variable was added in MySQL 5.6.5.
performance_schema_events_stages_history_long_size
The number of rows in the
events_stages_history_long table.
This variable was added in MySQL 5.6.3.
performance_schema_events_stages_history_size
The number of rows per thread in the
events_stages_history table. This
variable was added in MySQL 5.6.3.
performance_schema_events_statements_history_long_size
The number of rows in the
events_statements_history_long
table. This variable was added in MySQL 5.6.3.
performance_schema_events_statements_history_size
The number of rows per thread in the
events_statements_history table.
This variable was added in MySQL 5.6.3.
performance_schema_events_waits_history_long_size
The number of rows in the
events_waits_history_long table.
performance_schema_events_waits_history_size
The number of rows per thread in the
events_waits_history table.
The number of rows in the hosts
table. If this variable is 0, the Performance Schema does not
maintain connection statistics in the
hosts table. This variable was
added in MySQL 5.6.3.
performance_schema_max_cond_classes
The maximum number of condition instruments.
performance_schema_max_cond_instances
The maximum number of instrumented condition objects.
performance_schema_max_file_classes
The maximum number of file instruments.
performance_schema_max_file_handles
The maximum number of opened file objects.
The value of
performance_schema_max_file_handles
should be greater than the value of
open_files_limit:
open_files_limit affects the
maximum number of open file handles the server can support and
performance_schema_max_file_handles
affects how many of these file handles can be instrumented.
performance_schema_max_file_instances
The maximum number of instrumented file objects.
performance_schema_max_mutex_classes
The maximum number of mutex instruments.
performance_schema_max_mutex_instances
The maximum number of instrumented mutex objects.
performance_schema_max_rwlock_classes
The maximum number of rwlock instruments.
performance_schema_max_rwlock_instances
The maximum number of instrumented rwlock objects.
performance_schema_max_socket_classes
The maximum number of socket instruments. This variable was added in MySQL 5.6.3.
performance_schema_max_socket_instances
The maximum number of instrumented socket objects. This variable was added in MySQL 5.6.3.
performance_schema_max_stage_classes
The maximum number of stage instruments. This variable was added in MySQL 5.6.3.
performance_schema_max_statement_classes
The maximum number of statement instruments. This variable was added in MySQL 5.6.3.
performance_schema_max_table_handles
The maximum number of opened table objects.
performance_schema_max_table_instances
The maximum number of instrumented table objects.
performance_schema_max_thread_classes
The maximum number of thread instruments.
performance_schema_max_thread_instances
The maximum number of instrumented thread objects.
The max_connections and
max_delayed_threads system
variables affect how many threads are run in the server.
performance_schema_max_thread_instances
affects how many of these running threads can be instrumented.
If you increase
max_connections or
max_delayed_threads, you
should consider increasing
performance_schema_max_thread_instances
so that
performance_schema_max_thread_instances
is greater than the sum of
max_connections and
max_delayed_threads.
performance_schema_setup_actors_size
The number of rows in the
setup_actors table.
performance_schema_setup_objects_size
The number of rows in the
setup_objects table.
The number of rows in the users
table. If this variable is 0, the Performance Schema does not
maintain connection statistics in the
users table. This variable was
added in MySQL 5.6.3.

User Comments
Add your own comment.