Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Why is my memory usage so high on my new website?

Author  Topic 

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-27 : 00:26:49
I find myself constantly checking the memory usage on the site adxtactical.com Its always running 400+MB out of 512 MB. A few times I had to reset the server because I was starting to get error messages in my Control Panel and on the website (New Session Failed errors in the browser).

It is just one site running on one SQL Database. Does this seem a bit high? GoDaddy.com won't let me upgrade my RAM on my Virtual Server because I "Have to purchase a dedicated plan to get more RAM".

Do I have any options? Are there some apps I could maybe install to manage the memory usage or help it?

I don't want to have to sit at the PC all day and monitor it =)

BTW, what causes memory usage? Traffic?

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-27 : 00:42:09
How big is the database?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-27 : 00:47:47
About 22MB
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-27 : 12:55:10
Then 400+MB is outrageous for SQL Server to consume. Have you checked Task Manager or Performance Monitor to see what process is consuming the memory? I highly doubt it's going to be SQL Server for such a small database.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-27 : 12:55:28
I have a feeling you've got a memory leak in your web application.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-27 : 18:09:25
Hi Tara -

Thank you for the reply.

What steps should I take to diagnose and resolve this issue?

GoDaddy.com is telling me to purchase a 'Dedicated Plan' so I can upgrade my memory.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2009-01-27 : 18:19:40
Have you verified which process is actually using the memory? Is it SQL Server, IIS, or something else?



CODO ERGO SUM
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2009-01-27 : 18:24:25
first check if you're really having a problem with sql server consuming too much memory or your IIS proces w3wp.exe.
if it's iis then you have a problem with your app code and not sql server.
if so then i'd suggest that you run a .net profiler and profile your app for memory leaks.
there are 2 that i used. one is redgate's ANTS profiler and the other is scitech's .net profiler.
for memory problems i prefer the scitech's but redgate's for performance problems.
both have 14-dy trial version which should be enough for you to find your problem.


___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.1 out!
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-27 : 18:24:34
He is the response from GoDaddy.com

We also show that you have installed SQL Server 2005 on the server at this time. We do not suggest using the full version of this software on the virtual dedicated servers as it is resource intensive. You may want to install SQL Server 2005 Express Edition on the server instead, this version is less resource intensive. We were able to see that the SQL Server process by itself was using 187 MB of RAM on the server.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2009-01-27 : 18:25:26
simply open the task manager on your virutal server and check.

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.1 out!
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-27 : 19:16:12
yes, I confirmed it is SQL Server that is taking up all the memory. Looks like I need to move to SQL Express.

This is my first server I have ever set up and ran. How difficult/time consuming would it be to install SQL Server Express and remove the old SQL Server, while still keeping the same SQL Database?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-27 : 20:00:13
Does anyone believe that SQL Express is going to use less memory than a full version of SQL Server? I'm not buying what the hosting company is saying, but I guess it's worth a try.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-27 : 20:04:17
Tara -

I thought that SQL Express was what was already installed on my server. I just logged in and checked, and I AM running SQL Express already, not SQL Server? Now Im really confused
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-01-27 : 20:05:52
I'd let your hosting company know that you are using SQL Express already and see what they say.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

BlackReefDesigns
Starting Member

27 Posts

Posted - 2009-01-27 : 20:32:50
ok, I sent them a reply to the support ticket. Am on standby right now until I hear back
Go to Top of Page
   

- Advertisement -