arthas 生成執行時的方法請求與響應引數
阿新 • • 發佈:2022-12-02
請求格式
watch 類 方法 '{params, returnObj, throwExp}' -n 5 -x 3
其中引數說明:
params是引數列表,是一個數組,可以直接通過下標方式訪問
returnObj 返回的結果
throwExp 丟擲的異常,如果有那麼也打印出來
-n代表只輸出一次
-x 3 深度 ,不寫的情況下預設為1
例如
watch com.chenweixian.remote.InfoRemote tradedUser '{params, returnObj, throwExp}' -n 5 -x 3
輸出結果
從結果中可以看到請求的是一個類
BaseRequest包含
TradedUserReq ,其中的引數customerIds,值是60888, 20108, 20106,
返回的是一個物件
BaseResponse
ts=2022-12-02 15:22:31; [cost=481.788998ms] result=@ArrayList[ @Object[][ @BaseRequest[ system=@String[ccjr-business-biz], data=@TradedUserReq[TradedUserReq(customerIds=[60888, 20108, 20106])], ], ], @BaseResponse[ code=@Integer[10000], msg=@String[請求成功], codeArgs=@Object[][isEmpty=true;size=0], system=@String[ccjr-option-biz], data=@TradedUserRes[ result=@LinkedHashMap[isEmpty=false;size=165], ], ], null, ]
其中的引數