|
I wrote C++ for 10 years. I encountered memory problems, but they could be fixed with a reasonable amount of effort.
For the last couple of years I've been writing C#. I find I still get lots of memory problems. They're difficult to diagnose and fix due...
Started by Scott Langham on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
ExcellentI....
And taking a memory dump of the process using adplus , then use windbg and the sos plugin wonderful walkthroughs using windbg and other tools to track down memory leaks of all types.
|
|
I'm looking into why a managed process is using a lot of memory. Is there a way to run GC.Collect(3) from WinDbg, so that I can focus on the actual memory allocation?
Started by Roger Lipscombe on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
See Rico Mariani's Performance Tidbits - Tracking down managed memory leaks (how to rely on for ....
Additional it is necessary.
To find a GC leak) for information about finding out what kind of stuff is on your heap.
|
|
I'm finding leaked heap blocks by using the following command in WinDbg
!heap –l
With each leaked heap block I get, I'm running to following to get the stack trace.
!heap -p -a leakedheapblock
The following is the result of this command:
address 1c841...
Started by Julian on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There is a nice guide about this in MSDN: Memory Leak Detection Enabling.
|
Ask your Facebook Friends
|
I'm learning C#. From what I know, you have to set things up correctly to have the garbage collector actually delete everything as it should be. I'm looking for wisdom learned over the years from you, the intelligent.
I'm coming from a C++ background ...
Started by Jeremiah on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
"SOS" is one of the easiest routes; you can use ....
using .NET Memory Profiler
.NET Memory Profiler is a powerful tool for finding memory leaks graphs alive For investigating memory leaks...
|
|
I have a crash dump of an application that is supposedly leaking GDI. The app is running on XP and I have no problems loading it into WinDbg to look at it. Previously we have use the Gdikdx.dll extension to look at Gdi information but this extension is...
Started by Jack Bolding on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Finding resource leaks the same variable that leaks the memory, and you're lucky, you could see the last place it find....
Magazine/cc188782.aspx
In WinDbg, you may also try the !poolused command for some information.
|
|
My app was using 150mb of memory not to long ago, now it is at 286mb. It slowly rises so i must be forgetting to dispose something. This isnt much of a problem for me since i have 4gb but i want to send this to others who have only 1gb of ram. other then...
Started by acidzombie24 on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Easily identify memory leaks by collecting and comparing snapshots of .NET memory Snapshots include.....
These have the advantage of being free.
Memory_Leak_Detection.aspx
You can also use WinDbg and SOS.
|
|
I have a WPF app that among other things display a lot of images, large and small. My problem is that the app uses a lot of memory and I cannot figure out where it's coming from.
The scenario, when stressing the app some I get this graph in perfmon:
The...
Started by andyhammar on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
From the information in your question it is difficult to assert what have a memory....
When troubleshooting managed memory leaks with WinDbg I do the following:
Get mean that you have a memory leak.
May be wrong.
|
|
I'm having a peculiar issue where IIS7 has decided to load a massive amount of memory for an otherwise small web page. on each request it adds between 2 and 20MB of memory to the process and I can't for the like of me figure out why. I've looked extensively...
Started by Middletone on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
What you need is a memoryAre you putting any objects into the session variables?
Finding the source of the memory isn't reaching a request limit .
Than using WinDBG to track what the memory is being allocated to.
|
|
Hello, I am on the lookout for good .NET CLR memory profiling tools.
My key requirement is that it will play well with IIS and standalone CLR Apps. Ideally I would see what objects are allocated, where they are allocated and what size they are?
Does anyone...
Started by nick_alot on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Memory Profiler is a powerful tool for finding memory leaks and optimizing the memory usage Memory Profiler
Real-time analysis feature Excellent how-to videos on their web sites Easy to use-click filters....
|
|
I have come to realize that Windbg is a very powerful debugger for the Windows platform & I learn something new about it once in a while. Can fellow Windbg users share some of their mad skills?
ps: I am not looking for a nifty command, those can be found...
Answer Snippets (Read the full thread at stackoverflow):
Having the currect numbers you can then use windbg's .heap....
Instead use DebugDiags memory reporting.
Using it to diagnose .NET memory leaks, with SOS.
Block by Slava Oks (Microsoft C++ specific).
|