zoukankan      html  css  js  c++  java
  • Arthas 学习笔记(一)之初始

    一. 背景

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

    二. 安装

    1、基础包安装

     1) 下载

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

     2) 安装

    2、全量包安装

     1) 下载

        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  

        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 中的进程

  • 相关阅读:
    软件工程提问回顾与个人总结
    OO第二次单元总结
    OO第一次单元总结
    软件工程结对项目
    软件工程第一次阅读作业
    软件工程第0次个人作业
    结队作业
    软件工程第一次阅读作业
    软工第0次作业
    oo第四篇博客作业
  • 原文地址:https://www.cnblogs.com/sandyflower/p/13207805.html
Copyright © 2011-2022 走看看