Threads statistics


Job details

Name: Threads statistics
Platform: Mysql
Category: Performance
Description: Checks the number of threads created per minute.
Long description: ‘thread’, mean either a client connection or an OS thread and there is 1-1 correspondence between threads and connections.
Version: 1.1
Default schedule: 2,7,12,17,22,27,32,37,42,47,52,57 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & is_mysql_branch=‘1′]/.[hasengine=‘YES’ & use_global_variables_information_schema = ‘1′ ]

Parameters

Name Default value Description
warning threshold 30 The maximum value of created threads per minute (over a period of time defined by the [time threshold] parameter) before a warning is triggered.
alarm threshold 600 The maximum value of created threads per minute (over a period of time defined by the [time threshold] parameter) before an alarm is triggered.
threshold (time) 20 A period of time (in minutes) which must be passed (combined with the number of aborted clients) before an alarm or a warning is returned by the procedure.
enable warnings and alarms NO If set to “NO” (default), the alert will only collect statistics without returning status warning or alarm. Value “YES“ will activate the alert.
history threshold 7 The maximum number of day to kept statistics for in the historic tables.

Job Summary

Job Configuration

This job functions through an implemented procedure ‘dbw_threads_statistics’:

Then it populates tables in the control center with the monitored data for a graphical visualization of thread cache statistics over time.

Job Report

This job creates a report ‘Aborted clients’ which presents the value of ‘thread_cache_size’ variable which when increased can potentially improve performance and a graph that visually represents threads created, cached, and connections over time.