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」首發,歡迎關注交流,禁止第三方轉載。

技術類文章精選

無代碼文章精選

相關文章
相關標籤/搜索