Skip to content

Lower gradle heap: 3GB is unnecessary (#11936)#1202

Merged
risdenk merged 1 commit intoapache:mainfrom
risdenk:lower-gradle-heap
Nov 30, 2022
Merged

Lower gradle heap: 3GB is unnecessary (#11936)#1202
risdenk merged 1 commit intoapache:mainfrom
risdenk:lower-gradle-heap

Conversation

@risdenk
Copy link
Contributor

@risdenk risdenk commented Nov 30, 2022

Ports apache/lucene#11936 over to Solr. I've been testing this the past week or so and haven't seen any issues.

You need to clear gradle.properties in the Solr directory and regenerate with ./gradlew localSettings (or let the build regenerate it for you next time.

@risdenk
Copy link
Contributor Author

risdenk commented Nov 30, 2022

Anecdotally - this has improved using Gradle in Intellij for builds - the machine doesn't seem to freak out as much with smaller Gradle heap.

Copy link
Contributor

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any impact on build time?

@risdenk
Copy link
Contributor Author

risdenk commented Nov 30, 2022

Not that I've seen - at least not drastically so. I haven't measured it to be honest. I can say that ./gradlew check -Pvalidation.errorprone=true on my machine stays at around 20min plus or minus a few minutes.

@risdenk risdenk merged commit f25d77a into apache:main Nov 30, 2022
@risdenk risdenk deleted the lower-gradle-heap branch November 30, 2022 21:30
risdenk added a commit that referenced this pull request Nov 30, 2022
Co-authored-by: Robert Muir <rmuir@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants