openjdk-jinfo源码分析

        jinfo是Java Virtual Machine Configuration Info Tool的缩写,是JDK自带的一个命令行工具,用于查看和修改Java虚拟机的运行时参数。jinfo命令可以用于查询Java虚拟机的启动参数、系统属性、环境变量等信息,也可以用于修改Java虚拟机的运行时参数。

使用方法

[root@localhost ~]# jinfo -help
Usage:
    jinfo [option] <pid>
        (to connect to running process)
    jinfo [option] <executable <core>
        (to connect to a core file)
    jinfo [option] [server_id@]<remote server IP or hostname>
        (to connect to remote debug server)

where <option> is one of:
    -flag <name>         输出指定名称的VM选项
    -flag [+|-]<name>    启动或者关闭指定名称的VM选项
    -flag <name>=<value> 将指定名称的VM选项设置成value数值
    -flags               输出VM选项值
    -sysprops            输出虚拟机系统属性值
    <no option>          输出虚拟机参数值和JAVA系统属性值
    -h | -help           打印此帮助消息

源码分析

        在HosSpot的runtime模块中,用来传递JVM参数和选项信息的是Arguments类。应用

java-latest-openjdk-devel.x86_64 : OpenJDK 24 Development Environment java-latest-openjdk-devel-fastdebug.x86_64 : OpenJDK 24 Development Environment optimised with full debugging on java-latest-openjdk-devel-slowdebug.x86_64 : OpenJDK 24 Development Environment unoptimised with full debugging on java-latest-openjdk-fastdebug.x86_64 : OpenJDK 24 Runtime Environment optimised with full debugging on java-latest-openjdk-headless.x86_64 : OpenJDK 24 Headless Runtime Environment java-latest-openjdk-headless-fastdebug.x86_64 : OpenJDK 24 Runtime Environment optimised with full debugging on java-latest-openjdk-headless-slowdebug.x86_64 : OpenJDK 24 Runtime Environment unoptimised with full debugging on java-latest-openjdk-javadoc.x86_64 : OpenJDK 24 API documentation java-latest-openjdk-javadoc-zip.x86_64 : OpenJDK 24 API documentation compressed in a single archive java-latest-openjdk-jmods.x86_64 : JMods for OpenJDK 24 java-latest-openjdk-jmods-fastdebug.x86_64 : JMods for OpenJDK 24 optimised with full debugging on java-latest-openjdk-jmods-slowdebug.x86_64 : JMods for OpenJDK 24 unoptimised with full debugging on java-latest-openjdk-portable.x86_64 : OpenJDK 23 Runtime Environment portable edition java-latest-openjdk-portable-devel.x86_64 : OpenJDK 23 Development Environment portable edition java-latest-openjdk-portable-devel-fastdebug.x86_64 : OpenJDK 23 Runtime and Development Environment portable edition optimised with full debugging on java-latest-openjdk-portable-devel-slowdebug.x86_64 : OpenJDK 23 Runtime and Development Environment portable edition unoptimised with full debugging on java-latest-openjdk-portable-docs.x86_64 : OpenJDK 23 API documentation java-latest-openjdk-portable-fastdebug.x86_64 : OpenJDK 23 Runtime Environment portable edition optimised with full debugging on java-latest-openjdk-portable-misc.x86_64 : OpenJDK 23 miscellany java-latest-openjdk-portable-slowdebug.x86_64 : OpenJDK 23 Runtime Environment portable edition unoptimised with full debugging on java-latest-openjdk-portable-sources.x86_64 : OpenJDK 23 full patched sources of portable JDK java-latest-openjdk-portable-static-libs.x86_64 : OpenJDK 23 libraries for static linking - portable edition java-latest-openjdk-portable-static-libs-fastdebug.x86_64 : OpenJDK 23 libraries for static linking - portable edition optimised with full debugging on java-latest-openjdk-portable-static-libs-slowdebug.x86_64 : OpenJDK 23 libraries for static linking - portable edition unoptimised with full debugging on java-latest-openjdk-portable-unstripped.x86_64 : The OpenJDK 23 runtime environment. java-latest-openjdk-slowdebug.x86_64 : OpenJDK 24 Runtime Environment unoptimised with full debugging on java-latest-openjdk-src.x86_64 : OpenJDK 24 Source Bundle java-latest-openjdk-src-fastdebug.x86_64 : OpenJDK 24 Source Bundle for packages with debugging on and optimisation java-latest-openjdk-src-slowdebug.x86_64 : OpenJDK 24 Source Bundle for packages with debugging on and no optimisation java-latest-openjdk-static-libs.x86_64 : OpenJDK 24 libraries for static linking java-latest-openjdk-static-libs-fastdebug.x86_64 : OpenJDK 24 libraries for static linking optimised with full debugging on java-latest-openjdk-static-libs-slowdebug.x86_64 : OpenJDK 24 libraries for static linking unoptimised with full debugging on icedtea-web.x86_64 : Additional Java components for OpenJDK - Java browser plug-in and Web Start implementation openjdk-asmtools.noarch : Set of tools used to assemble / disassemble proper and improper Java .class files openjdk-asmtools7.noarch : Set of tools used to assemble / disassemble proper and improper Java .class files for JDK version 11 and lesser
09-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值