Type Integer Default Value ( ≥  8.0.13) 175 Default Value ( ≤  8.0.12) 150 Minimum Value 0 Maximum Value ( ≥  8.0.12) 1024 Maximum Value (8.0.11) 256 Performance Schema System Variables The maximum number of stage instruments. For information about how to set and use this variable, see Section 27.7, “Performance Schema Status Monitoring” . • performance_schema_max_statement_classes • performance_schema_max_statement_stack The maximum depth of nested stored program calls for which the Performance Schema maintains statistics. When this maximum is exceeded, the Performance Schema increments the Performance_schema_nested_statement_lost  status variable for each stored program statement executed. 5114 Command-Line Format --performance-schema-max-statement- stack=# System Variable performance_schema_max_statement_stack Scope Global Dynamic No SET_VAR  Hint Applies No Type Integer Default Value 10 Command-Line Format --performance-schema-max-statement- classes=# System Variable performance_schema_max_statement_classes Scope Global Dynamic No SET_VAR  Hint Applies No Type Integer Default Value -1  (signifies autosizing; do not assign this literal value) The maximum number of statement instruments. For information about how to set and use this variable, see Section 27.7, “Performance Schema Status Monitoring” . The default value is calculated at server build time based on the number of commands in the client/ server protocol and the number of SQL statement types supported by the server. This variable should not be changed, unless to set it to 0 to disable all statement instrumentation and save all memory associated with it. Setting the variable to nonzero values other than the default has no benefit; in particular, values larger than the default cause more memory to be allocated then is needed.