Solved

MS SQL server consumes more memory and does not release the memory

Posted on 2014-03-19
4
245 Views
Last Modified: 2014-03-20
Hi,
     I am running the database server with the following configuration.
The SQL Server consumes the hole memory(14 GB) and does not release the memory.
As a result the performance of the database server is reduced.

Please help me to resolve the issue.

 IBM System x3650
Windows 2008 server standard 64 bit
HDD:148 GB (RAID 5)
RAM :14 GB
MS SQL Server 2012 64 bit
Current Database Size: 7 GB
0
Comment
Question by:NARANTHIRAN
4 Comments
 
LVL 34

Assisted Solution

by:Dan Craciun
Dan Craciun earned 200 total points
ID: 39938963
Use this page to configure max server memory: http://technet.microsoft.com/en-us/library/ms178067.aspx

The easiest way is to use the Management Studio.

HTH,
Dan
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 300 total points
ID: 39939159
You need to configure the MAX MEMORY to be at least a couple of GB less that the available system memory - you need to leave some for the OS to use.

Try running the following to bring the MAX MEMORY down to 12GB:
sp_configure 'show advanced options','1'
go

reconfigure with override
go

sp_configure 'max server memory (MB)','12288'
go

reconfigure with override
go

sp_configure 'show advanced options','0'
go

reconfigure with override
go

Open in new window

0
 
LVL 1

Expert Comment

by:SrinivasanITPro
ID: 39939318
Hi

I would check / change the following;

- Increase the Virtual Memory (Swap) to 1.5 times to RAM
- If any unused SQL Instances are available, I would STOP that.

Please check the above and feedback.

KS
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39944116
The SQL Server consumes the hole memory(14 GB) and does not release the memory.
As a result the performance of the database server is reduced.

You have it back to front.  SQL Server by design will use all memory made available and not release it.  So if your performance is lousy it is not because SQL Server is using all the memory, quite the opposite, it just means that you either don't have enough memory or more likely you need to optimize the query or queries running.

Yes, you can set the max memory and provided you are not running anything else on that box i would recommend 11 or 12GB (see here)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now