Reputation: 73
I am using COM and XML parser provided by Microsoft to parse some 20 XML files. The application also uses the API provided by the libraries to parse the XML document.
The MSXML3.0 parser seems to be consuming huge amount of memory for cache (garbage collection). Even the the concept of garbage is to refer the same XML document in cache if any future reference are there, but here it again loads the same XML ducument multiple times which inturn increase the memory usage of my application.
I also tried to debug with DevPartner tool and it does not seems to help me out of this. Because it does not shows any memory leak for this but the memory usage in the task manager keeps on increasing.
I came to know about the garbage collection from the below link:
http://support.microsoft.com/kb/304227
It tells to disable the garbage collection by changing the redit entry 'NoFullGC' and i followed this to fnd this key but i was not able to find it. I even can't find the MSXML3.0 in the regedit.
The another thing that i find weird about this, is that, the memory allocated by this process got freed once i minimize the application window. (this is very much weird to me).
Please help me out of this.
Upvotes: 1
Views: 1542
Reputation: 1280
GC does not mean memory leak. Thus memory diagnostic tools cannot not help here - or it must be a false alarm.
In order to mitigate the memory consumption of GC, you may want to:
I am not sure how minimizing window can kick off GC, but that must has kicked off GC so that memory is recycled afterwards.
Upvotes: 1