MySQL Series (11)--performance analysis other common monitoring

Source: Internet
Author: User

Show status

Show status can query the current MySQL server state information. The statement does not require any permissions.

For show status you can use the LIKE clause to retrieve the required state information for fuzzy retrieval. Such as:

SHOW STATUS LIKE ‘Key%‘;

Show status is not a global and session-level state information. For the meaning of Session and global, refer to my previous article MySQL variables

SHOW SESSION STATUS;SHOW GLOBAL STATUS;

Show status shows a lot of state information, but the usual ones are the following:

1. About InnoDB Line Lock:

    • Innodb_row_lock_current_waits
    • Innodb_row_lock_time
    • Innodb_row_lock_time_avg
    • Innodb_row_lock_time_max
    • Innodb_row_lock_waits

2. About Table Locks

    • Table_locks_immediate
    • table_locks_waited

3. About the Table class

    • Created_tmp_disk_tables
    • Created_tmp_tables
    • Open_table_definitins
    • Open_tables
    • Opened_table_definitions
    • Opened_tables
Innodb_lock_waits table

You can get the wait lock information for the current INNODB storage engine by querying the table.

Innodb_trx

You can query the table for transaction information that is open by the current server.

Wait a minute. Overall, MySQL instances typically have two schemas:

    • INFORMATION_SCHEMA: There are many statistical tables in the schema, such as storage engine related, transaction, lock, and so on, which are some soft resource information about the server runtime;

    • Performance_schema: This schema mainly contains the hard resource usage statistics run by server;

MySQL Series (11)--performance analysis other common monitoring

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.