[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

SQL Server Express 2012 process takes a lot of memory

Posted on 2013-06-27
15
Medium Priority
?
646 Views
Last Modified: 2013-06-28
I'm using SQL Server Express 2012 on Windows8. Looking at the memory usage of SQL Server Express service in Task Manager I see:
Before running SSMS: 10 MB.
During SSMS usage: 35 MB.
(Long) after closing SSMS: 154 MB! the process is stuck in memory, and remains like that until I end it manually or restart Windows.
Is this behaviour normal? Is there anyhing I can tune in SQL Server so that the process won't stuck in memory?
0
Comment
Question by:NNOAM1
[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
  • 9
  • 6
15 Comments
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39280752
Are you referring to the memory usage for SSMS.exe or SQLServr.exe?

If SQLServr.exe, this is because when SQL Server uses memory it does not release it unless restarted.
0
 

Author Comment

by:NNOAM1
ID: 39280773
Not the SSMS itself, but the SQL service. Watch this picture - now it's gone up to 210 MB (don't mind the hebrew words and RTL task manager):my task manager right now
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39280785
In SSMS right click on the instance, goto the memory tab and change the max memory to 50mb. This should release a significant amount of memory. If you need to use more just change it back.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39280810
Either that or just stop the SQL Server service when you are not using it...
0
 

Author Comment

by:NNOAM1
ID: 39280836
Is changing the max memory to 50mb going to reduce anything from the good function of SQL server? What are the consequences of such change?
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39280899
Yes, but if you change it back afterwards this is fine. It just allows you to release the used memory.
0
 

Author Comment

by:NNOAM1
ID: 39280912
I just did that and then closed SSMS. when i reopened SSMS I couldn't connent. The error message showed me the way to:
http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=233&LinkId=20476
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39280931
You didnt need to close SSMS. If you stop and start the sql server service do you get the same error?
0
 

Author Comment

by:NNOAM1
ID: 39280980
YES.
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39281084
What if you just try to open a new query instead of using the Object Explorer section? Or maybe trying an osql connection from the command line?
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39281097
Also do you have any other services configured to use this SQL server? The other option might be to start it up in single user mode...
0
 

Author Comment

by:NNOAM1
ID: 39281537
A restart did the thing. Thanks anyway.
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 39281547
Phew, thought I had broken your instance for a minute there... Probably best to raise the max memory a little though.

Did the reduction in max memory size have the desired result though?
0
 

Author Comment

by:NNOAM1
ID: 39281807
Even after the reduction the memory usage of the process remained high as in the beginning. I'll leave it like that.
0
 
LVL 16

Accepted Solution

by:
EvilPostIt earned 2000 total points
ID: 39284210
Unfortunately this is just how SQL Server operates. It is a service after all rather than a development tool like SSMS or Visual Studio.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

650 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