I was trying to generate a few big .hic files, but encounter the `java.lang.OutOfMemoryError: Java heap space` error .
1. I was using pbs and requested 128gb mem
2. I exported java options as suggested by the previous conversations in the group
+Mon Aug 31+13:58:38 export 'IBM_JAVA_OPTIONS=-Xmx49152m -Xgcthreads1'
+Mon Aug 31+13:58:38 IBM_JAVA_OPTIONS='-Xmx49152m -Xgcthreads1'
+Mon Aug 31+13:58:38 export '_JAVA_OPTIONS=-Xmx49152m -Xms49152m'
+Mon Aug 31+13:58:38 _JAVA_OPTIONS='-Xmx49152m -Xms49152m'
+Mon Aug 31+13:58:38 juiceDir=/home/zhc268/scratch/juicer/scripts/common
+Mon Aug 31+13:58:38 /home/zhc268/scratch/juicer/scripts/common/juicer_tools pre -s /home/zhc268/scratch/juicer/work/RMM_307_1_2_3_RMM_308_1_2_3/mega/aligned//inter.txt -g /home/zhc268/scratch/juicer/work/RMM_307_1_2_3_RMM_308_1_2_3/mega/aligned//inter_hists.m -q 1 /home/zhc268/scratch/juicer/work/RMM_307_1_2_3_RMM_308_1_2_3/mega/aligned//merged_nodups.txt /home/zhc268/scratch/juicer/work/RMM_307_1_2_3_RMM_308_1_2_3/mega/aligned//inter.hic hg19
Picked up _JAVA_OPTIONS: -Xmx49152m -Xms49152m
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.Arrays.copyOf(Arrays.java:3689)
at java.base/java.util.ArrayList.grow(ArrayList.java:237)
at java.base/java.util.ArrayList.grow(ArrayList.java:242)
at java.base/java.util.ArrayList.add(ArrayList.java:485)
at java.base/java.util.ArrayList.add(ArrayList.java:498)
at juicebox.tools.utils.norm.GenomeWideNormalizationVectorUpdater.createWholeGenomeRecords(GenomeWideNormalizationVectorUpdater.java:207)
at juicebox.tools.utils.norm.GenomeWideNormalizationVectorUpdater.getWGVectors(GenomeWideNormalizationVectorUpdater.java:134)
at juicebox.tools.utils.norm.GenomeWideNormalizationVectorUpdater.updateHicFileForGWfromPreOnly(GenomeWideNormalizationVectorUpdater.java:226)
at juicebox.tools.utils.norm.NormalizationVectorUpdater.updateHicFile(NormalizationVectorUpdater.java:76)
at juicebox.tools.clt.old.PreProcessing.run(PreProcessing.java:126)
at juicebox.tools.HiCTools.main(HiCTools.java:96)
822G Aug 26 18:30 /home/zhc268/scratch/juicer/work/RMM_307_1_2_3_RMM_308_1_2_3/mega/aligned//merged_nodups.txt