Welcome to ISAserver.org

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

SQL Server (MSDE) Memory Leak

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [ISA Server 2004 Firewall] >> General >> SQL Server (MSDE) Memory Leak Page: [1]
Login
Message << Older Topic   Newer Topic >>
SQL Server (MSDE) Memory Leak - 2.Nov.2004 6:38:00 PM   
mchalo

 

Posts: 1
Joined: 2.Nov.2004
Status: offline
I'm seeing a continual rise in memory use for the sqlservr.exe process on my ISA SERVER 2004 firewall. It keeps eating up resources until the server is almost unresponsive.

I'm running on a new HP DL320 with 1GB of RAM. I'm also running SMTP anti-virus and spam filtering software on the same server. At bootup the RAM usage is low. The memory usage on the sqlservr.exe process for my spam filtering software stays low but the process for ISA Server continues to eat up memory.

Any ideas?
Post #: 1
RE: SQL Server (MSDE) Memory Leak - 9.Nov.2004 7:49:00 PM   
CurtisGF

 

Posts: 30
Joined: 12.Feb.2003
From: Virginia
Status: offline
I have the same problem. Only ting on my ISA box is ISA and now, SurfControl. But I had the problem before SurfControl was installed. I originally planned on moving logging to a separate SQL server and removing the MSDE engine.

Does anyone know if that will resolve the issue?
I know there seem to be a lot of mixed results when moving logging off the ISA server, but something has to be done about the memory issue.

(in reply to mchalo)
Post #: 2
RE: SQL Server (MSDE) Memory Leak - 15.Nov.2004 6:55:00 PM   
jcrowusa

 

Posts: 8
Joined: 9.Nov.2004
Status: offline
Hi Guys,

I don't think i'm experiencing the problem but i'm wondering if it could be something else? I noticed with ISA 2K the memory usage was enormous (half the system memory). With 2k4 I have noticed it is quite a bit lower but I am going to keep an eye on it to see if it gradually increases.

I'm wondering if it could be the caching of content? I figure the more content it caches, the more memory/hard drive it would have to allocate..

How much space have you allocated to caching? Or are you even at all?

Could it be some third party add-in as well?

Regards,

-Jerry

(in reply to mchalo)
Post #: 3
RE: SQL Server (MSDE) Memory Leak - 18.Jan.2005 4:36:00 PM   
Collide

 

Posts: 25
Joined: 16.Nov.2001
Status: offline
I'm seeing the same memory problem with our ISA 2004 server. The server hardware is HP DL380 G4 w/ dual 3.4Ghz CPU and 2GB of RAM. ISA has only been up 3 days since a reboot and the SQLServr.exe process was already eating 1.77GB of memory and climbing. I had to restart the MSDE service to reclaim the memory. This is not good since restarting MSDE also restarts the Firewall service which disconnects active users.

(in reply to mchalo)
Post #: 4
RE: SQL Server (MSDE) Memory Leak - 20.Jan.2005 5:24:00 PM   
eerboe

 

Posts: 5
Joined: 30.Dec.2004
From: USA
Status: offline
We have the same issue. ISA 2k4, 3.0 P4, 1gb RAM. sqlservr.exe is low after boot up , then eventually rises to over 300,000K. Rebooting seems to fix this issue. I know you can cap the total % of memory used by the sqlservr process, but will this affect the whole system?

(in reply to mchalo)
Post #: 5
RE: SQL Server (MSDE) Memory Leak - 14.Sep.2005 4:22:00 PM   
djtag

 

Posts: 49
Joined: 5.Feb.2005
From: Edmonton, Alberta
Status: offline
Has anyone found a resolution to this issue? My system is taking up over 1.1GB and climbing... [Frown]

(in reply to mchalo)
Post #: 6
RE: SQL Server (MSDE) Memory Leak - 14.Sep.2005 4:29:00 PM   
LLigetfa

 

Posts: 2184
Joined: 10.Aug.2004
From: fort frances.on.ca
Status: offline
This has been discussed here often with commands and scripts that will limit the memory consumption posted.

(in reply to mchalo)
Post #: 7
RE: SQL Server (MSDE) Memory Leak - 23.Sep.2005 11:03:00 AM   
Guest
I see in this URL for script to limit MSDE used memory
http://thelazyadmin.com/index.php?/archives/56-Limiting-MSDE-Memory-Usage.html

Posted by R. Buike.

Please try to use that script.

Suksawat A.
Thailand

(in reply to mchalo)
  Post #: 8
RE: SQL Server (MSDE) Memory Leak - 17.Oct.2005 3:58:00 PM   
Guest
Hello:
If you don't want to use OSQL.EXE or the SQL Query Analyzer to modify these memory settings, there's an easier-to-use script for this at www.ISAscripts.org named "ISA_MSDE_Max_Memory.vbs".

(in reply to mchalo)
  Post #: 9
RE: SQL Server (MSDE) Memory Leak - 11.Nov.2005 1:29:14 PM   
MRIS

 

Posts: 58
Joined: 4.Aug.2005
Status: offline
The answer is that there is a memory leak in the SQL server (MSDE) that even if you update the MSDE with Service Pack 4 for SQL Server MSDE, doesn't get resolved. The memory is consumed by a single client connection to the MSDE, which just grows over time and never shrinks. The connection is from the firewall service to the MSDE's master table, and is used exclusively to repeatedly query the database for INANE information such as the full path names of the actual database files it has. It's essentially the firewall service inventorying the database about it's files, quering their size, and how many there are etc etc. However, left unchecked, this client connection's memory allocation just grows and never shrinks. But here is the kicker, simply right-clicking on the connection using enterprise manager and saying "kill connection", does just that. The firewall service doesn't miss a beat and merely reconnects and continues asking it's INANE questions. However all the memory previously occupied by the just-killed connection is released, and the process of the new client connection growing it's RAM use starts again.

So how do you fix it? Easy, there are a few choices:

a. don't use the MSDE for logging, rather just log to text files. - disadvantages is that logging is much poorer under this config, with loss of some reporting features.
b. don't log at all. - disadvantages speak for themselves, but it's a valid option.
c. use a full copy of SQL server instead - disadvantages include that the firewall can't automatically manage the size of the database, this has to be managed manually.
d. Do what I did: Create a SQLAgent scheduled task using enterprise manager that queries the database for any connections that are all of the following:
1. to the master table
2. from the firewall service
3. consuming more than 40MB of RAM.
(it will only ever find one that matches all of these conditions)
- kill it.

That's exactly what's happening here, and it does it on all instances of ISA2004 with SP1 that log to the included MSDE. The people who haven't noticed it yet are happily ignorant of WHY their MSDE sqlservr.exe process is consuming 1.7GB of RAM, merely assuming it's using all that RAM as part of its normal functioning (eg buffers, index tables etc), not realising the subtelty of what's really going on; one buggy firewall services' simple, single connection to the master table repeatedly quering simple stuff that shouldn't need hundreds of megabytes or even GBs of RAM to efficiently process. Also most people don't "limit" the amount of RAM the sql process can consume, allowing it to grow unbound, thus the actual stopping of the firewall service bug doesn't occur within the lifetime of the session and they don't see it (eg they reboot their box every few weeks for other reasons). I only noticed it myself after I had limited the memory allowed for the SQL process to 23MB, causing the memory exhaustion effect to occur within about 3 days on a small 5-user LAN. Once the memory is exhausted, you can't even connect to the MSDE using enterprise manager, and neither can the firewall. So I wrote a script that is automatically run once a day that tracks down this rogue memory-soaked connection from the firewall service to the master table and simply kills it.

(in reply to Guest)
Post #: 10

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [ISA Server 2004 Firewall] >> General >> SQL Server (MSDE) Memory Leak Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts