red-gate-ants

.NET application memory usage - high unused .NET and unmanaged memory and fragmentation

淺唱寂寞╮ 提交于 2019-12-21 17:02:34
问题 I am using ANTS memory profiler to diagnose an increase in memory leak I am facing in one of my .NET 2.0 applications. I took 7 snapshots of the process over a period of 7.5 hours, and here is a tabular representation of the data obtained - G1 reprsents generation 1 size and G2 generation 2 size. Except for the unmanaged space and private bytes, all other values are in MB. My questions are - Why is there such high unused .NET space even when the heap sizes are low ? My large object heap goes

.NET application memory usage - high unused .NET and unmanaged memory and fragmentation

前提是你 提交于 2019-12-04 06:59:59
I am using ANTS memory profiler to diagnose an increase in memory leak I am facing in one of my .NET 2.0 applications. I took 7 snapshots of the process over a period of 7.5 hours, and here is a tabular representation of the data obtained - G1 reprsents generation 1 size and G2 generation 2 size. Except for the unmanaged space and private bytes, all other values are in MB. My questions are - Why is there such high unused .NET space even when the heap sizes are low ? My large object heap goes to a maximum of some 2 MB, and during the last 3 snapshots remains at 96 KB. Then why is there such

W3WP.EXE using 100% CPU - where to start?

删除回忆录丶 提交于 2019-12-03 00:45:54
问题 An ASP.NET web app running on IIS6 periodically shoots the CPU up to 100%. It's the W3WP that's responsible for nearly all CPU usage during these episodes. The CPU stays pinned at 100% anywhere from a few minutes to over an hour. This is on a staging server and the site is only getting very light traffic from testers at this point. We've running ANTS profiler on the server, but it's been unenlightening. Where can we start finding out what's causing these episodes and what code is keeping the

W3WP.EXE using 100% CPU - where to start?

牧云@^-^@ 提交于 2019-12-02 14:13:57
An ASP.NET web app running on IIS6 periodically shoots the CPU up to 100%. It's the W3WP that's responsible for nearly all CPU usage during these episodes. The CPU stays pinned at 100% anywhere from a few minutes to over an hour. This is on a staging server and the site is only getting very light traffic from testers at this point. We've running ANTS profiler on the server, but it's been unenlightening. Where can we start finding out what's causing these episodes and what code is keeping the CPU busy during all that time? Standard Windows performance counters (look for other correlated

Unregistered event handlers cause memory leak

女生的网名这么多〃 提交于 2019-11-30 13:22:30
问题 I'm maintaining a web application that has a memory leak. Based on my investigation using Red Gate ANTS memory profiler I'm pretty sure that the memory leak is caused by event handlers in the business layer. There's a collection that registers an event handler on each item that's added so that the collection can re-sort when the item's date is changed. It appears that this event handler is the culprit. The business layer for this application is quite complicated, so keeping the collection and

Unregistered event handlers cause memory leak

故事扮演 提交于 2019-11-30 07:11:02
I'm maintaining a web application that has a memory leak. Based on my investigation using Red Gate ANTS memory profiler I'm pretty sure that the memory leak is caused by event handlers in the business layer. There's a collection that registers an event handler on each item that's added so that the collection can re-sort when the item's date is changed. It appears that this event handler is the culprit. The business layer for this application is quite complicated, so keeping the collection and its items in memory drags a bunch of other objects with it. I've implemented IDisposable on the