License Scanning encounters "GC overhead limit exceeded" error for large gradle configurations with subprojects
Summary
When running license-finder against a large gradle project with many subprojects, the following error is encountered:
08:56:40.903 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
08:56:40.903 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
08:56:40.903 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] GC overhead limit exceeded
08:56:40.903 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
Related issues
Steps to reproduce
See here for details
Example Project
Not available
What is the current bug behavior?
GC overhead limit exceeded
error message is output and no licenses are discovered
What is the expected correct behavior?
licenses should be discovered
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Edited by Adam Cohen