One day I tried to unit test java with intellij. .. ..
java.lang.OutOfMemoryError:
The error is ... When I looked it up, there was some information, but I was addicted to it, so I will leave a countermeasure as a memorandum.
This time I did two methods
Menu bar> IntelliJ IED> Preferences> Compiler
Added -Xmx2048m
toShared build process VM options:
This is the method that I have investigated and found the most.
Select Modify Run Configuration
at the bottom from the run button of unit test
A screen like this will appear, so put -Xmx2048m
in the VM options
here and apply
When I was investigating, it seemed that there were many people who solved it with the first method, but for some reason I could not solve it without the second method, so if anyone can help I'm happy
https://stackoverrun.com/ja/q/7802559 https://www.366service.com/jp/qa/986b19e266eaaafb99b2f2ccddd3378c
Recommended Posts