469,572 Members | 1,509 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

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 3873
=?Utf-8?B?QmlsbDQ0MDc3?= wrote on 01 mrt 2006 in
microsoft.public.inetserver.asp.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?QmlsbDQ0MDc3?= wrote on 01 mrt 2006 in
microsoft.public.inetserver.asp.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*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.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*******@discussions.microsoft.com> wrote in message
news:53**********************************@microsof t.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*******@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.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.Diagnostics.Debugger.Break(); 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?QmlsbDQ0MDc3?= wrote on 02 mrt 2006 in
microsoft.public.inetserver.asp.general:
"Evertjan." wrote:
=?Utf-8?B?QmlsbDQ0MDc3?= wrote on 01 mrt 2006 in
microsoft.public.inetserver.asp.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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Generic Usenet Account | last post: by
1 post views Thread by mark.engelberg | last post: by
8 posts views Thread by ranjeet.gupta | last post: by
17 posts views Thread by Josť Joye | last post: by
20 posts views Thread by jeevankodali | last post: by
23 posts views Thread by James | last post: by
3 posts views Thread by Florin | last post: by
22 posts views Thread by Peter | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.