sp_configure for max server memory restriction.


I came across below errors in my event viewer log after installing SQL Server.

Error:1
Error: 17887, Severity: 10, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.

Error:2
There was a memory allocation failure during connection establishment. Reduce nonessential memory load, or increase system memory. The connection has been closed. [CLIENT: ]

Error:3
SQL Server was unable to run a new system task, either because there is insufficient memory or the number of configured sessions exceeds the maximum allowed in the server. Verify that the server has adequate memory. Use sp_configure with option 'user connections' to check the maximum number of user connections allowed. Use sys.dm_exec_sessions to check the current number of sessions, including user processes.

Error:4
BRKR TASK: Operating system error Exception 0x1 encountered.

Error:5
Error: 17300, Severity: 16, State: 1. (Params:). The error is printed in terse mode because there was error during formatting. Tracing, ETW, notifications etc are skipped.

Error: 6
SQL Server is terminating a system or background task SSB Task due to errors in starting up the task (setup state 1).

Before explaining about the above errors let me tell you about the system setup

Windows Level:  Window Server 2008 R2;64BIT;8GB RAM.

SQL Server Level: Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr  2 2010 15:48:46 Copyright (c) Microsoft Corporation.Standard Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (Hypervisor)

Troubleshooting Steps:  The problem that I am trying to explain is 97% percent of the RAM is occupied by SQL Server Process. And there is no space for other processes. Because please find the screen shots for the below reference.

 
By running the below command you can reduce the memory consumption of SQL Server
sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'max server memory', 4096;
GO
RECONFIGURE WITH OVERRIDE;

 
 

Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server