首页 > 编程语言 > 详细

jinfo Java配置信息工具

时间:2018-01-29 00:00:53      阅读:223      评论:0      收藏:0      [点我收藏+]

jinfo(Configuration info for Java)

  jinfo的作用是实时地查看和调整虚拟机各项参数。

jinfo 命令格式:

jinfo [ option ] pid

pid是虚拟机进程ID(用jps可以查询)

option 列表:

选项 说明
-flag to print the value of the named VM flag
-flag [+|-] to enable or disable the named VM flag
-flag to set the named VM flag to the given value
-flags to print VM flags
-sysprops to print Java system properties
<no option> to print both of the above
-h | -help to print this help message

  jinfo 还可以使用 -sysprops 选项把虚拟机进程的 System.getProperties() 的内容打印出来。在运行期修改参数使用-flag[+|-] name 或者 -flage name=value 修改一部分运行期可写的虚拟机参数值。

jinfo Java配置信息工具

原文:https://www.cnblogs.com/wolf-bin/p/8372820.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!