?
Solved

sql performance issues

Posted on 2013-12-02
3
Medium Priority
?
220 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Copy Database Wizard 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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

840 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