Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Opened this issue · 3 comments
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?
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
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
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