visualvm icon indicating copy to clipboard operation
visualvm copied to clipboard

Save heap dumps as compressed .hprof.gz

Open simon04 opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. Heap dumps are often huge.

Describe the solution you'd like So let's offer saving them in a compressed way, such as .hprof.gz using GZIPOutputStream.

Describe alternatives you've considered

Additional context

simon04 avatar Feb 23 '20 11:02 simon04

The .hprof files are being created by the JVM, not the VisualVM itself. Maybe we could provide some kind of "Export" action or a special "Compressed Heap Dumps (*.hprof.gz)" file filter for the Save As... action. Would only be available for local heap dumps. Needs to be platform-independent (.gz not well supported on Windows).

The current solution is to create an Application Snapshot from the process with the heap dumps, which itself is an archive. The benefit is having some extra information available along with the saved dumps.

jisedlac avatar Feb 24 '20 15:02 jisedlac