HazyResearch / deepdive

DeepDive
deepdive.stanford.edu
1.95k stars 539 forks source link

CoreNLP server takes forever to start in Docker #632

Open yejunjin opened 7 years ago

yejunjin commented 7 years ago

Hi, I install deepdive_sandbox_docker.

jovyan@4891b7af232a:/ConfinedWater$ deepdive corenlp start CoreNLP server at CORENLP_PORT=24393 starting...

take forever to start, but nothing goes on.

alldefector commented 7 years ago

Hi @EadrenKing , it could take 1 min or so to get started. If it took much longer than that, one possibility is that the available memory was low and the OS started paging. Perhaps check the OS stats to see if that's the case?

mcavdar commented 7 years ago

Hi I have exactly same problem in Ubuntu 16.04 with DeepDive (v0.9.0rc2-1063-g7b82f5a). Memory was free enough, OS doesn't even use swap space.

mcavdar commented 7 years ago

Problem is solved for me by adding env variable "CORENLP_JAVAOPTS=-Xmx8g".

vochicong commented 7 years ago

On my Mac, the problem only solves by setting Docker Memory limit to 8.0 GB and %env CORENLP_JAVAOPTS=-Xmx4g in the Jupyter notebook.