zoukankan      html  css  js  c++  java
  • jinfo Java配置信息工具

    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 修改一部分运行期可写的虚拟机参数值。

  • 相关阅读:
    Less-21
    Less-22
    Less-21
    Less-20
    ssrf redis gopher
    Less19
    Less18
    Arm 系统查看、修改系统时间
    通过 grpc 请求标头发送自定义数据
    gRpc 空参数
  • 原文地址:https://www.cnblogs.com/wolf-bin/p/8372820.html
Copyright © 2011-2022 走看看