Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space (RAM 256GB, --window 25000, --maxTrain 500)) #89

Open
Lei-Guo opened this issue Sep 26, 2021 · 1 comment

Comments

@Lei-Guo
Copy link

Lei-Guo commented Sep 26, 2021

I got the "java.lang.OutOfMemoryError" no matter what settings I used or how much RAM I have. I installed HMMRATAC using "conda install -c bioconda hmmratac".

Below is my RAM and settings.
RAM 256GB, --window 25000 (that is 1/100 of the default value), --maxTrain 500 (that is half of the default value)

Here is the error message:
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:238)

    at java.base/java.util.ArrayList.grow(ArrayList.java:243)

    at java.base/java.util.ArrayList.add(ArrayList.java:486)

    at java.base/java.util.ArrayList.add(ArrayList.java:499)

    at FormatConverters.PileupToBedGraph.toMap(PileupToBedGraph.java:114)

    at FormatConverters.PileupToBedGraph.run(PileupToBedGraph.java:50)

    at FormatConverters.PileupToBedGraph.<init>(PileupToBedGraph.java:41)

    at WigMath.pileup.toBedGraph(pileup.java:217)

    at WigMath.pileup.build(pileup.java:206)

    at WigMath.pileup.<init>(pileup.java:71)

    at HMMR_ATAC.Main_HMMR_Driver.main(Main_HMMR_Driver.java:270)
@txizzy
Copy link

txizzy commented Oct 8, 2021

Hey, friend. I met this issues too. Please try to edit your conda config file at: ~/.conda/envs/envs_name/share/hmmratac-1.2.10-1/HMMRATAC.
My launch parameters are:
default_jvm_mem_opts = ['-Xms10g', '-Xmx200g']
You can follow my setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants