Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Massive hprof files being created somehow, preventing me from pushing

Tags:

I am currently unable to push changes I've made to a project to GitHub because it keeps finding these massive (~300MB) files called "java_pid(random numbers).hprof". I have no idea where they're coming from. Google searches aren't coming up with anything helpful - everyone else is asking about how to use them, and with regard to Eclipse, and I'm using Android Studio, and I don't care what's in them, I just want them gone.

Please help!

like image 818
Andrew Torr Avatar asked Oct 28 '15 18:10

Andrew Torr


People also ask

Is it OK to delete Hprof files?

A hprof is a heap dump, which happens if the JVM has an OOM issue. You can delete it if you want, but it's probably worth digging into.

Why Hprof files are created?

hprof files generated in log folder in BI servers. hprof files are heap dump of the memory of java-based processes. Huge hprof files most commonly indicate out of memory issues about the related processes.

What is Hprof file in Android?

hprof ' extension. HPROF file may contain CPU usage, heap allocation statistics, heap dump, thread stack traces and monitor states. It can be either in binary or text format. Heap Hero is a powerful tool to view and analyze HPROF files.


1 Answers

When you're monitoring memory usage in the Memory Monitor included in Android Monitor you can, at the same time, dump a snapshot of the Java heap to an Android-specific Heap/CPU Profiling (HPROF) file. 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

like image 168
UmAnusorn Avatar answered Oct 08 '22 14:10

UmAnusorn