473,395 Members | 1,595 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,395 software developers and data experts.

Classic ASP Classes

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.

Jul 22 '05 #1
3 5974
> 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

?
Jul 22 '05 #2
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.
Jul 22 '05 #3
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

?

Jul 22 '05 #4

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

Similar topics

5
by: Chris S. | last post by:
I'm generating the source of an object from a list of objects. Therefore I need to determine if the object is a class definition (i.e. 'def something(whatever):') or a class instance (i.e....
0
by: Skip Montanaro | last post by:
If I have a new-style class what are the restrictions that keep me from going back to a classic class? I know use of __slots__, __new__ or the property() builtin make new-style a requirement. ...
16
by: Simon Wittber | last post by:
I've noticed that a few ASPN cookbook recipes, which are recent additions, use classic classes. I've also noticed classic classes are used in many places in the standard library. I've been...
5
by: venk | last post by:
Hi, can some one properly explain the differences between class types and classic classes? ... Still face problems in identifying what is what.
4
by: DaveM | last post by:
Although I've programmed for fun - on and off - since the mid 70's, I'm definitely an OO (and specifically Python) beginner. My first question is about global variables. Are they, as I'm starting...
6
by: bertgoos | last post by:
Hey, I have the following code that has to send every command it receives to a list of backends. Instead of: class MultiBackend(object): """Renders to multiple backends""" def __init__(self,...
3
by: Daniel Nogradi | last post by:
I used to have the following code to collect all (old style) class names defined in the current module to a list called reg: def meta( reg ): def _meta( name, bases, dictionary ): reg.append(...
4
by: Isaac Rodriguez | last post by:
Hi, This is probably a very basic question, but I've been playing with new style classes, and I cannot see any difference in behavior when a declare a class as: class NewStyleClass(object): ...
26
by: momobear | last post by:
hi, I am puzzled about how to determine whether an object is initilized in one class, anyone could give me any instructions? here is an example code: class coffee: def boil(self): self.temp =...
4
by: Quek | last post by:
Hi all, I'm really new to Python and I've been reading up some texts on older versions of Python (2.2 to be specific). The text briefly mentioned new style and classic classes. I'd really...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.