zoukankan      html  css  js  c++  java
  • jvm 系列之查看JVM参数

    1.jps -l  查看所有jvm 的进程

    28736 sun.tools.jps.Jps
    28751 org.apache.catalina.startup.Bootstrap

    2.查看永久区的最大大小(jdk1.7)

    jinfo -flag MaxPermSize 28751            //jinfo 只能对-XX: 这种参数可以查看,而不能查看-Xmx1024m 之类的堆内存大小
    -XX:MaxPermSize=67108864

    如果出现:

     pid: well-known file is not secure

     请确认当前执行jinfo的命令的用户有 /tmp/hsperfdata_$USER/$PID 文件的权限

    如果出现 

    Exception in thread "main" java.io.IOException: Command failed in target VM
        at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:224)
        at sun.tools.attach.HotSpotVirtualMachine.executeCommand(HotSpotVirtualMachine.java:217)
        at sun.tools.attach.HotSpotVirtualMachine.setFlag(HotSpotVirtualMachine.java:190)
        at sun.tools.jinfo.JInfo.flag(JInfo.java:133)
        at sun.tools.jinfo.JInfo.main(JInfo.java:76)

    则说明对这个flag 参数不支持....

    3.使用jstat 查看jvm内存使用情况

    jstat -gcutil 27751
      S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT   
      0.00  37.50  97.57  82.62  97.25   1669   14.586    25    2.999   17.585
  • 相关阅读:
    Win10 蓝屏
    XE Button Color
    IOS 屏幕尺寸
    Delphi 转圈 原型进度条 AniIndicator 及线程配合使用
    Delphi 询问框 汉化
    Delphi Android 询问框
    Delphi BLE 控件
    浮点高低位赋值
    delphi 蓝牙 TBluetoothLE
    16进制字节转换
  • 原文地址:https://www.cnblogs.com/predisw/p/4978367.html
Copyright © 2011-2022 走看看