-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[feature] Optimize memory usage #1410
Comments
Is it possible to use file cache replace with memory to decrease memory usage ? |
Have you read our Wiki section about memory problems? https://github.com/skylot/jadx/wiki/Troubleshooting-Q&A#out-of-memory-problems Additionally I strongly recommend you not to use Java 8. Use Java 11 or 17 instead. Since Java 9 strings usually have a reduced memory footprint (up to 50%). All the code you see in Jadx are strings in memory so using Java 11/17 can reduce memory usage a lot. @skylot As far as I know Oracle Java 8 is EOL February 2022. Some OpenJDK Java 8 versions are supported a little longer but Java 8 in general seems to come to an end. What do you think about how long we should continue Jadx support Java 8? |
I installed java11 ,my memoy only has 8G. |
I use android studio never has the problem, even if i load a big project. |
Jadx is designed to decompile everything in RAM as this is way faster and easier to implement. The only way to decrease memory usage at the moment is to exclude packages you are not interested in or to only selectively decompile classes. |
Thx |
Sure, this can be done, this will also help to continue work on project after jadx reopen (related to #784).
Yeah, I also want to move to newer java releases. I already change required java version to 11 in download section and encourage people to use the latest version in release notes. But still some people use Java 8 for some reason 😐 (issues like #1373 and #1280). |
@b0123456789 forget to say: If possible, please share your apk, so I can profile it, and maybe I will find some issues which causes increased memory usage. |
Sorry for later The app can't upload becouse of it is to big. if you need this, i'll upload tomorrow。 |
@b0123456789 thanks for the sample! |
Thx,it work |
I alway notice that "memory not enough, XX classes not index, please increase heap size and restart" when input a big file and search some thing.
The text was updated successfully, but these errors were encountered: