ITPub博客

首页 > 数据库 > 数据库开发技术 > arthas快速入门视频演示

arthas快速入门视频演示

原创 数据库开发技术 作者:FunTester 时间:2020-04-20 08:56:23 0 删除 编辑

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

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

官方文档地址如下:https://alibaba.github.io/arthas/

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

快速入门

  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”首发,欢迎关注交流,禁止第三方转载。

技术类文章精选

无代码文章精选


原文作者:FunTester;如有侵权,请联系管理员删除。

上一篇: Groovy中的闭包
请登录后发表评论 登录
全部评论

注册时间:2019-07-07

  • 博文量
    1037
  • 访问量
    421240