ASP - Not closing objects
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15966
Printed Date: 31 March 2026 at 5:13am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: ASP - Not closing objects
Posted By: Gullanian
Subject: ASP - Not closing objects
Date Posted: 24 July 2005 at 11:44am
Hi all,
If a page doesn't close an object, as I understand it will stay in
memory. I want to just keep a check to make sure this isn't
happening, so what I would like to know is which process in the task
manager holds the objects? I just want to check it's not
continually rising over a period of time.
Tom
|
Replies:
Posted By: Mart
Date Posted: 24 July 2005 at 12:09pm
|
ASP runs as an ISAPI module so I'm guessing inetinfo.exe
|
Posted By: theSCIENTIST
Date Posted: 24 July 2005 at 1:08pm
Aren't the objects released when the script timesout?
Strangely Microsoft recomends 8 mins but IIS has 20 mins by default, you could also set it lower, but becareful here as some scripts need time to execute.
------------- :: http://www.mylittlehost.com/ - www.mylittlehost.com
|
Posted By: dpyers
Date Posted: 24 July 2005 at 2:15pm
The objects are session based so you can always explicitly close the
session which is a good practice if you have a "Logout" button.
Doesn't necessarily mean that the objects are immediately released
though. Session cleanup is a background process that happens when the
server feels it has the time and inclination.
8-10 minute session timeouts are probably adequate for the vast
majority of sites. The exception would be sites where usere may need to
enter a lot of info through a form or CMS. Nothing worse than typing a
page or two only to find you lost it upon submit because your session
timed out.
-------------
Lead me not into temptation... I know the short cut, follow me.
|
|