We’ve been using ‘Drip’ to try and identify why pages with UpdatePanels in them tend to use a lot of client-side memory. With a page with a regular postback, we are seeing 0 leaks detected by Drip. However, when we add an update panel to the mix, every single DOM object that is inside of the update panel appears to leak (according to Drip).
I am not certain is Drip is reliable enough to report these kinds of things – the reported leaks do seem to indicate Drip is modifying the page slightly.
Does anyone have any experience with this? Should I panic and stop using Microsoft Ajax? I’m not above doubting Microsoft, but it seems fishy to me that it could be this bad.
Also, if you know of a tool that is better than Drip, that would be helpful as well.
According to ASP.NET AJAX in Action, p. 257
So as far as I know, any asp.net ajax components within the update panel are disposed to prevent memory leaks, but anything else in there will just be replaced with the html received.
So if you don’t have any asp.net ajax components in the target container for the response, it would be basically the same as an inner html replacement with any other js framework / ajax request, so i would say that it’s just the how the browser handles this, rather than asp.net ajax causing this.
Also, while it may be ‘leaking’, it may be by design, meaning that the browser might not have reclaimed the dom elements yet and released them. Also, drip might be causing those to leak, as it is attaching to those dom elements.