singularityhub / singularityhub.github.io

Container tools for scientific computing! Docs at https://singularityhub.github.io/singularityhub-docs
https://singularityhub.github.io
68 stars 9 forks source link

java heap space error #208

Closed RichardCorbett closed 4 years ago

RichardCorbett commented 4 years ago

Links

Version of Singularity

Write here

Behavior when Building Locally

Hi folks I can build this locally on my network without any special switches. ie: sudo singularity build --force PROFYLE_TMB PROFYLE_TMB.recipe

Error on Singularity Hub

my build is failing when some java code is supposed to run to reformat some files after they are downloaded.

...
00:01:07 Loading interactions from : /usr/TMB/snpEff/./data/GRCh37.75/interactions.bin
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
...

What do you think is going on?

It looks like the java command is asking for 16Gb, perhaps that is more than is allocated to the build jobs on singularityhub?

vsoch commented 4 years ago

Yes, unfortunately the Singularity Hub instances only have about 3.75 GB of memory. You can try:

RichardCorbett commented 4 years ago

Thanks. I tried a build locally using only 3Gb but ran out of RAM and it crashed. I'll take a look into using sylabs.

vsoch commented 4 years ago

Great! Sorry I can't offer more than that, I've been running this for almost 4 years now, and also procuring funding, refactoring when needed, responding to issues, and the thing that I definitely can't do is give total freedom to use expensive resources. Good luck with Sylabs Cloud, closing issue.

RichardCorbett commented 4 years ago

No problem. I really appreciate your responsiveness. Best of luck!

vsoch commented 4 years ago

Thanks! It's almost dinner here, so for this tiny bloop of space time, all is well! haha ;)