首页 > 其他分享 >Arthas jvm(查看当前JVM的信息)

Arthas jvm(查看当前JVM的信息)

时间:2024-09-24 12:23:23浏览次数:10  
标签:--------------------------------------------------------------------------------


Arthas jvm(查看当前JVM的信息)_Arthas


文章目录

  • 二、命令列表
  • 2.1 jvm相关命令
  • 2.1.3 jvm(查看当前JVM的信息)


二、命令列表

2.1 jvm相关命令

2.1.3 jvm(查看当前JVM的信息)

基础语法
jvm

[arthas@18139]$ jvm
 RUNTIME                                                                                                                                                                                                                                
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 MACHINE-NAME                                                      [email protected]                                                                                                                                          
 JVM-START-TIME                                                    2024-09-12 09:54:18                                                                                                                                                  
 MANAGEMENT-SPEC-VERSION                                           1.2                                                                                                                                                                  
 SPEC-NAME                                                         Java Virtual Machine Specification                                                                                                                                   
 SPEC-VENDOR                                                       Oracle Corporation                                                                                                                                                   
 SPEC-VERSION                                                      1.8                                                                                                                                                                  
 VM-NAME                                                           Java HotSpot(TM) 64-Bit Server VM                                                                                                                                    
 VM-VENDOR                                                         Oracle Corporation                                                                                                                                                   
 VM-VERSION                                                        25.121-b13                                                                                                                                                           
 INPUT-ARGUMENTS                                                   -Xmx3g                                                                                                                                                               
                                                                   -Xms3g                                                                                                                                                               
                                                                   -Xmn1152m
 CLASS-PATH                                                        .:/home/ems/ems_eam/../:/home/ems/ems_eam/lib/spring-webmvc-4.2.3.RELEASE.jar
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/3rdparty/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/cl 
                                                                   asses                                                                                                                                                                
 LIBRARY-PATH                                                      /home/ems/ems_eam/lib                                         
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 CLASS-LOADING                                                                                                                                                                                                                          
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 LOADED-CLASS-COUNT                                                17497                                                                                                                                                                
 TOTAL-LOADED-CLASS-COUNT                                          17497                                                                                                                                                                
 UNLOADED-CLASS-COUNT                                              0                                                                                                                                                                    
 IS-VERBOSE                                                        false                                                         
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 COMPILATION                                                                                                                                                                                                                            
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 NAME                                                              HotSpot 64-Bit Tiered Compilers                                                                                                                                      
 TOTAL-COMPILE-TIME                                                138561(ms)                                                   
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 GARBAGE-COLLECTORS                                                                                                             
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 ParNew                                                            38/1969(ms)                                                                                                                                                          
 [count/time]                                                                                                                                                                                                                           
 ConcurrentMarkSweep                                               3/313(ms)                                                                                                                                                            
 [count/time]                                                                                                                   
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 MEMORY-MANAGERS                                                                                                                 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 CodeCacheManager                                                  Code Cache                                                                                                                                                           
                                                                                                                                                                                                                                        
 Metaspace Manager                                                 Metaspace                                                                                                                                                            
                                                                   Compressed Class Space                                                                                                                                               
                                                                                                                                                                                                                                        
 ParNew                                                            Par Eden Space                                                                                                                                                       
                                                                   Par Survivor Space                                                                                                                                                   
                                                                                                                                                                                                                                        
 ConcurrentMarkSweep                                               Par Eden Space                                                                                                                                                       
                                                                   Par Survivor Space                                                                                                                                                   
                                                                   CMS Old Gen                                                   
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 MEMORY                                                                                                                         
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 HEAP-MEMORY-USAGE                                                 2919235584(2.7 GiB)/3221225472(3.0 GiB)/2919235584(2.7 GiB)/561145840(535.2 MiB)                                                                                     
 [committed/init/max/used]                                                                                                                                                                                                              
 NO-HEAP-MEMORY-USAGE                                              192172032(183.3 MiB)/2555904(2.4 MiB)/-1(-1 B)/187781984(179.1 MiB)                                                                                                  
 [committed/init/max/used]                                                                                                                                                                                                              
 PENDING-FINALIZE-COUNT                                            0                                                             
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 OPERATING-SYSTEM                                                                                                                                                                                                                       
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 OS                                                                Linux                                                                                                                                                                
 ARCH                                                              amd64                                                                                                                                                                
 PROCESSORS-COUNT                                                  8                                                                                                                                                                    
 LOAD-AVERAGE                                                      0.07                                                                                                                                                                 
 VERSION                                                           3.10.0-1160.el7.x86_64                                       
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 THREAD                                                                                                                         
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 COUNT                                                             286                                                                                                                                                                  
 DAEMON-COUNT                                                      38                                                                                                                                                                   
 PEAK-COUNT                                                        295                                                                                                                                                                  
 STARTED-COUNT                                                     5190                                                                                                                                                                 
 DEADLOCK-COUNT                                                    0                                                             
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 FILE-DESCRIPTOR                                                                                                                 
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 MAX-FILE-DESCRIPTOR-COUNT                                         10240                                                                                                                                                                
 OPEN-FILE-DESCRIPTOR-COUNT                                        913                                                                                                                                                                  
Affect(row-cnt:0) cost in 15 ms.
[arthas@18139]$


标签:--------------------------------------------------------------------------------
From: https://blog.51cto.com/u_15896157/12098418

相关文章

  • Arthas thread(查看当前JVM的线程堆栈信息)
    文章目录二、命令列表2.1jvm相关命令2.1.2thread(查看当前JVM的线程堆栈信息)举例1:展示[数字]线程的运行堆栈,命令:thread线程ID举例2:找出当前阻塞其他线程的线程二、命令列表2.1jvm相关命令2.1.2thread(查看当前JVM的线程堆栈信息)使用场景:在Arthas中,thread命令用于查看和分......
  • Arthas dashboard(当前系统的实时数据面板)
    文章目录二、命令列表2.1jvm相关命令2.1.1dashboard(当前系统的实时数据面板)二、命令列表2.1jvm相关命令2.1.1dashboard(当前系统的实时数据面板)使用场景:在Arthas中,dashboard命令用于提供JVM实例的实时监控视图。它展示了一个综合的仪表盘,帮助你快速查看JVM的各种关键......
  • Arthas 全攻略:让调试变得简单
    文章目录一、简介二、命令列表一、简介Arthas是一款线上监控诊断产品,通过全局视角实时查看应用load、内存、gc、线程的状态信息,并能在不修改应用代码的情况下,对业务问题进行诊断,包括查看方法调用的出入参、异常,监测方法执行耗时,类加载信息等,大大提升线上问题排查效率。注意:我......
  • jvmxmx和xms参数分析(设定优化校准)
    本文引用自:https://cloud.tencent.com/developer/article/2064210,转载请注明出处 XmnXmsXmxXss有什么区别Xmn、Xms、Xmx、Xss都是JVM对内存的配置参数,我们可以根据不同需要区修改这些参数,以达到运行程序的最好效果。-Xms堆内存的初始大小,默认为物理内存的1/64-Xmx堆内存的......
  • 常用的JVM调优参数和应用场景
    常见的JVM调优参数和应用场景         概要   JVM调优可以显著提升Java应用程序的性能。以下是一些常用的JVM参数和应用场景的介绍。  一、堆内存设置  -Xms<size>和-Xmx<size>:设置初始堆大小和最大堆大小。  1. -Xms<size>  初始化时的......
  • python ssh arthas
    #!/bin/bashARTHAS_FILE="arthas-boot.jar"#检查arthas-boot.jar文件是否存在if[!-f"$ARTHAS_FILE"];thenecho"错误:未找到arthas-boot.jar文件,请确保该文件在当前目录中。"exit1fi#获取当前正在运行的Java进程echo"检测正在运行的Java进程......
  • JVM基础知识(二)Java内存模型
    java线程之可见性volatile不需要加锁,比synchronized更轻量级,不会阻塞线程;从内存可见性角度看,volatile读相当于加锁,volatile写相当于解锁。synchronized既能保证可见性,又能保证原子性;volatile只能保证可见性,无法保证原子性。同步退出同步块->释放监视器->刷......
  • 演示jvm锁存在的问题
    文章目录1、AlbumInfoApiController--》testLock()2、redis添加键值对3、AlbumInfoServiceImpl--》testLock()没有加锁4、使用ab工具测试4.1、安装ab工具4.2、查看redis中的值5、添加本地锁synchronized6、集群情况下问题演示jvm锁:synchronizedlock只能锁......
  • JVM内存学习
    java虚拟机在执行程序的过程中会将内存划分为不同的数据区域JVM分为五个区域:虚拟机栈、本地方法栈、方法区、堆、程序计数器。JVM五个区中虚拟机栈、本地方法栈、程序计数器为线程私有,方法区和堆为线程共享区JVM不同区域的占用内存大小不同,一般情况下堆最大,程序计数器较......
  • java重点学习-JVM类加载器+垃圾回收
    12.7类加载器JVM只会运行二进制文件,类加载器的作用就是将字节码文件加载到JVM中,从而让Java程序能够启动起来。类加载器有哪些启动类加载器(BootStrapClassLoader):加载JAVAHOME/jre/lib目录下的库扩展类加载器(ExtClassLoader):主要加载JAVAHOME/jre/lib/ext目录中的类......