Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOM (GC overhead limit exceeded) on large multi-module projects #73

Open
kiwiandroiddev opened this issue Jul 8, 2022 · 2 comments
Open
Labels
bug Something isn't working

Comments

@kiwiandroiddev
Copy link

kiwiandroiddev commented Jul 8, 2022

Describe the bug
I'm working towards disabling jetifier on a large multi-module Android project. The issue I'm seeing with the plugin is of long execution times and eventual crashing of the task with an out of memory error, e.g.

* What went wrong:
Execution failed for task ':app:canISayByeByeJetifier'.
> GC overhead limit exceeded

Increasing the java heap size helps insofar as the task runs for longer before crashing (sometimes identifying support-lib dependencies before it does so 👍 ). However even with org.gradle.jvmargs=-Xmx32768m the task still crashes after ~30 min of execution.

A workaround I've found is to apply the bye-bye-jetifier plugin to individual feature modules in the project rather than the app module. However this can be quite time-consuming depending on the number of modules.

Is there a change to the scanning algorithm that could be made to make it less memory-intensive for multi-module projects?

P.S. thanks for your work on this plugin, despite this issue I've used it to successfully identify and upgrade a number of libraries still depending on the support lib with the workaround above.

@kiwiandroiddev kiwiandroiddev added the bug Something isn't working label Jul 8, 2022
@wyhmoon
Copy link

wyhmoon commented Jul 19, 2022

+1

@Undefined-User
Copy link

Undefined-User commented Jan 16, 2024

Same problem, it just a time & memory eater and cannot use in most of projects. I tried allocating 400GB memory for Gradle, it ran out memory after few hours but not give any results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants