jinfo 实时地查看和调整虚拟机的各项参数
jinfo pid 查看所有运行参数
jinfo -flag = pid:设置指定JVM参数的值
[root@iZ2zeb9d11ovrg1mk1p81eZ ~]# jinfo 14911
Attaching to process ID 14911, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.111-b14
Java System Properties:
java.runtime.name = Java(TM) SE Runtime Environment
java.vm.version = 25.111-b14
sun.boot.library.path = /usr/local/jdk1.8.0_111/jre/lib/amd64
java.vendor.url = http://java.oracle.com/
java.vm.vendor = Oracle Corporation
path.separator = :
file.encoding.pkg = sun.io
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
sun.os.patch.level = unknown
sun.java.launcher = SUN_STANDARD
user.country = US
user.dir = /data/apps/cerebro
java.vm.specification.name = Java Virtual Machine Specification
java.runtime.version = 1.8.0_111-b14
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
os.arch = amd64
java.endorsed.dirs = /usr/local/jdk1.8.0_111/jre/lib/endorsed
java.io.tmpdir = /tmp
line.separator =
java.vm.specification.vendor = Oracle Corporation
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
sun.nio.ch.bugLevel =
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
os.version = 3.10.0-693.11.6.el7.x86_64
user.home = /root
user.timezone = Asia/Shanghai
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.8
user.name = root
java.class.path = /data/apps/cerebro/lib/cerebro.cerebro-0.7.3-launcher.jar
java.vm.specification.version = 1.8
sun.arch.data.model = 64
sun.java.command = /data/apps/cerebro/lib/cerebro.cerebro-0.7.3-launcher.jar
java.home = /usr/local/jdk1.8.0_111/jre
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.X11.XToolkit
java.vm.info = mixed mode
java.version = 1.8.0_111
java.ext.dirs = /usr/local/jdk1.8.0_111/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /usr/local/jdk1.8.0_111/jre/lib/resources.jar:/usr/local/jdk1.8.0_111/jre/lib/rt.jar:/usr/local/jdk1.8.0_111/jre/lib/sunrsasign.jar:/usr/local/jdk1.8.0_111/jre/lib/jsse.jar:/usr/local/jdk1.8.0_111/jre/lib/jce.jar:/usr/local/jdk1.8.0_111/jre/lib/charsets.jar:/usr/local/jdk1.8.0_111/jre/lib/jfr.jar:/usr/local/jdk1.8.0_111/jre/classes
java.vendor = Oracle Corporation
file.separator = /
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.cpu.isalist =
VM Flags:
Non-default VM flags: -XX:CICompilerCount=3 -XX:InitialHeapSize=262144000 -XX:MaxHeapSize=4164943872 -XX:MaxNewSize=1388314624 -XX:MinHeapDeltaBytes=524288 -XX:NewSize=87031808 -XX:OldSize=175112192 -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseParallelGC
Command line: -Duser.dir=/data/apps/cerebro