Solved

sql performance issues

Posted on 2013-12-02
3
208 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
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.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

22 Experts available now in Live!

Get 1:1 Help Now