时光钟摆

一点一点

Java 命令:jinfo

通过jps得到服务器上的全部jvm

然后通过jinfo pid查看具体的jvm信息

[root@izbp16djex81rgji9ycnyfz ~]# jinfo 2384
Attaching to process ID 2384, please wait...
# 调试器连接成功
Debugger attached successfully.
# 服务编译检测
Server compiler detected.
# JVM版本
JVM version is 25.151-b12
Java System Properties:

# java运行时名称
java.runtime.name = Java(TM) SE Runtime Environment
# java虚拟机版本
java.vm.version = 25.151-b12
# 根lib路径
sun.boot.library.path = /usr/local/jdk/jre/lib/amd64
# java协议处理包
java.protocol.handler.pkgs = org.springframework.boot.loader
# java供应商url
java.vendor.url = http://java.oracle.com/
# java供应商
java.vm.vendor = Oracle Corporation
# 路径分割符
path.separator = :
# 文件编码包
file.encoding.pkg = sun.io
# java虚拟机名称
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
# sun系统补丁级别
sun.os.patch.level = unknown
# java发布者
sun.java.launcher = SUN_STANDARD
# 用户国籍
user.country = US
# 用户目录
user.dir = /opt/app
# java虚拟机详细名称
java.vm.specification.name = Java Virtual Machine Specification
# jvm进程
PID = 2384
# java运行时版本
java.runtime.version = 1.8.0_151-b12
# java图形化环境
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
os.arch = amd64
java.endorsed.dirs = /usr/local/jdk/jre/lib/endorsed
# 日志提供者slf4j
org.jboss.logging.provider = slf4j
line.separator = 

# java io 的缓存目录
java.io.tmpdir = /tmp
java.vm.specification.vendor = Oracle Corporation
# 操作系统名称
os.name = Linux
# 日志级别类型
LOG_LEVEL_PATTERN = %5p [bootstrap,%X{X-B3-TraceId:-},%X{X-B3-SpanId:-},%X{X-Span-Export:-}]
# 默认编码
sun.jnu.encoding = UTF-8
java.library.path = /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
spring.beaninfo.ignore = true
# 默认监听注册
com.netflix.servo.DefaultMonitorRegistry.registryClass = com.netflix.servo.BasicMonitorRegistry
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.2.2.el7.x86_64
# 用户主页
user.home = /root
# 用户时区
user.timezone = Asia/Shanghai
catalina.useNaming = false
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
# 应用id
@appId = aps-provider
java.specification.version = 1.8
catalina.home = /tmp/tomcat.8133575666112202129.8065
user.name = root
# java类路径
java.class.path = micro-service-aps-provider.jar
java.vm.specification.version = 1.8
sun.arch.data.model = 64
sun.java.command = micro-service-aps-provider.jar
# java主页
java.home = /usr/local/jdk/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_151
java.ext.dirs = /usr/local/jdk/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /usr/local/jdk/jre/lib/resources.jar:/usr/local/jdk/jre/lib/rt.jar:/usr/local/jdk/jre/lib/sunrsasign.jar:/usr/local/jdk/jre/lib/jsse.jar:/usr/local/jdk/jre/lib/jce.jar:/usr/local/jdk/jre/lib/charsets.jar:/usr/local/jdk/jre/lib/jfr.jar:/usr/local/jdk/jre/classes
java.awt.headless = true
java.vendor = Oracle Corporation
# catalina日志
catalina.base = /tmp/tomcat.8133575666112202129.8065
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:  

其中Non-default VM flags很重要

阅读更多
文章标签: jinfo
个人分类: Java 内存机制
想对作者说点什么? 我来说一句

线上问题排查

2018年05月15日 13KB 下载

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭