Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

sql performance issues

Posted on 2013-12-02
3
Medium Priority
?
218 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

618 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