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

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space #128

Open
ghost opened this issue Mar 15, 2021 · 3 comments
Open

Comments

@ghost
Copy link

ghost commented Mar 15, 2021

I'm getting the error 'Exception in thread "main" java.lang.OutOfMemoryError: Java heap space' when trying to run on a SQL Database. Judging from the error, it seems pretty obvious that it ran out of memory, but can you advise what I can do to prevent this from happening - do I have to adjust something in Java?

@realrolfje
Copy link
Owner

Without any information there is no telling what is causing this. It would help if you could provide me with:

  • The java version (and settings) you are using
  • The anonimatron configuration file
  • The size of the tables you are querying
  • The size of the synonyms.xml file

@ghost
Copy link
Author

ghost commented Mar 18, 2021

thanks I solved this by adjusting the memory flag that's called in the .bat or .sh scripts : bumped it up to 8GB - java -Xmx8G

@shadowtj
Copy link

shadowtj commented May 2, 2022

For me it was working with - java -Xmx1G
Edit the bat file, the param you see is - java -Xmx2G, just change it to 1G and it is working, at least for me.

somehow i got warning that the VM could not allocate 2g of mem

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