473,777 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Memory Leak with classic asp

Hi,

Anyone have any insights on how to debug a memory leak with a classic asp
application? Any thoughts would be appreciated.

thanks!
Bill

Mar 1 '06 #1
8 4364
=?Utf-8?B?QmlsbDQ0MDc 3?= wrote on 01 mrt 2006 in
microsoft.publi c.inetserver.as p.general:
Anyone have any insights on how to debug a memory leak with a classic
asp application? Any thoughts would be appreciated.


Perhaps write a better script?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 1 '06 #2
Bill44077 wrote:
Hi,

Anyone have any insights on how to debug a memory leak with a classic
asp application? Any thoughts would be appreciated.

The people over at .inetserver.iis might be able to provide more assistance.
There's a tool called IISState that I often hear about ...
--
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.
Mar 1 '06 #3
I wish :(

Seems I've inherited a classic asp application with several ten's of
thousands lines of code... with a memory leak... Bounds Checker only works
with managed code... and constructive insight would be greatly appreciated.

thanks,
Bill
"Evertjan." wrote:
=?Utf-8?B?QmlsbDQ0MDc 3?= wrote on 01 mrt 2006 in
microsoft.publi c.inetserver.as p.general:
Anyone have any insights on how to debug a memory leak with a classic
asp application? Any thoughts would be appreciated.


Perhaps write a better script?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Mar 1 '06 #4

"Bill44077" <Bi*******@disc ussions.microso ft.com> wrote in message
news:53******** *************** ***********@mic rosoft.com...
Hi,

Anyone have any insights on how to debug a memory leak with a classic asp
application? Any thoughts would be appreciated.


What exactly do you want to debug?
A COM component?
Or just script?
What language?
Mar 1 '06 #5
Thanks Bob - I'll give it a try!

"Bob Barrows [MVP]" wrote:
Bill44077 wrote:
Hi,

Anyone have any insights on how to debug a memory leak with a classic
asp application? Any thoughts would be appreciated.

The people over at .inetserver.iis might be able to provide more assistance.
There's a tool called IISState that I often hear about ...
--
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.

Mar 1 '06 #6
It's kind of a combination of things including

classic asp with vb script using a sql db
a couple more recent written vb.net and c# components

At this point we have no idea where the memory leak is occuring - although
it seemed to have appeared when the app was migrated from W2k to W2k3. We've
talked about running in IIS5.0 compatibility mode to see if the problem goes
away. But it could be load related.

thanks,
Bill

"Egbert Nierop (MVP for IIS)" wrote:

"Bill44077" <Bi*******@disc ussions.microso ft.com> wrote in message
news:53******** *************** ***********@mic rosoft.com...
Hi,

Anyone have any insights on how to debug a memory leak with a classic asp
application? Any thoughts would be appreciated.


What exactly do you want to debug?
A COM component?
Or just script?
What language?

Mar 2 '06 #7

"Bill44077" <Bi*******@disc ussions.microso ft.com> wrote in message
news:8D******** *************** ***********@mic rosoft.com...
It's kind of a combination of things including

classic asp with vb script using a sql db
a couple more recent written vb.net and c# components

At this point we have no idea where the memory leak is occuring - although
it seemed to have appeared when the app was migrated from W2k to W2k3.
We've
talked about running in IIS5.0 compatibility mode to see if the problem
goes
away. But it could be load related.


If you want to debug manually, (with step-trace) you can attach visual
studio to W3WP.exe, the correct process that hosts your site.

put source code and .pdb files in your website as well.

Just put some
System.Diagnost ics.Debugger.Br eak(); statements in components that you want
to view.
But the best way, is to test components one by one. How? Have one classic
asp run one c# component and run it using a http load emulator.

Mar 2 '06 #8
=?Utf-8?B?QmlsbDQ0MDc 3?= wrote on 02 mrt 2006 in
microsoft.publi c.inetserver.as p.general:
"Evertjan." wrote:
=?Utf-8?B?QmlsbDQ0MDc 3?= wrote on 01 mrt 2006 in
microsoft.publi c.inetserver.as p.general:
> Anyone have any insights on how to debug a memory leak with a
> classic asp application? Any thoughts would be appreciated.
>
Perhaps write a better script?


[please do not toppost on usenet]
I wish :(

Seems I've inherited a classic asp application with several ten's of
thousands lines of code... with a memory leak... Bounds Checker only
works with managed code... and constructive insight would be greatly
appreciated.


I do not think ASP pages should have that many lines,
so my idea still stands.

Try to devide the problem, giving the user intermediate results.

And look for unnecessary repeats, string concatenations and executions in
loops.

Perhaps the amount of memory needed runs out?

Then set breakpoints:

debug = true
......
if debug then response.write "bp 17: " & a &" " & b : response.end

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 2 '06 #9

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

Similar topics

2
4958
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 claims that some of the memory leaks are due to the fact that "STL is wrought with memory leaks". Of course I disagree. I think that there are no "inherent leaks" with STL, but if used improperly, leaks will occur. One common source of leak that...
1
1906
by: mark.engelberg | last post by:
I am having trouble identifying the source of a memory leak in a Windows Python program. The basic gist is as follows: 1. Generate a directed graph (approx. 1000 nodes). 2. Write the graph to a file. 3. Use the os.system command to invoke another program which processes the graph file (graphViz), and generates a gif image of the graph. 4. Use another os.system command to delete the intermediate file, which is no longer needed. 5. Append...
8
3414
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 ? In nut shell, what is/are the realtion/s between the Memory Leak and Memory Corruption. Juts Theoritical Assumtion below:
17
4815
by: José Joye | last post by:
Hi, I have implemented a Service that is responsible for getting messages from a MS MQ located on a remote machine. I'm getting memory leak from time to time (???). In some situation, it is easier to reproduce (e.g.: remote machine not available). After about 1 day, I get a usage of 300MB of memory. I have used .NET Memory Profiler tool to try to see where the leak is located. For all the leaky instances, I can see the following (I...
20
8119
by: jeevankodali | last post by:
Hi I have an .Net application which processes thousands of Xml nodes each day and for each node I am using around 30-40 Regex matches to see if they satisfy some conditions are not. These Regex matches are called within a loop (like if or for). E.g. for(int i = 0; i < 10; i++) { Regex r = new Regex();
23
4571
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
2
1757
by: BruceDM | last post by:
We have an webservice application that has a memory leak when the application is compiled release mode. However, when the application is compiled in debug mode it does not exhibit a memory leak. We are running .net 1.1 compiled with VS 2003. The application does reference an unmanaged dll that provides security functionality. This dll is instantiated once and referenced on every web service call.
3
3759
by: Florin | last post by:
Hi all, I have a problem related to memory grow on a server application which is basically stateless (I have some static info loaded). The client accesses this server using remoting and it has worked for about 2 years without problems. The problem I have encountered lately is that the memory on server side started to grow and not to be released. I have checked first new functionalities but after isolating these on separate server, the...
22
9364
by: Peter | last post by:
I am using VS2008. I have a Windows Service application which creates Crystal Reports. This is a multi theaded application which can run several reports at one time. My problem - there is a memory leak someplace. I can not detect the memory leak by running several reports by hand, but when I run tha app as a servrice and process few hundred reports there is significant memory leak. The application can consume over 1GB of memory where it...
0
9628
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10292
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10061
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8954
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5368
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.