Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   asp memory leaks (http://www.velocityreviews.com/forums/t791806-asp-memory-leaks.html)

Rob Baker 11-25-2003 10:13 AM

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.

Egbert Nierop \(MVP for IIS\) 11-25-2003 11:13 AM

Re: asp memory leaks
 
"Rob Baker" <rob_baker123@yahoo.co.uk> wrote in message
news:d3c6c67d.0311250213.699ac04c@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/


Rob Baker 11-25-2003 02:15 PM

Re: asp memory leaks
 
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/


Egbert Nierop \(MVP for IIS\) 11-26-2003 09:20 AM

Re: asp memory leaks
 
"Rob Baker" <rob_baker123@yahoo.co.uk> wrote in message
news:d3c6c67d.0311250615.62cd3545@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.



All times are GMT. The time now is 10:52 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57