Arthas调优工具使用

1,服务器端下载
curl -O https://arthas.aliyun.com/arthas-boot.jar

2,服务器端启动
java -jar arthas-boot.jar
选定要绑定的Java进程ID

3,本地idea安装Arthas idea

4,选定方法右键trace,生成命令
trace com.xxx.xxx.xxx.voucher.ListCmdExe assemblyResponse -n 5 --skipJDKMethod false

5,服务器上执行,看结果, 找耗时长的子方法

6,根据结果继续执行4,5, 逐步优化。

注意:在docker或k8s的pod里也可以用,不过可能会因为重启等原因导致jar包丢了,但是可以重新下载再启动arthas。

相关推荐

  1. 精通JVM监控与工具使用与命令指南

    2024-06-05 23:34:02       30 阅读
  2. 使用Python实现超参数

    2024-06-05 23:34:02       34 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-05 23:34:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-05 23:34:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-06-05 23:34:02       87 阅读
  4. Python语言-面向对象

    2024-06-05 23:34:02       96 阅读

热门阅读

  1. 不要手动做数据校验

    2024-06-05 23:34:02       27 阅读
  2. SpringMvc与SpringBoot有什么不同?

    2024-06-05 23:34:02       29 阅读
  3. 头歌数据库备份与恢复

    2024-06-05 23:34:02       30 阅读
  4. Flutter 中的 PerformanceOverlay 小部件:全面指南

    2024-06-05 23:34:02       30 阅读
  5. Leetcode 3171. Find Subarray With Bitwise AND Closest to K

    2024-06-05 23:34:02       30 阅读
  6. Go语言-big.Int

    2024-06-05 23:34:02       24 阅读
  7. 亚信安慧AntDB:全新的数据库体验

    2024-06-05 23:34:02       34 阅读
  8. rust calcmine读取excel

    2024-06-05 23:34:02       29 阅读