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

Out of Memory problem #33

Open
ZuoHaoyu opened this issue Mar 17, 2022 · 2 comments
Open

Out of Memory problem #33

ZuoHaoyu opened this issue Mar 17, 2022 · 2 comments

Comments

@ZuoHaoyu
Copy link

Dear team, I'm facing with the problem of " out of memeory " continuously.....

Environment:

Ubuntu: 18.04
Scala: 2.10.2
Java: 1.7.0_80
sbt: 0.13.18

I managed to get 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 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 problem continues plus:

[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]     

Any possible solution please?

Regards,
hz

@Cathysshelter
Copy link

Have you solved the problem yet? I have the same problem.

@ZuoHaoyu
Copy link
Author

ZuoHaoyu commented Apr 3, 2022

Have you solved the problem yet? I have the same problem.

hello Cathysshelter.

I finally managed to solve this problem.

I came across this because I installed a very old version sbt
with setting
“SBT_OPTS= " -Xms512M -Xmx1536M ”........

The setting file is located in the sbt local directory and override each setting you have in other enviroment.

Regards,
Hz

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