Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

MSXML causes virtual memory exhaustion eventually the app hangs forever

$
0
0
Hi,

we are having issues with MSXML, 

we have an app (developed in c plus plus as isapi extension (which means multithreaded requests)) which is continously hit by requests to loads and parse xmls. (if overloaded with lots of xml files to load and parse, it gives virtual memory issues with non responding state)

we are using MSXML4.0. The app works well for days and whenever there are high number of requests with huge xmls it goes in to non respoding state, which leads to restarting the app

I checked the memory counters and private bytes are not so high.. but virtual bytes are touching 2gb (on 32bit windows) which i think hitting upper limits so it is giving issues and i can see no more memory can be allocated (caught errors in exception handler for new operator)

Tried all following things to pull the virtual bytes down but none of them helped, virtual bytes are growing continuously to touch 2gb and eventually halts the app :(

- replaced MSXML4.0 with MSXML6.0 (didnt help)
- with MSXML6.0 used NOFULLGC registry set as 1 (didnt help)
- Also tried CoFreeUnusedLibraries() before CoUninitialize() (didn't help)
- read few articles saying use xmllite instead of msxml (won't be possible, will need huge efforts)

Any help in this regard will really be appreciated.





Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>