Solved

Windows Server 2003 /  SQL Server 2005 potential Memory issue

Posted on 2008-10-07
9
836 Views
Last Modified: 2012-05-05
Hi,

We have a dedicated server with the following spec:

CPU      Opteron 1216 HE DC
CPU-Details      2 x 2,4 GHz
RAM      2 GB
Hard Drives      2 x 250 GB
Unlimited Traffic      
100 MBit bandwidth      

On the server we only have website files (40MB) in wwwroot and a one SQL Server 2005 database which has 12 tables, only one of which Id consider large, which all of the website pages connect to for content.

There is 6.5GB of free space on the C: drive (though itll be back up to about 8.5GB when Ive completed this weeks clearance of mailroot\badmail folder contents) but the server keeps running out of RAM.

Im currently setting up user registration for the site, which involves sending out automatic verification emails, but I keep getting the following error when completing the ASP.Net 2.0 form and the email tries to send:

Insufficient system storage. The server response was: 4.3.1 Out of
memory

If I reboot the server and clear the RAM the emails send without any errors for a short time, before the problem returns.

Ive reported this to the server providers and they believe it is a RAM problem, backed up by the fact that after a few days without a reboot, remote desktop connections to the server are slow and the site itself can run quite slowly (pages taking a while to load)

The server providers solution is obviously to upgrade our package, but is there anything you can suggest doing to the memory usage of SQL server or the server itself to reduce this problem? Or CPU usage?

As I only have remote desktop connections to the server I can not access the Windows Task Manager to check on memory usage.

Thank you for any help you can offer
0
Comment
Question by:jedisteve
  • 6
  • 2
9 Comments
 
LVL 11

Accepted Solution

by:
willettmeister earned 500 total points
Comment Utility
You actually can check task manager through rdp.  Just right click on the task bar and choose task manager from there.  You could also use performance monitor to check memory.  

It sounds like there is a memory leak in one of you apps though.  I would guess it has to do with the web forms that you are using since there aren't any memory leaks in sql (that I know of correct me if I am wrong).  

I would set up a a time to test.  reboot your server so it is clean set up some memory performance montiors and see what happens to the memory as you preform seperate task.  I would guess that you will find one that is accessing memory and then not releasing it.
0
 

Author Comment

by:jedisteve
Comment Utility
Thank you for getting back to us, I have now been able to access the task manager

I will do as you suggest when I get in, in a couple of hours and post what I find.

The current CPU usage is between 4-8% and the PF Usage is 808MB
0
 
LVL 63

Expert Comment

by:SysExpert
Comment Utility
What is the commit Charge status for total,  and peak.

If total . RAM, then you are swappig to disk, and that is not a good thing.

You may need to limit how much SQL is using and/or go through and disable any non essential services etc.

 
I hope this helps !
0
 

Author Comment

by:jedisteve
Comment Utility
Hi SysExpert thanks your help, here are the commit charge details:

Total 762880
Limit 2470624
Peak 875080

sorry i don't really know what that means? good, bad, alright?

okaying the server reboot with everyone and I'll test my form memory use shortly

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 63

Expert Comment

by:SysExpert
Comment Utility
Well it means that at the monent you have only used at peak 875080 KB of RAm.
How long has it been up ?

You should keep an eye on this, and if needed, also run Perfmon ( performance monitor ) in Log mode to check resource usage.
see the perfmon help for details and best practicces

 
I hope this helps !
0
 

Author Comment

by:jedisteve
Comment Utility
it was last rebooted on Saturday, thanks
0
 

Author Comment

by:jedisteve
Comment Utility
I think it might be do with the PF Usage...

before the reboot the PF Usage was 785MB and the email wouldnt send
after reboot the PF Usage was 383MB
30mins after reboot and sending one email PF usage was 558MB
then after another email and a few minutes it's 595MB
now about 10 mins later (no emails sent) it's 609MB
0
 

Author Comment

by:jedisteve
Comment Utility
..while this has been happening the site has been live and people have been using it. it could be do with poor coding in other .Net pages where I havent used stringbuilders
0
 

Author Closing Comment

by:jedisteve
Comment Utility
thanks all your help willettmeister re: getting into task manager
it was a FP problem
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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.

762 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

9 Experts available now in Live!

Get 1:1 Help Now