DamageProfiler icon indicating copy to clipboard operation
DamageProfiler copied to clipboard

Heap size

Open sultandromeda opened this issue 1 year ago • 0 comments

Hi, I want assistance with the script that I run via the Shell command:

Script: java -Xmx75G -jar ~/bin/DamageProfiler.jar -i ${1}.cram -o ./${1}.damage -r ./refseq.fa

Error: Picked up JAVA_TOOL_OPTIONS: -Xmx2g Welcome to DamageProfiler v1.1 Input file:RK5.PE.cram Output folder:./RK5.PE.damage Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit at org.apache.commons.math3.util.ResizableDoubleArray.expand(ResizableDoubleArray.java:697) at org.apache.commons.math3.util.ResizableDoubleArray.addElement(ResizableDoubleArray.java:442) at org.apache.commons.math3.stat.descriptive.DescriptiveStatistics.addValue(DescriptiveStatistics.java:171) at org.damageprofiler.io.OutputGenerator.computeSummaryMetrics(OutputGenerator.java:607) at org.damageprofiler.calculations.StartCalculations.generateOutput(StartCalculations.java:374) at org.damageprofiler.calculations.StartCalculations.startDamageProfilerOnSingleSpecies(StartCalculations.java:193) at org.damageprofiler.calculations.StartCalculations.start(StartCalculations.java:149) at StarterCLI.(StarterCLI.java:11) at RunDamageProfiler.main(RunDamageProfiler.java:30)

   I want to understand why the tool always peaks up Xmx2g? 

sultandromeda avatar May 28 '24 15:05 sultandromeda