Solved

Memory high wait

Posted on 2016-08-10
4
44 Views
Last Modified: 2016-08-19
Good morning,
Got a client who is saying SQL Server is VERY sluggish, and even through its got 16Gb RAM and running one database instance which isnt big, its taking several minutes to execute a basic query.

There are indexes, and looking into the query using tools 'Execution Plan' seems to say it will be good.

However looking at the 'Activity Monitor' the memory is very high:-
Activity Monitor
Its running SQL Server 2014 with SP2.

Any ideas what I can do to reduce it?
0
Comment
Question by:tonelm54
  • 2
4 Comments
 
LVL 46

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 250 total points
ID: 41750192
There's no direct answer only with the information you provided. At least the following should be answered:

What is the configuration of your server?
It's there any other application installed besides SQL Server engine?
And what edition is the SQL Server engine (Express, Standard, Enterprise, Developer, other)?
How much memory if configured for the SQL Server instance (min and max server memories)?
How tempdb is configured (location and number of data files)?
How much storage do you have?
And how the storage is organized (disks for OS, Data, Log, TempDB, Backups, ...)?
How big is the database?
Can you attach the query execution plan?
0
 
LVL 10

Accepted Solution

by:
Marcjev earned 250 total points
ID: 41758299
And these two DMV's give a more detailed view of the problem of where is the system actually waiting on. The graphs are not detailed enough to say anything:
run
select * from sys.dm_os_waiting_tasks,
select * from sys.dm_os_wait_stats
when the problem is there
0
 

Author Comment

by:tonelm54
ID: 41762259
Not quite sure what the issue was, but the user stopped complaining and when I chased him about it, he said it was working fine now, so all good now (kinda)
0
 
LVL 46

Expert Comment

by:Vitor Montalvão
ID: 41762288
I bet it will happen again soon.
When that happens run the commands provided above by Marcjev to try to find the culprit process.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

864 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

21 Experts available now in Live!

Get 1:1 Help Now