Mysql Connection Sleep status issue resolved.

Source: Internet
Author: User

MySQL is always a problem yesterday, when the various programs run, the connection has been disconnected.

Causes for this problem:

1. Maximum number of connections

2. Network problems

3. mysql Server resource issues

However, none of the 3 most common questions above appear. Later, I looked at the MySQL connection status (show Processlist), found a lot of sleep state, and sleep time is very long

It is thought that is not MySQL to prevent the sleep time too long some fault-tolerant mechanism, using show variables like "%timeout%",, interactive_timeout and wait_timeout values represent Max sleep

The duration is 8 hours by default. In fact, the best procedure is not to use long connection, after the release, to ensure that the stability of the server is necessary.

Mysql Connection Sleep status issue resolved.

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.