Details
-
Enhancement
-
Resolution: Fixed
-
P4
-
11, 16, 17
-
b06
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8271700 | 17.0.2 | Christoph Langer | P4 | Resolved | Fixed | b01 |
JDK-8271213 | 17.0.1 | Christoph Langer | P4 | Resolved | Fixed | b05 |
JDK-8271214 | 11.0.13 | Christoph Langer | P4 | Resolved | Fixed | b01 |
Description
User may want to use an existing file. It is necessary if the target file is a predefined file-like object, like a named pipe, socket,..
This enhancement adds an option to allow to rewrite an existing file content. It also allows use-cases when the file is a file-like object.
It can be used to add more compression methods for heap dump in addition to gzip, which is supported by JVM natively, for example on (on Linux):
# create intermediate named FIFO
mkfifo testfifo
# compress with LZ4 and write to file
lz4cat - < testfifo > dump.hprof.lz4
# dump the heap
jcmd Test GC.heap_dump -overwrite testfifo
Or send the dump over network (to REMOTE:PORT)
nc $REMOTE $PORT < testfifo
jcmd Test GC.heap_dump -overwrite testfifo
Attachments
Issue Links
- backported by
-
JDK-8271213 Add option to jcmd GC.heap_dump to use existing file
-
- Resolved
-
-
JDK-8271214 Add option to jcmd GC.heap_dump to use existing file
-
- Resolved
-
-
JDK-8271700 Add option to jcmd GC.heap_dump to use existing file
-
- Resolved
-
- csr for
-
JDK-8267667 Add option to jcmd GC.heap_dump to use existing file
-
- Closed
-
- duplicates
-
JDK-8200579 Unable to overwrite files with jmap -dump:file=<path>
-
- Resolved
-
-
JDK-8263066 Add option to jcmd to overwrite a heap dump or stream to special files
-
- Resolved
-
- relates to
-
JDK-8272318 Improve performance of HeapDumpAllTest
-
- Resolved
-
-
JDK-8270341 Test serviceability/dcmd/gc/HeapDumpAllTest.java timed-out
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/67622161
-
Commit openjdk/jdk17u/9b6aa530
-
Commit openjdk/jdk/7cbb67a3
-
Review openjdk/jdk11u-dev/131
-
Review openjdk/jdk17u/2
-
Review openjdk/jdk/4183