Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.43 KB

How to solve jvm heap memory leak in gradle build.md

File metadata and controls

42 lines (26 loc) · 1.43 KB

How to solve jvm heap memory leak in gradle build

Prerequisites

  • Mac OS
  • Intellij Ultimate

Gradle build fail

스크린샷 2021-07-08 오후 11 49 45

Because JVM heap space is exhausted, gradle build is fail... 😢

Sometimes GC overhead limit exceeded issue has occurred. 😱

So, I tried a number of ways.

#Try 1 - Intellij shared memory setting

스크린샷 2021-07-08 오후 11 58 43

shared build processes heap size setting in intellij preferences > compiler.

however, this issue unresolved

#Try 2 - Intellij idea.vmoptions setting

I have no image..

set -Xmx4096min Help > Edit Custom VM Options.

however, this is a real shoveling....

#Try 3 - gradle.properties setting

I resolved it. 😁

스크린샷 2021-07-09 오전 12 00 15

set max heap size in gradle.properties

On Windows: C:\Users\<you>\.gradle\gradle.properties
On Mac/Linux: /Users/<you>/.gradle/gradle.properties

If you can't find this file, you make this file. so do i.