MySQL takes up too much memory to solve the problem

Source: Internet
Author: User

MySQL has changed so much, the memory is still around 40MB software.

Now to the official website to download more than 300 MB ... ... what is Oracle doing?

After installation, a direct memory alarm is started.

Open Task Manager See, Mysqld.exe unexpectedly occupies more than 400 MB of memory, my eclipse is more than 300 MB ...

Well, find out why, in order to better performance of the database itself, in the boot time pre-"occupy" a lot of memory.

According to Baidu's results, it can be optimized by modifying the MySQL configuration file.

Where is the ①my.ini file?

If it's like me, Windows is installed by default and can be found under the C:\ProgramData\MySQL\ directory.

② only need to modify the two of these articles.

table_open_cache=2000 instead

table_open_cache=256

table_definition_cache=1400 instead

table_definition_cache=400

③ restart MySQL, and then open Task Manager, Mysqld.exe only accounted for 40M of memory.

MySQL takes up too much memory to solve the problem

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.