Solved

SQL Server Eating Up All Memory in My Laptop

Posted on 2016-11-24
6
17 Views
Last Modified: 2016-12-01
Hi guys,

There were some issues on the installation of SQL Server and i have re-installed it. I have also ATTACHED the existing database which is 12GB. After that the SQL Server is eating up all my RAM (16 GB) within 15-20 minutes and definitely it is stopping working me.

I have restarted the laptop and the SQL Services but no luck. Any idea why is this happening?

regards
0
Comment
Question by:shah36
  • 3
  • 2
6 Comments
 
LVL 18

Expert Comment

by:Pawan Kumar Khowal
ID: 41900599
Have you set the max memory of the server..?

1. Quick fix will be restart the server.

2. Consuming all memory is the default behavior of SQL SERVER. If you dont specify min and max server memory configuration then SQL SERVER will consume all the memory available. It is by DESIGN.

<<For below settings you must consult your Infra Team.>>
3. Setting MIN and MAX Server memory. <<Use article for configuration settings>> https://support.microsoft.com/en-us/kb/319942

4. Max memory limits only Buffer Pool size. It does not limit unreserved memory.

Read how much memory your SQL needs- http://www.sqlskills.com/blogs/jonathan/how-much-memory-does-my-sql-server-actually-need/

Hope it helps !!
0
 

Author Comment

by:shah36
ID: 41900611
Thanks for your answer. I have already set the maximum limit to 8 gb but it slows down the things dramatically. and as said this is on my laptop so i have restarted it number of times.

Also it was fine prior to reinstalling the server. It never used that much memory. now if i don't set maximum limit it crashes RAM in 15 minutes and if i do set maximum limit the queries are extremely slow.
0
 
LVL 18

Expert Comment

by:Pawan Kumar Khowal
ID: 41901087
Restart the services once and try.. Also see which query is taking up all the memory.

Check for inactive sessions ?  Run below query from Brent<<https://www.brentozar.com/blitzcache/long-running-queries/>> and check.

SELECT  st.text,
        qp.query_plan,
        qs.*
FROM    (
    SELECT  TOP 50 *
    FROM    sys.dm_exec_query_stats
    ORDER BY total_worker_time DESC
) AS qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) AS st
CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) AS qp
WHERE qs.max_worker_time > 300
      OR qs.max_elapsed_time > 300

Open in new window

0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 7

Expert Comment

by:Jason clark
ID: 41901142
SQL Server consumes that much memory which user will allow it.By default, that might be encompassing 100% of memory.This may be reason the reason. You may go through this link :
http://dba.stackexchange.com/questions/47431/why-is-sql-server-consuming-more-server-memory.
0
 

Accepted Solution

by:
shah36 earned 0 total points
ID: 41902294
Thanks for all of your suggestions, however nothing of those worked and i was getting stuck so our IT has provided me with the new laptop with new OS and SQL Server installed.
0
 

Author Closing Comment

by:shah36
ID: 41908430
Neither of the suggestion worked for me
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 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

11 Experts available now in Live!

Get 1:1 Help Now