2014/08/23 OJ and related website open very slowly, training program login Direct error!

Source: Internet
Author: User

Problem:

This problem has been around for nearly one weeks, at the beginning of the discovery of OJ and related sites sometimes open a little slow, then also did not care, and then quickly slowly more and more frequent; this morning has been open very slowly (no matter what time, this situation); Training plan and do the statistics also occasionally appeared error situation, training program login directly from yesterday has been error to today! The problem is serious, I have to ask for help!


Solve:

Enter the database server, into MySQL, with show processlist command to see, found that there are a lot of unauthenticated user;


Google a bit L:

Found that this is a MySQL bug, regardless of whether the connection is through the hosts or IP, MySQL will do DNS counter-check, IP to DNS, due to the inverse of the slow speed

(Whether it is a DNS server provided by the ISP or other reasons), a large number of queries are difficult to cope with, the thread is not enough to increase the thread, but not released, so MySQL will "suspended animation."

The solution is simple, to end this counter-check process, prohibit any parsing.


Open the MySQL configuration file (my.cnf) and add a line under [mysqld]:

Skip-name-resolve

Reload the configuration file or restart the MySQL service.


Lesson:

。。。。。。。。。。。。。。。


2014/08/23 OJ and related website open very slowly, training program login Direct error!

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.