in my application i am comparing two docx files and creating one html comparison file, when i tried with below 150 or 170 lines of file then there is no issue, while i try to compare the big files like 200 lines or more than that then that time it showing the
java.lang.OutOfMemoryError: Java heap space error,
can any one please help on this?
You are running out of memory because you aren’t using the Docx4jDriver class, which makes the diff problem more tractable by doing a paragraph level diff first.
Use it like so: