EBISPOT / ontotools-docker

Configuration to deploy ontotools using docker compose
Apache License 2.0
4 stars 10 forks source link

Configuring Java heap size for ontology loading #7

Open balhoff opened 3 years ago

balhoff commented 3 years ago

I'm encountering a java.lang.OutOfMemoryError from ELKOWLOntologyLoader when trying to deploy my custom OLS. Is there a place in the configuration where I can specify the heap size that will be used?

balhoff commented 3 years ago

I think I figured this out; I edited this line: https://github.com/EBISPOT/ontotools-docker/blob/e58cb66b7af172ea85a447806c453c7d3bc7f139/redeploy.sh#L85

to include -e JAVA_OPTS=-Xmx12G -e JAVA_TOOL_OPTIONS=-Xmx12G (wasn't sure which of those would work).

matentzn commented 3 years ago

It's a good point, we need to propoafade the Java env from the environment. Did Increasing the memory work for you?

balhoff commented 3 years ago

Yes it did! I haven't yet gone back and figured out which of those environment variables did the trick.