Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Critical Memory Use Problem
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 10 December 2002 :  18:26:12  Show Profile  Visit Gremlin's Homepage
The default install for SQL places it memory usage into dynamic mode, as HuwR's said basically that leaves it free to use between 4Mb and roughly all the system has got, never a good thing especially if its actually on the same machine as the IIS Server. imo a well tuned SQL Server should never be left in Dynamic mode, you need to make sure theres headroom left on the server for the OS and anything else that may be running on it.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 10 December 2002 :  18:35:32  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message
Thank you for all the input, I'll direct the end user to this discussion :)

Reinsnitz (Mike)
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 10 December 2002 :  19:06:17  Show Profile  Visit dayve's Homepage
I have 1.5 gigs of RAM running a P4 2.53 Ghz processor and like I said, I expect SQL Server to use a huge portion of it, but I am losing RAM and not reallocating it back. It will basically drain out completely in a sense within 24 hours! I'm trying to figure out if it is a hardware or software issue right now.

As for setting SQL Server memory, I am re-examining my settings which I have tweaked in the past as described above. I have also tweaked my IIS. One unfortunate thing is my home setup does not really allow me to host the SQL Server separately on its own machine so YES, it is on the same box as my IIS but that has not caused me issues in the past and I've been doing this from home for about 2 years now. Its just recently that things took a turn for the worst. Its manageable but I want to find and resolve the issue.

I manage 3 SQL Servers at work with some pretty meaty applications on top of them. The hardware is quite similar to what I am using at home and I do not experience the problems with the memory. I am totally shutting down my forum on the 12th to do some additional testing so as to eliminate IIS, SQL and any bad coding I may have. I suspect I will still be leaking memory but I need to confirm this. Once I do, I will start looking a little closer at my Install and Hardware setups.



Edited by - dayve on 10 December 2002 19:20:51
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 December 2002 :  19:21:51  Show Profile
dayve, forumco.com had the same problem recently, it ended up being a bad hard drive I believe. Are you getting a lot of errors in your logs relating to SQL Server?
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 10 December 2002 :  20:50:31  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
I have had this same SQL memory problem. Are you running SQL 7? After reading a lot on the problem I found that it's a known issue with SQL 7. The only way we could resolve the problem was to limit how much memory the server could use.

@tomic

SportsBettingAcumen.com
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 10 December 2002 :  21:54:03  Show Profile  Visit dayve's Homepage
richard: very interesting... I've been suspecting one of my hardrives having issues due to what I thought was unrelated but now I have another lead to look into. I am going to review my logs again a bit closer.

@tomic: SQL 2000 Enterprise

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 10 December 2002 :  22:16:55  Show Profile  Visit HuwR's Homepage
I also had problems with SQL and a dodgy Hard disk, sql would suffer from a bout of dead locking, which after investigation corresponded almost exacly with a series of disk errors reported in the server logs, I shifted all the data and it has been fine since then.
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 11 December 2002 :  00:23:21  Show Profile
Another possible culprit could be a for-next loop which never closes - that will gobble memory like no other programming issue.
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2002 :  00:27:48  Show Profile  Visit HuwR's Homepage
iterating through a recordset with doing an rs.movenext is another good one
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 11 December 2002 :  01:12:22  Show Profile  Visit dayve's Homepage
okay, I was playing around and when I used the Service Manager and Stop the services and then restart the services, the available memory jumps way up. Of course it begins to dribble down ever so slowly but this is kind of an indicator that something is wrong with my sql setup.

for example. my available memory was 1 gig but within 1 hour it would crawl down to 875 meg. I stop sql server and it jumped up to 990 meg and then within an hour it crawls down to about 865 meg. kind of weird...

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2002 :  01:18:32  Show Profile  Visit HuwR's Homepage
This is normal behaviour for SQL, what limits do you have set for SQL is it dynamic, or does it have a set size ?

The SQL server will do this untill it has all the memory it things it needs, if you have set the limt at 512Mb, it will climb steadily until it has claimed 512Mb, if it is dynamic, it will climb each time it requires some more.

It normally takes the SQL server here after startup about 30 mins to reach 1.5Gb of ram, since that is what I have given it.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 11 December 2002 :  11:17:30  Show Profile  Visit dayve's Homepage
*** sees the light ***

I have it set a bit higher than I should, just set it to 512MB now. I should have known this. Thanks for all the help with reviewing my environment. I have to stop assuming Defaults are fine.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2002 :  13:51:36  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by dayve

*** sees the light ***

I have it set a bit higher than I should, just set it to 512MB now. I should have known this. Thanks for all the help with reviewing my environment. I have to stop assuming Defaults are fine.


No probs, that what we're here for
Go to Top of Page

Reinsnitz
Snitz Forums Admin

USA
3545 Posts

Posted - 11 December 2002 :  18:36:44  Show Profile  Visit Reinsnitz's Homepage  Send Reinsnitz an AOL message  Send Reinsnitz an ICQ Message  Send Reinsnitz a Yahoo! Message

Subject: RE: ISP Use
Date: Tue, 10 Dec 2002 22:14:35 -0800
From: "SBWH.com Support" <support@sbwh.com>

Thanks for you help on this, I will try to post this reply later, since my login is not valid yet. (sbwh)

Sorry for the confusion on this, I was not clear on the problem. We often get messages that a forum no longer works, and when we check, the message is that the database (ms access 2000) may be damaged. (I forget the exact message). The server is often under a short heavy load before this error.

We had an unrelated problem, did some memory dumps, and I got the message below from Microsoft. I mistated that Microsoft said Snitz was trying to access protected or critical memory space.

From MS:

I found atleast 7 threads trying to enter critical section. but, the thing is that it looks like they are entering it and coming out immediatley and I am trying to find of the owing thread of critical section.

All these threads are trying to precess following ASP pages.
(edited to remove unlreated threads)
0:019> !asppages
Thread 19: F:\WWWROOT\WEAPON-SHAPED\FORUM\TOPIC.ASP
Thread 33: F:\WWWROOT\WEAPON-SHAPED\FORUM\TOPIC.ASP
Thread 44: F:\WWWROOT\WEAPON-SHAPED\FORUM\TOPIC.ASP

David
support@sbwh.com

Santa Barbara Web Hosting, Inc.
http://www.sbwh.com

Reinsnitz (Mike)
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 11 December 2002 :  19:35:49  Show Profile  Visit HuwR's Homepage
sounds like and db driver problem to me, or an overloaded access database, how big is the db, how many concurrent users does he get
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07