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

Docker image hang on OSX and Windows #15

Closed
spyysalo opened this issue Mar 5, 2019 · 2 comments
Closed

Docker image hang on OSX and Windows #15

spyysalo opened this issue Mar 5, 2019 · 2 comments

Comments

@spyysalo
Copy link

spyysalo commented Mar 5, 2019

When running the docker image following instructions from https://turkunlp.org/Turku-neural-parser-pipeline/docker.html using

echo "Minulla on koira." | docker run -i turkunlp/turku-neural-parser:finnish-cpu-plaintext-stdin

On a vanilla Docker Desktop (v 2.0.0.3) setup on OSX (v 10.14.3), the parser appears to hang with the last lines of output being

Bucket parseset-1 is 4 x 9 x 9
Bucket parseset-2 is 4 x 12 x 9
Bucket parseset-3 is 3 x 14 x 9
Bucket parseset-4 is 3 x 16 x 9

(first reported over email)

@spyysalo
Copy link
Author

spyysalo commented Mar 5, 2019

This appears to be caused by an out-of-memory issue due to default memory limits on Docker Desktop for Mac (see https://docs.docker.com/docker-for-mac/#advanced). The issue was resolved in our experiments by setting Memory to 4 GB and Swap to 2 GB:

image

@spyysalo spyysalo closed this as completed Mar 5, 2019
@haamis
Copy link

haamis commented Mar 8, 2019

The same issue occurs on Docker Desktop for Windows. The default amount of memory allocated appears to be 2GB (this is what it was on my machine). Setting memory to 4GB resolves the issue.

image

@haamis haamis changed the title Docker image hang on OSX Docker image hang on OSX and Windows Mar 8, 2019
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