在进行docx比较时出现OutOfMemoryError

时间:2011-09-06 09:51:02

标签: java docx4j

  

可能重复:
  OutOfMemoryError while doing docx comparison using docx4j

当我比较大约10kb的2个文件时,我得到以下错误

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at com.topologi.diffx.algorithm.MatrixInt.setup(MatrixInt.java:123)
at com.topologi.diffx.algorithm.DiffXFitopsy.length(DiffXFitopsy.java:188)
at com.topologi.diffx.algorithm.DiffXFitopsy.process(DiffXFitopsy.java:238)
at com.topologi.diffx.Main.diff(Main.java:323)
at com.topologi.diffx.Main.diff(Main.java:310)
at com.topologi.diffx.Main.diff(Main.java:228)
at com.topologi.diffx.Docx4jDriver.diff(Docx4jDriver.java:170)
at org.docx4j.diff.Differencer.diffWorker(Differencer.java:320)
at org.docx4j.diff.Differencer.diff(Differencer.java:298)
at CompareDocuments.main(CompareDocuments.java:117)

请帮我解决这个问题。我将JVM内存增加到1400,即使这样也没有用完。

0 个答案:

没有答案