473,383 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

asp memory leaks

I am using traditinal asp in IIS6 and seem to be experiencing memory
leaks problems that I did not have or at least did not seem to notice
as much when I was running the same code under IIS5. There may be
unclosed connections/recordsets and/or connections/recrodsets that
have not be set = nothing in the code. Two questions

1. Is IIS6 less forgiving of this?

2. If you do not close recordset or connection objects or set them
equal to nothing is there some sort of garbage collection going on in
asp that will release the memory anyway.
Jul 19 '05 #1
3 4113
"Rob Baker" <ro**********@yahoo.co.uk> wrote in message
news:d3**************************@posting.google.c om...
I am using traditinal asp in IIS6 and seem to be experiencing memory
leaks problems that I did not have or at least did not seem to notice
as much when I was running the same code under IIS5. There may be
unclosed connections/recordsets and/or connections/recrodsets that
have not be set = nothing in the code. Two questions

1. Is IIS6 less forgiving of this? Unlikely 2. If you do not close recordset or connection objects or set them
equal to nothing is there some sort of garbage collection going on in
asp that will release the memory anyway.

Officially, it would not and should not happen, even if you forget to close,
the destructors in COM code, and especially in the super tested and stressed
ADODB system, would close and free resources.

I would suspect, your session usage. Are you storing objects inside the
session? (That system, still does not trigger the destructor code
consequently)...
Another thing, you can configure your IIS application (see COM+ application
pool) to reset after a certain amount of memory usage or after an idle time/

Jul 19 '05 #2
Thanks for the reply. I am not storing objects inside the session.
Perhaps I should be more explicit, the excessive memory usage seemed
to be happening in the sql server process, although since it is only
asp accessing the database I presume the problem originates from the
asp code.

I would suspect, your session usage. Are you storing objects inside the
session? (That system, still does not trigger the destructor code
consequently)...
Another thing, you can configure your IIS application (see COM+ application
pool) to reset after a certain amount of memory usage or after an idle time/

Jul 19 '05 #3
"Rob Baker" <ro**********@yahoo.co.uk> wrote in message
news:d3**************************@posting.google.c om...
Thanks for the reply. I am not storing objects inside the session.
Perhaps I should be more explicit, the excessive memory usage seemed
to be happening in the sql server process, although since it is only
asp accessing the database I presume the problem originates from the
asp code.


sure. If you have been patched against the slammer worm, the excessive usage
must be because of unoptimized SQL statements. And Win2003 is able to
process more asp pages per second, so you also can expect a memory usage
increase for SQL.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Maurice | last post by:
Hi there, I'm experiencing big memory problems on my webserver. First on an old RedHat 7.2 system, now on an other fresh installed Suse 8.2 system: Linux version 2.4.20-4GB...
0
by: Steve Binney | last post by:
My code makes synchronous HttpWebRequest and HttpRebResponse calls. In VS 2003, I am getting memory leaks and event handle leaks. I am closing all streams and using "using"statements. I have...
4
by: Morten Aune Lyrstad | last post by:
Ok, now I'm officially confused. I have a large project going, which uses a win32 ui library I am developing myself. And I'm getting weird memory leaks. I don't know if I can explain what is going...
2
by: Generic Usenet Account | last post by:
I have been using STL for a long time now, without any problems. Recently we generated a purification report on our software using Rational Purify, and we found some memory leaks. My colleague...
8
by: ranjeet.gupta | last post by:
Dear All Is the Root Cause of the Memory corruption is the Memory leak, ?? suppose If in the code there is Memory leak, Do this may lead to the Memory Corruption while executing the program ? ...
0
by: Frank Lopez | last post by:
Does anyone know if Microsoft generated a whitepaper on this topic? Does anyone know what the solution is? (meaning, eliminate the leak problem -- I am seeing three memory leaks from...
4
by: ali.jan | last post by:
Hi, It is trivial to load an assembly in a new Application Domain. Is there any way of loading an assembly in a new process? I tried using the Process class like this: Process p = new...
23
by: James | last post by:
The following code will create memory leaks!!! using System; using System.Diagnostics; using System.Data; using System.Data.SqlClient; namespace MemoryLeak
3
by: Jim Land | last post by:
Jack Slocum claims here http://www.jackslocum.com/yui/2006/10/02/3-easy-steps-to-avoid-javascript- memory-leaks/ that "almost every site you visit that uses JavaScript is leaking memory". ...
16
by: graham.keellings | last post by:
hi, I'm looking for an open source memory pool. It's for use on an embedded system, if that makes any difference. Something with garbage collection/defragmentation would be nice. It should have...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.