Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a complex web application that keeps increasing aspnet_wp.exe memory usage. Even when the web app is no longer being used, the memory usage does not decrease. CLR never reclaims the memory, even after several days. I suspect that there are unmanaged resources that are not being released. The app is only partially written by me, so there are 1,000s of lines of code that I don't want to dig in to.

 

Is there a way to view what objects are being held in memory?

 

Thanks,

Rick Deigsler

  • *Experts*
Posted

There are a couple of known bugs that will cause memory leaks in aspnet_wp.exe, I'd check htt://support.microsoft.com for info there.

 

I've only used memory tools for local projects - haven't had the need to do so on a webserver. If you search Google for something like "memory leak ASP.NET" or just "memory leak .NET" you get a lot of good hits.

 

I did have one ASP.NET app that was, by itself, killing the webserver by eating up too much memory. It was a webpage that was trying to load a DataSet with about 6 million rows (bad WHERE clause, BAD!). Combine all that memory with the fact that we had the threshold for memory set too high and the machine would just hang. You can specify a value on the webserver that will reset IIS (or maybe it just kills aspnet_wp.exe, I can't remember) when memory hits a certain upper limit. On our DEV server this was something like 99999999999 or the equivalent (our IS guy laughed when he saw it).

 

-ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...