Arthas sysenv(查看JVM的环境变量)
文章目录
- 二、命令列表
- 2.1 jvm相关命令
- 2.1.5 sysenv(查看JVM的环境变量)
- 举例1:sysenv 查看所有环境变量
- 举例2:sysenv java.version 查看单个属性,支持通过tab补全
二、命令列表
2.1 jvm相关命令
2.1.5 sysenv(查看JVM的环境变量)
参数说明:
命令 | 说明 |
---|---|
sysenv | 查看所有环境变量 |
sysenv java.version | 查看单个属性,支持通过tab补全 |
举例1:sysenv 查看所有环境变量
基础语法
:
sysenv
[arthas@18139]$ sysenv
KEY VALUE
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PATH /usr/local/mysql/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/fping/sbin:/home/ems/3rdparty/xtrabackup/bin:/home/ems/3rdparty/qpress:/home/ems/3rdparty/pigz:/root/b
in
HISTCONTROL ignoredups
MONIT_SERVICE ems_eam_process
LOADEDMODULES
XDG_DATA_DIRS /root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
MONIT_PROCESS_PID -1
HISTSIZE 400000
MONIT_PROCESS_CHILDREN -1
MODULEPATH /usr/share/Modules/modulefiles:/etc/modulefiles
TERM xterm
XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt
MONIT_EVENT Started
LANG zh_CN.UTF-8
XDG_SESSION_ID 38143
MONIT_DESCRIPTION Started
MAIL /var/spool/mail/root
TMOUT 3600
LOGNAME root
PROMPT_COMMAND history -a
PWD /home/ems/ems_eam
HISTTIMEFORMAT %F %T root
_ /usr/bin/nohup
LESSOPEN ||/usr/bin/lesspipe.sh %s
SHELL /bin/bash
SSH_TTY /dev/pts/0
SSH_CLIENT 10.110.25.53 8685 22
OLDPWD /
USER root
SSH_CONNECTION 10.110.25.53 8685 20.150.12.100 22
HOSTNAME localhost.localdomain
MODULESHOME /usr/share/Modules
NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat
BASH_FUNC_module() () { eval `/usr/bin/modulecmd bash $*`
}
MONIT_PROCESS_CPU_PERCENT -1.0
MONIT_HOST localhost.localdomain
XDG_RUNTIME_DIR /run/user/0
LS_COLORS rs=0:di=01;
MONIT_PROCESS_MEMORY 0
HOME /root
SHLVL 3
MONIT_DATE Thu, 12 Sep 2024 09:54:18
[arthas@18139]$
举例2:sysenv java.version 查看单个属性,支持通过tab补全
基础语法
:
sysenv java.version
[arthas@18139]$ sysenv java.version
KEY VALUE
-------------------------------------------------------------------------------------------------------------------------------
java.version null
[arthas@18139]$