-
I have centos VM limited to 2gb running on my win 10 hyper v, but my laptop physically has a max ram of 6gb. The container fails to start due to not having 6gb. I tried docker run -m 1gb but it doesn't seem to recognize the parameter. I can see the xmx setting in the config file on a working server with 32gb. How can I start up snow owl with less than 6gb? I couldn't even do a docker cp to overwrite the config file as the container needs to be started in the first place |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @Cv66user, Running both an Elasticsearch and Snow Owl with less than 6g of RAM (2g in this case) can be accomplished by changing the following lines in the official docker-compose.yml file: Change the Elasticsearch JVM Heap setting to 1g here: And the Snow Owl heap setting to 1g here: Please note that running Snow Owl with this low amount of memory can only be used with a small dataset, like a minified SNOMED CT dataset and for testing purposes only (all Snow Owl test cases run with this 1g-1g setup on our CI infrastructure). I hope this helps. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi Sorry to ask again, I am trying to run this on a Windows 2019 with 32GB ram with Docker Natively. I have not made the above changes. Running A helloworld container is fine But if I run: docker run --name A -p8080:8080 snowOwlContainerImage I tried: docker run --memory 25g --name B -p8080:8080 snowOwlContainerImage I tried: docker run --env SOJAVA_OPTS="-Xms1gb -Xmx20g" --memory 25g --name C -p8080:8080 snowOwlContainerImage But this is a brand new VM with 32gb. Am I going to need 32gb + Windows Operating system RAM overhead? I am able to run the container if I use a 32GB VM with Docker Desktop but limit the desktop service to 15gb. |
Beta Was this translation helpful? Give feedback.
Hi @Cv66user,
Running both an Elasticsearch and Snow Owl with less than 6g of RAM (2g in this case) can be accomplished by changing the following lines in the official docker-compose.yml file:
Change the Elasticsearch JVM Heap setting to 1g here:
https://github.com/b2ihealthcare/snow-owl/blob/8.x/docker/docker-compose.yml#L13
And the Snow Owl heap setting to 1g here:
https://github.com/b2ihealthcare/snow-owl/blob/8.x/docker/docker-compose.yml#L41
Please note that running Snow Owl with this low amount of memory can only be used with a small dataset, like a minified SNOMED CT dataset and for testing purposes only (all Snow Owl test cases run with this 1g-1g setup on our CI infrastructure).
I…