arthas快速入门视频演示

以前介绍过了arthas这个阿里的开源Java诊断工具,实在是很是好用。这里赶忙补上了快速入门的视频。git

基本内容就是,介绍、安装、启动和几个基础命令。github

官方文档地址以下:https://alibaba.github.io/arthas/编程

本期视频演示的具体内容以下:api

快速入门网络

  1. 启动Demo
  2. 启动arthas
  3. 查看dashboard
  4. 经过thread命令来获取到进程
  5. watch
  6. 退出arthas

arthas快速入门

因为我并无使用官方的演示Demo,本身随手写了一个,下面是代码:工具

package com.fun


import com.fun.frame.httpclient.FanLibrary
import com.fun.utils.RString

class sd extends FanLibrary {

    public static void main(String[] args) {

        while (true) {
            sleep(1000)
            RString.getStringWithoutNum(10)
            sleep(1000)
            String url = "https://api.apiopen.top/getAllUrl"
            def get = getHttpGet(url)
            def response = getHttpResponse(get)
        }
        testOver()
    }


}

  • 郑重声明:“FunTester”首发,欢迎关注交流,禁止第三方转载。

技术类文章精选

无代码文章精选

相关文章
相关标签/搜索