mysql5.6.38 High memory footprint problem resolution

Source: Internet
Author: User
Tags server memory

I have a server memory of 1G, MySQL after the boot up memory of about 450M, memory ratio of about 46%. MySQL memory consumption is too large, resulting in server memory is very tight, and msyql and other processes in the running process often crashes. After finding the relevant data, the following three parameters were added to the my.cnf file:

performance_schema_max_table_instances=400
table_definition_cache=400
table_open_cache=256

After restarting MySQL, it was found that MySQL memory usage dropped to 10%.

As a comparison, record the default configuration of mysql5.6.38 for three parameters:

  

The specific meanings of these three fields need to be supplemented and documented. At present, the results expressed satisfaction.

mysql5.6.38 High memory footprint problem resolution

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.