Solved

sql performance issues

Posted on 2013-12-02
3
210 Views
Last Modified: 2013-12-06
I have a vb.net based website using sql 2008.  I run a particular query it runs in few seconds, later I run same query it takes 1-2 minutes or more.  2nd time around there are no others on the system or any other differences than first time around.  I noticed SQL takes memory and sits on it.  every so often I will see the numbers go down.  I am looking at the sql process committed memory column (see attachment).  Is it possible to release this memory back after running queries.  If not released will it affect performance.  I have currently 12gb memory on the server, will having additional 32 or 64gb help?  Database is about 150GB , data is loaded weekly or monthly and is only accessed for reporting not for updating by users.  for such a database size is there any rule how much memory I should have?  I also have additional large databases on the server, including on same drive.
perform.jpg
0
Comment
Question by:CPOINT2000
  • 2
3 Comments
 
LVL 52

Expert Comment

by:Carl Tawn
ID: 39691071
SQL Server will generally take as much memory as it is allowed, primarily to cache data, procedures, etc, and will only release memory when it needs to.

How much of the system memory have you got allocated for SQL Server to use?
0
 

Author Comment

by:CPOINT2000
ID: 39691083
I did not specify any system memory limits.
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 39691156
That could potentially be part of your issue. Start by capping the memory for SQL server to 2GB less that the system RAM. So if you have 12GB cap SQL Server to 10GB.

Also take a look at the Page Life Expectancy performance counter. That will give you an earlier indicator of whether or not SQL is experiencing any memory pressure.

I'd also take a look at the plan for the query to see if there is anything amiss there, such as performing a Scan on a large table.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

785 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