文章目录
- 二、命令列表
- 2.1 jvm相关命令
- 2.1.4 sysprop(查看和修改JVM的系统属性)
- 举例1:sysprop 查看所有系统属性
- 举例2:sysprop java.version 查看单个属性,支持通过tab补全
二、命令列表
2.1 jvm相关命令
2.1.4 sysprop(查看和修改JVM的系统属性)
参数说明:
命令 | 说明 |
---|---|
sysprop | 查看所有系统属性 |
sysprop java.version | 查看单个属性,支持通过tab补全 |
sysprop user.country US | 修改单个属性 |
举例1:sysprop 查看所有系统属性
基础语法
:
sysprop
[arthas@18139]$ sysprop
KEY VALUE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
awt.toolkit sun.awt.X11.XToolkit
file.encoding.pkg sun.io
java.specification.version 1.8
log4j.configurationFile /home/ems/ems_eam/conf/log4j2.xml
sun.cpu.isalist
sun.jnu.encoding UTF-8
java.class.path .:/home/ems/ems_eam/../:/home/ems/ems_eam/lib/spring-webmvc-4.2.3.RELEASE.jar
java.vm.vendor Oracle Corporation
sun.arch.data.model 64
sun.font.fontmanager sun.awt.X11FontManager
java.vendor.url http://java.oracle.com/
user.timezone Asia/Shanghai
os.name Linux
java.vm.specification.version 1.8
user.country CN
sun.java.launcher SUN_STANDARD
sun.boot.library.path /home/ems/3rdparty/java/jre/lib/amd64
sun.java.command com.hero.lte.ems.eam.server.container.Bootstrap
sun.cpu.endian little
user.home /root
user.language zh
java.specification.vendor Oracle Corporation
java.home /home/ems/3rdparty/java/jre
file.separator /
line.separator
java.vm.specification.vendor Oracle Corporation
java.specification.name Java Platform API Specification
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
sun.boot.class.path /home/ems/3rdparty/java/jre/lib/resources.jar:/home/ems/3rdparty/java/jre/lib/rt.jar:/home/ems/3rdparty/java/jre/lib/sunrsasign.jar:/home/ems/3rdparty/java/jre/lib/jsse.jar:/home/ems/3
rdparty/java/jre/lib/jce.jar:/home/ems/3rdparty/java/jre/lib/charsets.jar:/home/ems/3rdparty/java/jre/lib/jfr.jar:/home/ems/3rdparty/java/jre/classes
sun.management.compiler HotSpot 64-Bit Tiered Compilers
java.runtime.version 1.8.0_121-b13
user.name root
path.separator :
os.version 3.10.0-1160.el7.x86_64
java.endorsed.dirs /home/ems/3rdparty/java/jre/lib/endorsed
java.runtime.name Java(TM) SE Runtime Environment
file.encoding UTF-8
eam.momgr /home/ems/ems_eam/../momgr/
sun.nio.ch.bugLevel
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.io.tmpdir /tmp
java.version 1.8.0_121
user.dir /home/ems/ems_eam
os.arch amd64
java.vm.specification.name Java Virtual Machine Specification
java.awt.printerjob sun.print.PSPrinterJob
eam.conf /home/ems/ems_eam/conf
sun.os.patch.level unknown
java.library.path /home/ems/ems_eam/lib
java.vm.info mixed mode
java.vendor Oracle Corporation
java.vm.version 25.121-b13
java.ext.dirs /home/ems/3rdparty/java/jre/lib/ext:/usr/java/packages/lib/ext
sun.io.unicode.encoding UnicodeLittle
eam.chart /home/ems/ems_eam/../chart
java.class.version 52.0
[arthas@18139]$
举例2:sysprop java.version 查看单个属性,支持通过tab补全
基础语法
:
sysprop java.version
[arthas@18139]$ sysprop java.version
KEY VALUE
--------------------------------------------------------------------------------------------------------------------------------
java.version 1.8.0_121
[arthas@18139]$