SQL Server sp_configure control memory usage

Source: Internet
Author: User
Tags configuration settings server memory

Background knowledge:

sp_configure display or change global configuration settings for the current server (use sp_configure to display or change server-level settings.) )

View global configuration values

Method 1, execute sp_configure; view all directly.

Method 1, execute sp_configure @configname = ' Name ', and view the specified directly.

Method 2, save to the table for easy operation

First step: Build a table

                                 C reate table Instanceconfigure (
                        &NBS P        name nvarchar
                    &NB Sp            minimum int,
                  &N Bsp              maximum int,
                &N Bsp                config_value int,
            &NBS P                    run_value int);
                                  Go

Step Two: Insert data

INSERT INTO Instanceconfigure
Execute sp_configure;
Go

--------------------------------------------------------------------------------------------------------------- --------------------------------------------

Method 1,

min server memory means that after the SQL Server R address space has grown to this value, it will not be less than this value. When you start SQL Server, only the required memory is requested.

Execute sp_configure @configname = ' min server memory (MB) ', @configvalue = 100
Reconfigure with override;
Go

Method 2,

max server memory controls the maximum size of total server memory. also through sp_configure configuration;

Method 3,

Set working set size this is obsolete, and Windows will no longer respect this parameter. also through sp_configure configuration;

Please don't use it.

Method 4,

Lock pages in memory

To view my article:

Http://www.cnblogs.com/JiangLe/p/4008036.html

SQL Server sp_configure control memory usage

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.