Noobie Noobie - 1 month ago 23
Java Question

Gradle deploy : GC overhead limit exceeded (max heap: 1024 MB)

Error : GC overhead limit exceeded (max heap: 1024 MB)

Frequently am getting above error When I do gradle deploy or other gradle operations from command prompt.

Could anyone help me to fix this issue.

Project: Java

Build : Gradle

*This is related to Gradle and Java. not only JAVA

Answer Source

It worked for me and Hope this will help you :

GRADLE_OPTS=-Xmx2048m gradle deploy