jinfo
JVM Configuration info这个命令作用是实时查看和调整虚拟机运行参数。 之前的jps -v口令只能查看到显示指定的参数,如果想要查看未被显示指定的参数的值就要使用jinfo口令。【JVM配置参数调整查看】
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[root@localhost bin]# jinfo -help
Usage:
    jinfo [option] <pid>
        (to connect to running process)
    jinfo [option] <executable <core>
        (to connect to a core file)
    jinfo [option] [server_id@]<remote server IP or hostname>
        (to connect to remote debug server)
 
where <option> is one of:
    -flag <name>         to print the value of the named VM flag
    -flag [+|-]<name>    to enable or disable the named VM flag
    -flag <name>=<value> to set the named VM flag to the given value
    -flags               to print VM flags
    -sysprops            to print Java system properties
    <no option>          to print both of the above
    -h | -help           to print this help message
参数

-flag:输出指定args参数的值

-flags:输出所有JVM参数的值
-sysprops:输出系统属性,等同于System.getProperties()
 
示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[root@localhost bin]# jinfo -sysprops 24971 | more
Attaching to process ID 24971, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 24.79-b02
java.runtime.name = Java(TM) SE Runtime Environment
java.vm.version = 24.79-b02
sun.boot.library.path = /usr/local/java/jdk1.7.0_79/jre/lib/amd64
shared.loader =
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
java.util.logging.config.file = /home/yuhuo-tomcat/tomcat2/conf/logging.properties
tomcat.util.buf.StringCache.byte.enabled = true
sun.os.patch.level = unknown
sun.java.launcher = SUN_STANDARD
user.country = CN
user.dir = /home/yuhuo-tomcat/tomcat2/bin
java.vm.specification.name = Java Virtual Machine Specification
java.runtime.version = 1.7.0_79-b15
org.apache.catalina.startup.TldConfig.jarsToSkip = tomcat7-websocket.jar
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
os.arch = amd64
1
2
[root@localhost bin]# jinfo -flag MaxPermSize 24971
-XX:MaxPermSize=85983232

最新文章

  1. 安装ANDROID5.0 ,adb连接不上
  2. 比较全的JS checkbox全选、取消全选、删除功能代码
  3. brute-force search
  4. 007. 自定义ListBox的item的宽高, 字体居中
  5. Java API —— JDK5新特性
  6. MyBatis之传入参数parameterType
  7. jQuery 分步引导 插件
  8. MinGW 和 MSVC 下,使用 FILE 类型的一个奇怪的问题
  9. 2008r2 显示桌面图标
  10. Automatic Trading
  11. Junit4学习(四)Junit4常用注解
  12. spring集成shiro登陆流程(上)
  13. deepfake-faceswap第一篇论文-2016摘要
  14. python-web自动化-文件上传操作(非input标签的上传,需要借助第三方工具)
  15. CentOS 7安装SSHFS 实现远程主机目录 挂载为本地目录
  16. Polygon Offset
  17. ArcGIS案例学习笔记2_2_txtexcel空间可视化和空间插值
  18. composer ip2city配置
  19. Hive性能优化--map数和reduce数
  20. 浅谈arguments与arguments的妙用

热门文章

  1. ABAP分享四 选择屏幕下拉菜单简单实现示例
  2. 团队项目之Scrum4
  3. PHP计算二维数组指定元素的和
  4. 连接 sql
  5. 如何通过 subprocess 持续获取输出内容
  6. a是什么??
  7. 使用原生代码实现一个Events模块,可以实现自定义事件的订阅、触发、移除功能
  8. 阿里云搭建wordpress博客教程
  9. 基于V7的emWin多屏显示方案模板,同时驱动LCD和OLED例程
  10. sql server多表关联update