查看所有参数:
java -XX:+PrintFlagsInitial -version
查看有哪些JAVA进程
D:\tsoffice-3.1\office\tsjdk64\bin>jcmd 9296 2724 sun.tools.jcmd.JCmd
查看某个JAVA进程的信息
D:\tsoffice-3.1\office\tsjdk64\bin> jinfo -sysprops 9296 Attaching to process ID 9296, please wait... Debugger attached successfully. Server compiler detected. JVM version is 25.292-b233 java.runtime.name = OpenJDK Runtime Environment java.vm.version = 25.292-b233 sun.boot.library.path = C:\Program Files\Taishan\Office\jdk\bin java.vendor.url = https://adoptopenjdk.net/ java.vm.vendor = Oracle Corporation path.separator = ; file.encoding.pkg = sun.io java.vm.name = OpenJDK 64-Bit Server VM sun.os.patch.level = user.script = user.country = CN user.dir = C:\Program Files\Taishan\Office\bin java.vm.specification.name = Java Virtual Machine Specification java.runtime.version = 1.8.0-taishan-windows-amd64-2021_04_23_14_35-233 java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment os.arch = amd64 java.endorsed.dirs = C:\Program Files\Taishan\Office\jdk\lib\endorsed line.separator = java.io.tmpdir = C:\TEMP\ java.vm.specification.vendor = Oracle Corporation user.variant = os.name = Windows 10 sun.jnu.encoding = GBK java.library.path = C:\Program Files\Taishan\Office\bin;C:\Program Files\Taishan\Office\jdk\bin sun.awt.enableExtraMouseButtons = true java.specification.name = Java Platform API Specification java.class.version = 52.0 java.awt.noerasebackground = true sun.management.compiler = HotSpot 64-Bit Tiered Compilers os.version = 10.0 user.home = C:\Users\Administrator user.timezone = Asia/Shanghai java.awt.printerjob = sun.awt.windows.WPrinterJob file.encoding = GBK java.specification.version = 1.8 user.name = Administrator java.class.path = C:\Program Files\Taishan\Office\bin\TIOffice.jar; java.vm.specification.version = 1.8 sun.arch.data.model = 64 java.home = C:\Program Files\Taishan\Office\jdk user.language = zh java.specification.vendor = Oracle Corporation awt.toolkit = sun.awt.windows.WToolkit java.vm.info = mixed mode java.version = 1.8.0-taishan java.ext.dirs = C:\Program Files\Taishan\Office\jdk\lib\ext;C:\Windows\Sun\Java\lib\ext sun.boot.class.path = C:\Program Files\Taishan\Office\jdk\lib\resources.jar;C:\Program Files\Taishan\Office\jdk\lib\rt.jar;C:\Program Files\Taishan\Office\jdk\lib\sunrsasign.jar;C:\Program Files\Taishan\Office\jdk\lib\jsse.jar;C:\Program Files\Taishan\Office\jdk\lib\jce.jar;C:\Program Files\Taishan\Office\jdk\lib\charsets.jar;C:\Program Files\Taishan\Office\jdk\lib\jfr.jar;C:\Program Files\Taishan\Office\jdk\classes java.vendor = AdoptOpenJdk file.separator = \ java.vendor.url.bug = https://github.com/AdoptOpenJDK/openjdk-build/issues sun.io.unicode.encoding = UnicodeLittle sun.cpu.endian = little java.java2d.ddlock = true sun.desktop = windows java.java2d.noddraw = true sun.cpu.isalist = amd64