Error: "Unhandled Exception: OutOfMemoryException" when parsing large...
Last post Sep 24, 2019 09:09 PM by lextm
Sep 24, 2019 08:48 AM|CZJindrich|LINK
I have inherit an black box application (uses LogParser.exe 220.127.116.11) which parses XML file.
Everything is working corectly when the parsed file is under ~500 MB. If it is lager (want to parse 1,3 GB file), it crash due this error message: "Unhandled Exception: OutOfMemoryException".
Does someone have a similar problem? How do you solve this?
Thank you very much for your help
Sep 24, 2019 01:00 PM|lextm|LINK
LogParser is a 32 bit application, so it cannot handle large files (1.3 GB is the typical memory limit for 32 bit applications).
You have to move to other technologies, as LogParser is not supported by Microsoft in any case, and there won't be a 64 bit version.
Sep 24, 2019 02:35 PM|CZJindrich|LINK
Thank you for your feedback.
I was thinking about the same, but needed to ask :)
Do you have some recommendation how to replace it? Which program is optimal?
Sep 24, 2019 09:09 PM|lextm|LINK
SQL Server Express might be an option. Other alternatives can be commercial, such as Splunk.