How do I increase the memory available to DeltaWalker?

By default DeltaWalker is configured to run with the following heap-related JVM arguments:

      DeltaWalker -vmargs -Xms32M -Xmx256M

where -Xms32M sets the initial Java heap size and -Xmx256M sets the maximum Java heap size. These work well when comparing folder hierarchies consisting of thousands of files. We recommend comparing folders of up to ~50,000 items - files and folders - each. If you have to compare even larger folders consider comparing them in smaller chunks as it is possible that DeltaWalker runs out of memory. You could also try increasing the memory available to DeltaWalker, i.e. the maximum Java heap size, to 384MB or 512MB, however that may not always produce the desired ressult as other limiting factors start play a role when comparing folders with ~100,000 items or more. On the other hand, allocating more memory to DeltaWalker often helps when you want to compare very large text files.

There are two easy ways to change the DeltaWalker heap size:

        DeltaWalker -vmargs -Xmx500M

On Mac OS X the full path to the DeltaWalker executable needs to be specified:

        /Applications/DeltaWalker.app/Contents/MacOS/DeltaWalker -vmargs -Xmx500M

For a list of options supported by your JVM type on command line:

java -X
Options starting with -X are implementation-specific and may not be applicable to all JVMs.

Related topics