Skip to content

Commit

Permalink
Update JDK17-bin.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YiRanCN committed Mar 4, 2025
1 parent 72f51fa commit b29226b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/study/program/JAVA/JDK17-bin.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jcmd <pid> VM.flags
jcmd <pid> Thread.print
#
jcmd <pid> VM.command_line
# VM.native_memory 注意启动java进程需要增加参数-XX:NativeMemoryTracking=detail,且这个参数必须在java命令后的第一位置
# option1 = summry 统计信息
# option1 = baseline 设置基线 可以通过再次使用summary.diff来比较
# option2 = scale=MB 修改单位 默认KB
jcmd <pid> VM.native_memory option1 option2
```

### jconsole
Expand Down

0 comments on commit b29226b

Please sign in to comment.