I'm trying to replicate the openie4.0 program by: https://github.com/knowitall/openie
The environment is Ubuntu: 18.04, Scala: 2.10.2, Java: 1.7.0_80, sbt: 0.13.18,
I managed to get to the step of "running with sbt:" ''' sbt 'run-main edu.knowitall.openie.OpenIECli' '''
However, I kept facing with the problem of
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
when I step into to create the stand-alone jar, when using:
sbt clean compile assembly
while trying "sbt -J-Xmx2700M clean compile assembly" (or larger, say 10g, I have 64g on my computer) The above out of memeory problem continues plus:
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
[error] Not a valid command: J-Xmx10g
[error] Not a valid project ID: J-Xmx10g
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: J-Xmx10g
[error] J-Xmx10g
[error]
This is super confusing why this command isn't a valid one and I didn't find a solution for this.
Later on I tried to set the universal JAVA_OPTS, not working. Then I take the suggestions from user972946 (last one), which suggest its overriden since the default settings. How to set heap size for sbt?.
Then trying after fixing as he suggested,but still the same.....
env JAVA_OPTS="-Xmx41200m" sbt clean compile assembly
I also took the suggestion from Mike and Cassio from the above link...not working at all.
Really appreciate on any suggestions on this.
Many thanks. HZ