我要评分
获取效率
正确性
完整性
易理解

jinfo

Introduction

The jinfo tool can be used to view the extended parameters of a running Java application, including Java system attributes and JVM command line parameters. In addition, jinfo can be used to dynamically modify some parameters of a running JVM.

Installation Mode

Use OpenJDK to install this tool. For BiSheng JDK, it is a built-in tool.

Usage

  • If a Java environment is configured, you can directly run the jinfo command.
  • If no Java environment is not configured, run the ps -ef | grep java command to find the Java process. Then, switch to the JDK bin directory and run the ./jinfo command.

    Syntax:

    1
    jinfo –flags $pid
    

    Common parameters are as follows:

    Parameter

    Description

    -flags

    Displays all parameters, including Java System attributes and JVM command line parameters.

    -sysprops

    Displays the command line.

    -flag name=value

    Sets the corresponding parameter.