-
Bug
-
Resolution: Fixed
-
P4
-
25
-
b17
jcmd with turned on streaming output may break formatted text (like indents):
{code}
$ JAVA_TOOL_OPTIONS=-Djdk.attach.allowStreamingOutput=true jcmd 31544 VM.native_memory
```
Picked up JAVA_TOOL_OPTIONS: -Djdk.attach.allowStreamingOutput=true
31544:
Native Memory Tracking:
(Omitting categories weighting less than 1KB)
Total: reserved=9953148KB, committed=407888KB
malloc: 57776KB #293244, peak=75433KB #212390
mmap: reserved=9895372KB, committed=350112KB
- Java Heap (reserved=8298496KB, committed=270336KB)
(mmap: reserved=8298496KB, committed=270336KB, peak=520192KB)
- Class (reserved=1048938KB, committed=2922KB)
(classes #3716)
( instance classes #3406, array classes #310)
(malloc=362KB #7060 ) (peak=364KB #7068)
(mmap: reserved=1048576KB, committed=2560KB, at peak)
( Metadata: )
( reserved=65536KB, committed=24384KB )
( used=24223KB)
( waste=161KB =0.66%)
( Class space:)
( reserved=1048576KB, committed=2560KB )
( used=2423KB)
( waste=137KB =5.36%)
{code}
$ jcmd 31544 VM.native_memory
{code}
31544:
Native Memory Tracking:
(Omitting categories weighting less than 1KB)
Total: reserved=9953152KB, committed=407892KB
malloc: 57780KB #293282, peak=75433KB #212390
mmap: reserved=9895372KB, committed=350112KB
- Java Heap (reserved=8298496KB, committed=270336KB)
(mmap: reserved=8298496KB, committed=270336KB, peak=520192KB)
- Class (reserved=1048938KB, committed=2922KB)
(classes #3716)
( instance classes #3406, array classes #310)
(malloc=362KB #7060) (peak=364KB #7068)
(mmap: reserved=1048576KB, committed=2560KB, at peak)
( Metadata: )
( reserved=65536KB, committed=24384KB)
( used=24223KB)
( waste=161KB =0.66%)
( Class space:)
( reserved=1048576KB, committed=2560KB)
( used=2423KB)
( waste=137KB =5.36%)
{code}
{code}
$ JAVA_TOOL_OPTIONS=-Djdk.attach.allowStreamingOutput=true jcmd 31544 VM.native_memory
```
Picked up JAVA_TOOL_OPTIONS: -Djdk.attach.allowStreamingOutput=true
31544:
Native Memory Tracking:
(Omitting categories weighting less than 1KB)
Total: reserved=9953148KB, committed=407888KB
malloc: 57776KB #293244, peak=75433KB #212390
mmap: reserved=9895372KB, committed=350112KB
- Java Heap (reserved=8298496KB, committed=270336KB)
(mmap: reserved=8298496KB, committed=270336KB, peak=520192KB)
- Class (reserved=1048938KB, committed=2922KB)
(classes #3716)
( instance classes #3406, array classes #310)
(malloc=362KB #7060 ) (peak=364KB #7068)
(mmap: reserved=1048576KB, committed=2560KB, at peak)
( Metadata: )
( reserved=65536KB, committed=24384KB )
( used=24223KB)
( waste=161KB =0.66%)
( Class space:)
( reserved=1048576KB, committed=2560KB )
( used=2423KB)
( waste=137KB =5.36%)
{code}
$ jcmd 31544 VM.native_memory
{code}
31544:
Native Memory Tracking:
(Omitting categories weighting less than 1KB)
Total: reserved=9953152KB, committed=407892KB
malloc: 57780KB #293282, peak=75433KB #212390
mmap: reserved=9895372KB, committed=350112KB
- Java Heap (reserved=8298496KB, committed=270336KB)
(mmap: reserved=8298496KB, committed=270336KB, peak=520192KB)
- Class (reserved=1048938KB, committed=2922KB)
(classes #3716)
( instance classes #3406, array classes #310)
(malloc=362KB #7060) (peak=364KB #7068)
(mmap: reserved=1048576KB, committed=2560KB, at peak)
( Metadata: )
( reserved=65536KB, committed=24384KB)
( used=24223KB)
( waste=161KB =0.66%)
( Class space:)
( reserved=1048576KB, committed=2560KB)
( used=2423KB)
( waste=137KB =5.36%)
{code}
- relates to
-
JDK-8319055 JCMD should not buffer the whole output of commands
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/d4353626
-
Review(master) openjdk/jdk/24368