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

OutOfMemoryError: Java heap space #53

Open
psychoslave opened this issue Mar 29, 2018 · 0 comments
Open

OutOfMemoryError: Java heap space #53

psychoslave opened this issue Mar 29, 2018 · 0 comments

Comments

@psychoslave
Copy link

psychoslave commented Mar 29, 2018

Following #52 this is an other configuration issue on Fedora 27.

Even after modifying StanfordCoreNLP.jvm_args trying to run a full pipeline will raise a java heap out of memory error.

[30] pry(main)> StanfordCoreNLP.jvm_args
=> ["-Xms512M", "-Xmx1024M"]

[31] pry(main)> StanfordCoreNLP.jvm_args = ["-Xms2048M", "-Xmx1024M"]                                                                  
=> ["-Xms2048M", "-Xmx1024M"]    

[34] pry(main)> pipeline =  StanfordCoreNLP.load(:tokenize, :ssplit, :pos, :lemma, :parse, :ner, :dcoref)                              
Adding annotator tokenize        
Adding annotator ssplit
Adding annotator pos
Loading default properties from tagger /home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/stanford-core-nlp-0.5.3/bin/mod
els/taggers/french.tagger
Reading POS tagger model from /home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/stanford-core-nlp-0.5.3/bin/models/tagge
rs/french.tagger ... OutOfMemoryError: Java heap space
from /home/psychoslave/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/stanford-core-nlp-0.5.3/lib/stanford-core-nlp.rb:187:in `method_missing'
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

1 participant