.HPROF

HPROF File

Java Heap/CPU Profiling Dump (HPROF)
Ask a question
QUICK ANSWER

An .hprof file is a binary snapshot of Java Virtual Machine heap memory, capturing all live objects at a point in time. Open it with Eclipse Memory Analyzer (MAT) or VisualVM. Files often run several gigabytes and can contain sensitive data such as passwords or API tokens, so treat them as confidential.

Developer: Sun Microsystems / Oracle (HPROF agent, JVM TI); now part of standard JDK Category: Misc Files MIME: application/octet-stream
OPENS ON Windows macOS Linux Web
Related: .TORRENT · .MSO · .MD5 · .SHS

On this page

19k+ extensions indexed
Last reviewed Aug 28, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the HPROF file format?

Files with the .hprof extension hold heap memory dumps for programs running on the Java Virtual Machine (JVM). .hprof files are generated by the HPROF profiling agent built into the JDK. The format is binary and can grow very large - even several GB - proportional to the JVM heap size at the time of capture. As a diagnostic artifact, an .hprof file can be safely deleted without affecting application performance.

Generating .hprof files. .hprof files are typically generated during Java memory errors. The most common trigger is an OutOfMemoryError: adding the JVM flag -XX:+HeapDumpOnOutOfMemoryError causes the runtime to write a dump automatically on failure. Dumps can also be created on demand with jmap -dump:format=b,file=heap.hprof <pid> or jcmd <pid> GC.heap_dump. Memory dump files may also be created automatically upon abrupt JVM termination. Android devices also produce .hprof files, but in a slightly different internal format that requires conversion with hprof-conv before standard Java tools can read them.

Analyzing .hprof files - application memory issues. .hprof files can be analyzed with the Eclipse Memory Analyzer Tool (MAT), an open-source GUI application hosted by the Eclipse Foundation. MAT can import .hprof files and analyze them for OOM (Out of Memory) errors, identify memory leaks, and help optimize application memory usage. VisualVM, bundled with the JDK, is another widely used analyzer. For production-level profiling, JFR (Java Flight Recorder) is now the preferred approach from JDK 11 onward; HPROF heap dumps remain the standard tool for memory leak analysis.

Security & safety

RISK: MEDIUM

HPROF files can contain sensitive data: passwords, private keys, API tokens, or personal information that was in JVM heap memory at dump time. Treat heap dumps as confidential; do not upload production dumps to online analysis services without reviewing or anonymising contents first. Files are not executable and pose no code-execution risk.

Format details

in a nutshell
FULL NAMEJava Heap/CPU Profiling Dump (HPROF)aka Java heap dump, HPROF binary dump
DEVELOPERSun Microsystems / Oracle (HPROF agent, JVM TI); now part of standard JDKsince Java 1.2 (1998); binary format stabilised with JDK 1.6
CATEGORYMisc Files
MIME TYPEapplication/octet-stream
TYPEBinary or ASCII heap and CPU profiling data dump from JVM
This extension is also used by…
  • Android ART Heap Dump - Android Runtime generates .hprof files with a compatible but not identical format; convert with hprof-conv (Android SDK) before opening in MAT/VisualVM.
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102030405060708090a0b0c0d0e
HEX
4A4156412050524F46494C4520312E
ASCII
JAVA PROFILE 1.
Binary HPROF dumps begin with the ASCII string "JAVA PROFILE 1.0.1" or "JAVA PROFILE 1.0.2" (null-terminated, then 4-byte identifier size and 8-byte timestamp). Text/ASCII output uses a different header line "HPROF-VERSION:". Most modern heap dumps use binary format 1.0.2.

Programs that open HPROF files

Windows3 apps
Eclipse Memory Analyzer (MAT) Open-source File → Open Heap Dump → select .hprof. MAT parses and indexes the dump, then shows Leak Suspects, Dominator Tree, and Retained Heap.
VisualVM Open-source File → Load → select .hprof. Shows heap histogram, object references, and class statistics.
JDK jhat (legacy) Built-in jhat heap.hprof - starts a local HTTP server on port 7000; browse to http://localhost:7000.
macOS2 apps
Eclipse Memory Analyzer (MAT) Open-source Same as Windows: File → Open Heap Dump.
VisualVM Open-source File → Load → select .hprof.
Linux2 apps
Eclipse Memory Analyzer (MAT) Open-source Run ParseHeapDump.sh for command-line analysis, or launch the GUI version.
VisualVM Open-source File → Load → select .hprof.
Web1 app
HeapHero (online analyser) Freemium Upload .hprof (max upload size applies); get automatic memory leak detection report.

Technical details

deep spec
EncodingBinary (primary); legacy ASCII text option also supported
Byte orderBig-endian
ContainerSequential HPROF binary record format
Magic string"JAVA PROFILE 1.0.1" or "JAVA PROFILE 1.0.2" (null-terminated at offset 0)
Format version 1.0.1JDK 1.2-5; supports heaps up to 2 GB
Format version 1.0.2JDK 6+; adds HEAP DUMP SEGMENT tag (0x1C) for heaps over 2 GB
Typical file size50 MB - 20 GB (proportional to JVM heap at dump time)
Record structure1-byte tag + 4-byte timestamp offset + 4-byte body length + variable body
Key tagsHEAP DUMP (0x0C), HEAP DUMP SEGMENT (0x1C), UTF8 strings, LOAD CLASS records
Android HPROFUses .hprof extension but slightly different format; requires hprof-conv before analysis
Primary trigger-XX:+HeapDumpOnOutOfMemoryError JVM flag; also jmap and jcmd on demand
ReleasedJava 1.2 (1998); binary format stabilised with JDK 1.6
Latest versionHPROF binary format 1.0.2 (JDK 6+)
Specificationdocs.oracle.com

HPROF conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with HPROF files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about HPROF files.

Frequently asked questions

What is an HPROF file?
A binary snapshot of the Java Virtual Machine heap memory - all live objects, their classes, field values, and references. Used to analyse OutOfMemoryErrors and memory leaks.
How do I open an HPROF file?
Use Eclipse Memory Analyzer (MAT) - free, handles multi-GB files efficiently. VisualVM is another option. For quick inspection, jhat (bundled with JDK 8) serves a web UI.
My HPROF file is 10 GB - how do I analyse it?
Eclipse MAT is specifically designed for large heap dumps; run it with increased heap: 'MemoryAnalyzer.exe -vmargs -Xmx4g'. Parse first with the ParseHeapDump.sh/bat script.
How do I generate an HPROF heap dump?
Either set -XX:+HeapDumpOnOutOfMemoryError on JVM startup (auto-creates on OOM), or manually: 'jmap -dump:format=b,file=heap.hprof <pid>' or 'jcmd <pid> GC.heap_dump heap.hprof'.
My Android hprof won't open in MAT - why?
Android ART uses a slightly different .hprof format. Convert it first: 'hprof-conv android.hprof converted.hprof' (hprof-conv is in the Android SDK platform-tools).
Does an HPROF file contain sensitive data?
Yes - heap dumps capture everything in JVM memory at dump time, including credentials, tokens, or personal data. Treat them as confidential.

References

1Oracle - HPROF: A Heap/CPU Profiling Tool (JDK 7)docs.oracle.com
2Oracle - Troubleshoot with HPROF Tool (JDK 8)docs.oracle.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.PARTPartial Download File
6.RPMSGRestricted Permission Message
7.NOMEDIAAndroid No-Media Marker File
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.ICSiCalendar data file

Related extensions

.TORRENTBitTorrent Metainfo File
.MSOMicrosoft Office HTML/OLE Data Stream (oledata.mso)
.MD5MD5 Checksum File
.SHSShell Scrap Object File
.DDDAdobe Acrobat Distiller file
.DWLDrawing Lock File (CAD)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z