Error: "Unhandled Exception: OutOfMemoryException" when parsing large XML [Answered]RSS

3 replies

Last post Sep 24, 2019 09:09 PM by lextm

  • Error: "Unhandled Exception: OutOfMemoryException" when parsing large XML

    Sep 24, 2019 08:48 AM|CZJindrich|LINK

    Hello guys,

    I have inherit an black box application (uses LogParser.exe 2.2.10.0) 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

  • Re: Error: "Unhandled Exception: OutOfMemoryException" when parsing large XML

    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.

    Lex Li
    https://lextudio.com
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Error: "Unhandled Exception: OutOfMemoryException" when parsing large XML

    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?

    Thanks

  • Re: Error: "Unhandled Exception: OutOfMemoryException" when parsing large XML

    Sep 24, 2019 09:09 PM|lextm|LINK

    SQL Server Express might be an option. Other alternatives can be commercial, such as Splunk.

    Lex Li
    https://lextudio.com
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.