Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2006, 11:52 PM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

We are also experiencing the same issue, total OS memory gets to only 20mb or so free, and the performance is terrible. A server restart gives us 700mb free, and performance is a lot better.
It is now part of our schedule to restart the server twice a week.
 
Old May 23rd, 2006, 06:28 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

just my two cents on the subject.

Rule number one of being a DBA. DON'T run your programmers application on the SQL server. The SQL server should be that and only that, a SQL server. If you separate the SQL server and the app server (dot not server) you will find where the memory issues are. If you need to reboot the web/dot net server and not the SQL server you can see where the issue is.

If your application has memory leaks, your application will take the memory away from the SQL server requiring reboots. If you isolate the code its easier to find the problem source.

Generally SQL does a fairly good job of managing memory. I don't totally agree with previous posts about dynamic memory management. If I have three gigs available to a SQL server I give two if it minimum to the SQL server. This way the OS always has a gig, and SQL always has two then they can manage their allotted memory without constant swapping back and forth. MS is supposed to write code that manages memory and allows swapping but I find I can't trust it. Also the Win OS takes for ever and a day to finally release memory when your done with it.

There is overhead in memory management if you keep giving and taking away memory to the SQL server. You will see better performance if this overhead is removed by fixing the amount of memory allocated to the SQL server.

Lets hope we never work on the same shop where you want to install your applications on the same box as MY SQL server. Heads will roll!!! Memory leaking web code or dot not code should not be allowed to pollute a clean SQL environment.

MS has historically poor memory management routines going back to the dos days. So my suggestion don't trust their memory management code any more that you have to.

Hope this helps...

The anal DBA,
Rob

 
Old June 1st, 2006, 06:39 PM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply Rob, but didn't really help other than the suggestion to restrict the amount of memory that is available to SQL Server, this could be worth a shot. The server running SQL server is dedicated to only SQL server.

Ashley
 
Old June 7th, 2006, 03:45 PM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 385
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If your not running any applications on your SQL server I would look into what other than SQL you have running (possibly infected with a virus?). My bet is that the SQL server may be running out of memory but its not SQL thats causing it. Restricting memory to a fixed amount should help in determining this.






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server Management Studio Error! everest SQL Server 2005 0 August 14th, 2008 12:13 PM
Custom Memory Management lacos C++ Programming 0 February 21st, 2008 03:56 AM
mysql memory management kamakshiganesh MySQL 0 September 24th, 2007 04:47 AM
FileUpload Memory Management Question dparsons ASP.NET 2.0 Professional 0 February 21st, 2007 10:22 AM
Cant Open SQL Management Studio sahmed1983 BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 January 8th, 2007 02:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.