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/Heap #3

Open
krumann opened this issue Jul 17, 2021 · 0 comments
Open

OutOfMemoryError/Heap #3

krumann opened this issue Jul 17, 2021 · 0 comments

Comments

@krumann
Copy link

krumann commented Jul 17, 2021

Hi,

hope anyone knows a solution of the following exception:

"Juli 17, 2021 6:20:41 PM JGloVe.GloVe build_vocabulary
INFORMATION: Building vocabulary complete.. There are 2496996 terms
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.Arrays.copyOfRange(Arrays.java:3821)
at java.base/java.lang.StringLatin1.newString(StringLatin1.java:769)
at java.base/java.lang.StringBuilder.toString(StringBuilder.java:449)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:365)
at java.base/java.io.BufferedReader.readLine(BufferedReader.java:396)
at JGloVe.BigFile$FileIterator.hasNext(BigFile.java:44)
at JGloVe.GloVe.build_cooccurrence(GloVe.java:63)
at JGloVe.Test_Glove.main(Test_Glove.java:29)"

I set the heap memory with the following parameters: -Xms1G -Xmx10G and I am using a small model.

Any ideas?

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