Menu

#57 Label Causes OutOfMemory error

2.1
open
nobody
5
2004-07-13
2004-07-13
No

If the archive contains 2000+ files and projects a out of
memory error will occur on Labels rebuild. The
outOfMemory error is occuring in the JLibDiffAlgorithm
class in the makeDiff function.

One workaround is to increase your the heap size from -
Xmx500m to -Xmx750m. We're using PIII windows
servers machines.

Discussion

  • Robert MacGrogan

    Logged In: YES
    user_id=258727

    The JLibDIff algorithm is not the best. JRCS Myers is
    better. GNU is the best (but requires that you use the GPL
    release of SJ).

    You can change your algorithm in the conf.xml file.

    <DiffAlgorithmClass>JLIbDiff.JRCSMyersAlgorithm</DiffAlgorithmClass>

    or

    <DiffAlgorithmClass>JLIbDiff.GnuDiffAlgorithm</DiffAlgorithmClass>

     
  • Timo Haberkern

    Timo Haberkern - 2005-03-11

    Logged In: YES
    user_id=509219

    Rob-

    why not using then GnuDiffAlgorithm as standard?

    Timo

     
  • Robert MacGrogan

    Logged In: YES
    user_id=258727

    I thought GnuDiffAlgorithm already was the default for the
    GPL distribution, but I think there may be a problem in the
    build.

     

Log in to post a comment.

MongoDB Logo MongoDB