Arthas 学习笔记(一)之初始

一. 背景html

  官网地址:https://arthas.gitee.io/git

二. 安装github

一、基础包安装tomcat

 1) 下载jvm

    a) https://alibaba.github.io/arthas/arthas-boot.jarmaven

 2) 安装ide

二、全量包安装线程

 1) 下载htm

    a) http://repository.sonatype.org/service/local/artifact/maven/redirect?r=central-proxy&g=com.taobao.arthas&a=arthas-packaging&e=zip&c=bin&v=LATEST  blog

    b) https://github.com/alibaba/arthas/releases/tag/arthas-all-3.3.3

    c) https://arthas.gitee.io/download.html

 2) 安装

 3) 运行

三. 基本使用方法

在 第二章节中的 3) 小节中选择 要监控的进程,这里示例选择 58420 进程进行查看。

1) dashborad  ----  要监控的进程实时数据面板

 能够看到 三类信息: 线程、JVM内存使用状况、运行的实时环境信息等。

 2)thread  (查看 attach 上的进程上 全部线程)

 查看具体的线程栈信息,能够执行如下命令:

thread id  (id 在 dashboard 或 thread 命令展示结果中 的 id)

 thread -n count 打印前count个最忙的线程

 thread -n count -i 毫秒数  打印采样间隔为毫秒数的前count个最忙的线程

  thread -h 能够看到 thread  全部命令

 3)jvm 查看jvm 包括内存使用状况信息

4)heapdump  堆内存dump ,功能相似 jmap

 

问题:

监控 tomcat 中的进程

相关文章
相关标签/搜索