mysql server status variables Flashcards
(195 cards)
Aborted_clients
The number of connections that were aborted because the client died without closing the connection properly. SeeSectionC.5.2.11 “Communication Errors and Aborted Connections”.
Aborted_connects
The number of failed attempts to connect to the MySQL server. SeeSectionC.5.2.11 “Communication Errors and Aborted Connections”.
For additional connection-related information check theConnection_errors_xxxstatus variables and thehost_cachetable.
Binlog_cache_disk_use
The number of transactions that used the temporary binary log cache but that exceeded the value ofbinlog_cache_sizeand used a temporary file to store statements from the transaction.
The number of nontransactional statements that caused the binary log transaction cache to be written to disk is tracked separately in theBinlog_stmt_cache_disk_usestatus variable.
Binlog_cache_use
The number of transactions that used the binary log cache.
Binlog_stmt_cache_disk_use
The number of nontransaction statements that used the binary log statement cache but that exceeded the value ofbinlog_stmt_cache_sizeand used a temporary file to store those statements.
Binlog_stmt_cache_use
The number of nontransactional statements that used the binary log statement cache.
Bytes_received
The number of bytes received from all clients.
Bytes_sent
The number of bytes sent to all clients.
Com_xxx
The Com_xxx statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example Com_delete and Com_update count DELETE and UPDATE statements respectively. Com_delete_multi and Com_update_multi are similar but apply to DELETE and UPDATE statements that use multiple-table syntax.
If a query result is returned from query cache the server increments the Qcache_hits status variable not Com_select. See Section 8.9.3.4 “Query Cache Status and Maintenance”.
All of the Com_stmt_xxx variables are increased even if a prepared statement argument is unknown or an error occurred during execution. In other words their values correspond to the number of requests issued not to the number of requests successfully completed.
The Com_stmt_xxx status variables are as follows:
Com_stmt_prepare
Com_stmt_execute
Com_stmt_fetch
Com_stmt_send_long_data
Com_stmt_reset
Com_stmt_close
Those variables stand for prepared statement commands. Their names refer to the COM_xxx command set used in the network layer. In other words their values increase whenever prepared statement API calls such as mysql_stmt_prepare() mysql_stmt_execute() and so forth are executed. However Com_stmt_prepare Com_stmt_execute and Com_stmt_close also increase for PREPARE EXECUTE or DEALLOCATE PREPARE respectively. Additionally the values of the older statement counter variables Com_prepare_sql Com_execute_sql and Com_dealloc_sql increase for the PREPARE EXECUTE and DEALLOCATE PREPARE statements. Com_stmt_fetch stands for the total number of network round-trips issued when fetching from cursors.
Com_stmt_reprepare indicates the number of times statements were automatically reprepared by the server after metadata changes to tables or views referred to by the statement. A reprepare operation increments Com_stmt_reprepare and also Com_stmt_prepare.
Compression
Whether the client connection uses compression in the client/server protocol.
Connection_errors_accept
The number of errors that occurred during calls toaccept()on the listening port.
Connection_errors_internal
The number of connections refused due to internal errors in the server such as failure to start a new thread or an out-of-memory condition.
Connection_errors_max_connections
The number of connections refused because the servermax_connectionslimit was reached.
Connection_errors_peer_addr
The number of errors that occurred while searching for connecting client IP addresses.
Connection_errors_select
The number of errors that occurred during calls toselect()orpoll()on the listening port. (Failure of this operation does not necessarily means a client connection was rejected.)
Connection_errors_tcpwrap
The number of connections refused by thelibwraplibrary.
Connection_errors_xxx
These variables provide information about errors that occur during the client connection process. They are global only and represent error counts aggregated across connections from all hosts. These variables track errors not accounted for by the host cache (seeSection8.11.5.2 “DNS Lookup Optimization and the Host Cache”) such as errors that are not associated with TCP connections occur very early in the connection process (even before an IP address is known) or are not specific to any particular IP address (such as out-of-memory conditions). These variables were added in MySQL 5.6.5.
Connections
The number of connection attempts (successful or not) to the MySQL server.
Created_tmp_disk_tables
The number of internal on-disk temporary tables created by the server while executing statements.
If an internal temporary table is created initially as an in-memory table but becomes too large MySQL automatically converts it to an on-disk table. The maximum size for in-memory temporary tables is the minimum of the tmp_table_size and max_heap_table_size values. If Created_tmp_disk_tables is large you may want to increase the tmp_table_size or max_heap_table_size value to lessen the likelihood that internal temporary tables in memory will be converted to on-disk tables.
You can compare the number of internal on-disk temporary tables created to the total number of internal temporary tables created by comparing the values of the Created_tmp_disk_tables and Created_tmp_tables variables.
Created_tmp_files
How many temporary filesmysqldhas created.
Created_tmp_tables
The number of internal temporary tables created by the server while executing statements.
You can compare the number of internal on-disk temporary tables created to the total number of internal temporary tables created by comparing the values of the Created_tmp_disk_tables and Created_tmp_tables variables.
See also Section 8.4.4 “How MySQL Uses Internal Temporary Tables”.
Each invocation of the SHOW STATUS statement uses an internal temporary table and increments the global Created_tmp_tables value.
Delayed_errors
deprecated as of 5.6.7
Delayed_insert_threads
deprecated as of 5.6.7
Delayed_writes
deprecated as of 5.6.7