Malaika Consultants LLC

SQL Server memory running wild? Check your options!

by Malaika Consultants LLC 7. July 2010 01:12

Typical problem

While working with a client, recently we had an issue where the web server was just getting unresponsive for no apparent reason. This server was an IIS box serving several websites and of course having a large number of SQL Server databases. When we looked at the server resources, we found SQL Server was occuping good 3GB of the available 4GB of RAM ! Huh ? Yes!

Obviously there was some leak somewhere, some query taking more resources and not releasing it. We had to investigate that, but had a situation where there are several non-responsive websites.

What are your options?

SQL Server 2008 (and older versions as well) allow you to specify the maximum memory utilized by the sql server process before it is recycled. Right-click on "Properties" for your SQL server through SQL Server Management Studio. Click on "Memory" and then put in the value that works for you in the "Maximum Server Memory (in MB)" option.
Note : The default value is 2147483647 MB which pretty much gives a free rein to SQL Server to do as it pleases. The minimum amount of memory you can specify for max server memory is 16 megabytes (MB).

NOTE : This is not a solution to your memory problems, but only the first step. Remember the SQL Server process will be recyled once the maximum memory limit is reached, and it will need to use resources to start everything it needs for the process to be recycled.

Tags: ,

Coding | Database

Comments

9/10/2010 6:45:18 PM #

I should really be working but I can't stop reading this. Keep up the great work.

wow gold India | Reply

9/10/2010 6:55:53 PM #

Im no expert, but I think you just made the best point.  You obviously know a lot about what youre talking about, and I can really get behind that.  Thanks for being so upfront and so honest about the subject matter.  I really feel like I have a better understanding now.

control games Canada | Reply

9/10/2010 7:11:10 PM #

I posted your article to my myspace profile.RegardsJenki

nfl jersey Honduras | Reply

9/15/2010 5:56:56 PM #

superb! Lady gaga is a an awesome gal. I truly love her stuff. I took my children to see her last month in concert and had a unbelievable time.

wow gold Belgium | Reply

9/15/2010 6:09:42 PM #

This is really a excellent source of ideas, Im pleased I read this informative article. I will be returning soon to check out more that you have.

ffxiv gold India | Reply

10/5/2010 6:27:49 AM #

Great website...and cool article man...thanx for the great post...keep on posting such articles... Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful.

Смесители Grohe United States | Reply

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



::: | © Malaika Consultants LLC | :::

Malaika Consultants LLC

Malaika Consultants LLC is a custom software development consulting firm located in Cary (Raleigh Durham Research Triangle AKA RTP area ) North Carolina. We offer our expert consulting services in the Microsoft .NET and related technologies. Our mission is to partner with you and ensure the success of your project. We have a team in the USA that will help you with your Information Technology needs and we strive to be truly "Your Information Technology Angels"

We are offering 1 hour of free consulting -- ASP.NET, SQL Server, IIS, anything. Contact us to get your free consulting

Recent Comments

Comment RSS