javaintellij-ideaout-of-memoryintellij-13

OutOfMemoryError: insufficient memory in IntelliJ?


When I run my project in IntelliJ in debug mode I get the following error.

Does anybody know what is the cause? enter image description here

I already increased my heap size in idea.vmoptions:

-ea
-server
-Xms1g
-Xmx3G
-Xss16m
-Xverify:none
-XX:PermSize=512m
-XX:MaxPermSize=1024m

I already increased my heap size for compiler to 1024 as bellow: enter image description here


Solution

  • Try Run menu -> Edit Configurations... -> find your project in the tree of projects on the left, look for VM options: in the panel on the right, and enter something there, according to information found here: What are the -Xms and -Xmx parameters when starting JVM?