SQL Server memory settings

Source: Internet
Author: User
Tags rtrim server memory
SQL Server puts used data into the cache to speed up access to the data. If there are no other processes competing, SQL Server uses almost all of the memory until another process needs memory to free up memory. In the case of a small concurrency, there is no problem with setting up SQL Server's memory. However, in the case of high concurrency/large data volumes, this can result in a large number of page exchanges. The recommended practice is to set SQL Server to use 75% of the memory, such as 64G memory servers, we generally set the maximum memory of SQL 48G, and then observe the SQL buffer Cache hit Ratio, if less than 99%, and then increase the 2G memory until buffer Cache hit ratio higher than 99% query buffer Cache hit ratio code
SQL code SELECT (CAST (LTRIM (RTRIM (counter_name)) when ' Buffer Cache hits ratio ' then CAST (Cntr_value as Intege R) ELSE NULL END) as FLOAT)/cast (SUM (Case LTRIM (RTRIM (counter_name)) when ' Buffer cache hits ratio base ' then CAST (c Ntr_value as INTEGER) ELSE NULL END) as FLOAT) * as Buffercachehitratio from Sys.dm_os_performance_counters WHE RE LTRIM (RTRIM ([object_name])) like '%:buffer Manager ' and [counter_name] like ' Buffer Cache hit ratio% '

SQL Server memory settings

Related Article

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.