Intellij occasionally unable to reserve enough space for object heap

前端 未结 3 1568
误落风尘
误落风尘 2021-02-09 22:52

RESOLVED check below for solution.

I\'m using Intellij Idea 2017.2.2. Below is my intellij Specs.

My Intellij would only occasionally fail a maven build or a jbo

3条回答
  •  -上瘾入骨i
    2021-02-09 23:31

    I have solved this problem by changing the build settings in Intellij. Please follow the below steps.

    For SBT: 1. Go to File -> Settings -> Build, Execution Deployment -> sbt 2. Change the value of Maximum heap size, MB to your available memory. Ex. 512 (Previously this value was 1536, due to this I faced the problem)

    For Maven: 1. Go to File -> Settings -> Build, Execution Deployment -> Maven -> Importing

    1. Change the value of VM options for importer to your available memory. Ex. -Xmx512m

提交回复
热议问题