Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Classic ASP Classes

Reply
Thread Tools

Classic ASP Classes

 
 
ShepardBerry
Guest
Posts: n/a
 
      07-13-2005
I've been working in .NET for some time now and I don't remember specifically
how asp classes are cleaned up in classic asp. I've been put on a Classic
ASP project(ugh) and we're having some serious stability problems. Once we
reach a point of sustained CPU useage of over 80% IIS 6 restarts the w3wp.exe
process which of course terminates all sessions and resets the website. I've
noticed that the previous developer has an include which creates a couple of
class objects in ASP. Not third party or "CreateObject" objects, but ASP
classes. This include is in A LOT of files and the classes not being
destroyed in any of them.

My question is could this be the problem? I seem to remember a problem with
ASP classes and not destroying them causing leaks of some sort. I need to
mention that the memory doesn't seem to be leaking but the CPU utilization
goes wacko as if ASP/IIS is corrupt. My environment is Windows 2k3 and IIS
6. The previous environment was Windows 2K and IIS5. Both environments had
the problem.

Before I go through these hundreds of files I was wondering if anyone
remember what the problem was with ASP classes not being destroyed.

Thanks for any help.

 
Reply With Quote
 
 
 
 
Aaron Bertrand [SQL Server MVP]
Guest
Posts: n/a
 
      07-13-2005
> Before I go through these hundreds of files I was wondering if anyone
> remember what the problem was with ASP classes not being destroyed.


Unknown, wildly speculated. Why leave this open to chance?

If there is an include footer, how hard would it be to add something like
the following code:

If IsObject(ClassName) Then
Set ClassName = Nothing
End If

?


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      07-13-2005
ShepardBerry wrote:
> I've been working in .NET for some time now and I don't remember
> specifically how asp classes are cleaned up in classic asp. I've
> been put on a Classic ASP project(ugh) and we're having some serious
> stability problems. Once we reach a point of sustained CPU useage of
> over 80% IIS 6 restarts the w3wp.exe process which of course
> terminates all sessions and resets the website. I've noticed that
> the previous developer has an include which creates a couple of class
> objects in ASP. Not third party or "CreateObject" objects, but ASP
> classes. This include is in A LOT of files and the classes not being
> destroyed in any of them.
>
> My question is could this be the problem? I seem to remember a
> problem with ASP classes and not destroying them causing leaks of
> some sort.


No. These issues had to do with COM objects created using CreateObject,
specifically ADO COM objects.
See http://blogs.msdn.com/ericlippert/ar...28/122259.aspx

> I need to mention that the memory doesn't seem to be
> leaking but the CPU utilization goes wacko as if ASP/IIS is corrupt.
> My environment is Windows 2k3 and IIS
> 6. The previous environment was Windows 2K and IIS5. Both
> environments had the problem.



I think you need to dl and use iisstate, and post its results to
..inetserver.iis. You can get iisstate from www.iisfaq.com

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
abcd
Guest
Posts: n/a
 
      07-14-2005
I will recommend to use

if isobject(obj) then
if not obj is nothing then
'do something
end if
end if



Aaron Bertrand [SQL Server MVP] wrote:
>> Before I go through these hundreds of files I was wondering if anyone
>> remember what the problem was with ASP classes not being destroyed.

>
> Unknown, wildly speculated. Why leave this open to chance?
>
> If there is an include footer, how hard would it be to add something
> like the following code:
>
> If IsObject(ClassName) Then
> Set ClassName = Nothing
> End If
>
> ?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Times where one would use new style classes vs classic classes Quek Python 3 07-03-2008 05:51 PM
Diff. between Class types and classic classes venk Python 5 11-11-2005 08:52 AM
why are people still using classic classes? Simon Wittber Python 16 01-14-2005 09:53 PM
Classic and New Style Classes? Chris S. Python 5 06-24-2004 02:46 PM
LOOP through an ASP form's pages (not ASP.NET - ASP classic) David A. Beck ASP General 10 04-13-2004 05:38 PM



Advertisments
 



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