Massive hprof files created in some way, preventing me from pushing

Currently, I cannot make changes to the GitHub project because it continues to find these massive files (~ 300 MB) called "java_pid (random numbers) .hprof". I have no idea where they come from. Google searches do not bring anything useful - everyone else asks how to use them, both regarding Eclipse and I use Android Studio, and I donโ€™t care what is in them, I just want them to leave.

Please, help!

+5
source share
3 answers

When you track memory usage in the memory monitor included in Android Monitor, you can at the same time upload the Java heap snapshot to the heap / processor profiling file (HPROF) for Android. The HPROF Viewer displays classes, instances of each class, and a reference tree to help you track memory usage and find memory leaks. HPROF is a binary heap dump format originally supported by J2SE.

You can delete it.

https://developer.android.com/studio/profile/am-hprof.html

+3
source

maybe the jdk is wrong.

Android Studio - file - project structure - SDK location - JDK location - use the built-in JDK

can solve your problem

0
source

I had the same problem that he did, made a new branch and deleted this file, not so important, you can delete it or put it in git ignore.

0
source

Source: https://habr.com/ru/post/1234725/


All Articles