arthas的安装和使用小结

本文介绍了如何在Linux和Windows上安装arthas,包括下载、解压和运行步骤。此外,详细讲解了arthas的常用命令,如watch、jad、trace、thread、sc、monitor、getstatic、sysprop、redefine、stack和tt,这些命令用于方法监控、性能分析、调试和系统属性修改。arthas作为局部调试工具,与VisualVM互补,更专注于细粒度的调试和问题排查。
摘要由CSDN通过智能技术生成

一.1.Linux下载安装arthas
     https://blog.csdn.net/minicto/article/details/82906220
     tar -zvxf arthas.tar.gz 
     cd arthas
     ./install-local.sh 
  
   2.windows下载安装arthas
     https://alibaba.github.io/arthas/install-detail.html#arthas-boot
     解压
     java -jar arthas-boot.jar
     选择一个需要监控的进程ID回车
  
   注意事项: 只支持jdk6(+) 以上版本,否则下面命令执行不成功
  
二.命令使用
    1.示例代码
    package com.arthas;
    import java.util.UUID;
    public class Test {
        /**
        *
        * @return
        */
       public static String uuid(){
          return UUID.randomUUID().toString().replaceAll("-", "");
       }

       public static void main(String[] args) {

           while(true){
               System.out.println("uuid = " + uuid()); 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值