Mysql thread_cache_size Optimization Method

Source: Internet
Author: User
Tags mysql tutorial

Mysql tutorial thread_cache_size Optimization Method

In fact, optimization does not play a major role in the database tutorial configuration. Let's look at a set of parameters.

Mysql thread_cache_size default configuration thread_cache_size = 8


The recommended parameter thread_cache_size is determined by the memory size. When the memory is greater than 3g, it is set to 64
I want to know why we cannot set more. Our application concurrency is greater than 500. If thread_cache_size is set to 500

Setting Method

Optimization Method:

1. mysql> set global thread_cache_size = 16

2. edit/etc/my. cnf to change/Add

 

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.