Bilal Maqbool
Bilal Maqbool

Reputation: 37

Eclipse Stanford CoreNLP execution error "Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded"

HI i am trying simple example from this official website of stanford CoreNLP example: https://stanfordnlp.github.io/CoreNLP/api.html

***** TokensRegexNERAnnotator ner.fine.regexner: Read 585586 unique entries from 2 files Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded at java.util.LinkedHashMap.newNode(Unknown Source) *****

i had tried all solutions available on net, but i am unable to resolve issue i had tried by increasing memory size in eclipse.ini file also tried by putting -Xms1024m in run configuration arguments. I am working on my thesis tool please help me out i am stuck i am using eclipse oxygen and stanford-corenlp-3.9.0

Thanks!

Upvotes: 0

Views: 639

Answers (2)

Bilal Maqbool
Bilal Maqbool

Reputation: 37

final done by changing to -Xms3056m in run configuration arguments, mean i need more RAM because NLP takes much RAM to execute and compute

Upvotes: 1

duffymo
duffymo

Reputation: 308743

Eclipse is an IDE. It has nothing to do with your problem.

This is a JVM runtime issue.

You need to answer a few questions:

  1. Which version of JDK are you running? JDK 8 eliminated perm gen and added meta space to the memory model.
  2. Are you running a 64 bit JVM?
  3. Have you profiled your app with Visual VM to see what the generations in memory are doing?

You can increase the max heap size beyond 1GB.

Upvotes: 0

Related Questions