Setting heap size in IntelliJ IDEA correctly

前端 未结 2 1801
失恋的感觉
失恋的感觉 2020-12-17 17:20

I have this peculiar problem with running a Processing application in IntelliJ IDEA. I want to save a large image and to do this I run in to the following exception:

2条回答
  •  自闭症患者
    2020-12-17 17:36

    Changing vmoptions file adjusts the memory used by IntelliJ, but what you're having here is a shortage of memory of JRE that is launched by IntelliJ to execute your application. You need to adjust the memory setting in VM options part of the Run/Debug configuration, for example:

    enter image description here

提交回复
热议问题