java: java.lang.OutOfMemoryError: Java heap space

‘java: java.lang.OutOfMemoryError: Java heap space’
If you encounter below issue, you can increase heap size.
If you face this issue when compiling the project you can increase the compiler heap size for IntelliJ Idea like this;
IntelliJ Idea-> File-> Settings-> Build, Execution, Deployment-> Compiler-> Shared build process heap size (Mbytes): 4096

If necessary: To increase Memory Heap Size of IDE-> IntelliJ Idea-> Help-> Change Memory Settings-> Maximum Heap Size: 2048

Leave a Reply

Your email address will not be published. Required fields are marked *