arthas-boot.jar 工具的简单使用
生活随笔
收集整理的這篇文章主要介紹了
arthas-boot.jar 工具的简单使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?C:\Users\iadai\Desktop\資料-java設計模式>java -jar arthas-boot.jar
[INFO] arthas-boot version: 3.1.1
[INFO] Process 19852 already using port 3658
[INFO] Process 19852 already using port 8563
[INFO] Found existing java process, please choose one and hit RETURN.
* [1]: 19852 com.itheima.pattern.proxy.jdk_proxy.Client[2]: 11792 org.jetbrains.idea.maven.server.RemoteMavenServer36[3]: 19440 org.jetbrains.jps.cmdline.Launcher[4]: 13592
1
[INFO] arthas home: C:\Users\iadai\.arthas\lib\3.4.6\arthas
[INFO] The target process already listen port 3658, skip attach.
[INFO] arthas-client connect 127.0.0.1 3658,---. ,------. ,--------.,--. ,--. ,---. ,---./ O \ | .--. ''--. .--'| '--' | / O \ ' .-'
| .-. || '--'.' | | | .--. || .-. |`. `-.
| | | || |\ \ | | | | | || | | |.-' |
`--' `--'`--' '--' `--' `--' `--'`--' `--'`-----'wiki https://arthas.aliyun.com/doc
tutorials https://arthas.aliyun.com/doc/arthas-tutorials.html
version 3.4.6
pid 19852
time 2021-02-23 10:55:04[arthas@19852]$ jad com.sun.proxy.$Proxy0ClassLoader:
+-sun.misc.Launcher$AppClassLoader@18b4aac2+-sun.misc.Launcher$ExtClassLoader@12de4226Location:/** Decompiled with CFR.** Could not load the following classes:* com.itheima.pattern.proxy.jdk_proxy.SellTickets*/?
package com.sun.proxy;import com.itheima.pattern.proxy.jdk_proxy.SellTickets;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.lang.reflect.UndeclaredThrowableException;public final class $Proxy0 extends Proxy implements SellTickets {private static Method m1;private static Method m2;private static Method m3;private static Method m0;public $Proxy0(InvocationHandler invocationHandler) {super(invocationHandler);}static {try {m1 = Class.forName("java.lang.Object").getMethod("equals", Class.forName("java.lang.Object"));m2 = Class.forName("java.lang.Object").getMethod("toString", new Class[0]);m3 = Class.forName("com.itheima.pattern.proxy.jdk_proxy.SellTickets").getMethod("sell", new Class[0]);m0 = Class.forName("java.lang.Object").getMethod("hashCode", new Class[0]);return;}catch (NoSuchMethodException noSuchMethodException) {throw new NoSuchMethodError(noSuchMethodException.getMessage());}catch (ClassNotFoundException classNotFoundException) {throw new NoClassDefFoundError(classNotFoundException.getMessage());}}public final boolean equals(Object object) {try {return (Boolean)this.h.invoke(this, m1, new Object[]{object});}catch (Error | RuntimeException throwable) {throw throwable;}catch (Throwable throwable) {throw new UndeclaredThrowableException(throwable);}}public final String toString() {try {return (String)this.h.invoke(this, m2, null);}catch (Error | RuntimeException throwable) {throw throwable;}catch (Throwable throwable) {throw new UndeclaredThrowableException(throwable);}}public final int hashCode() {try {return (Integer)this.h.invoke(this, m0, null);}catch (Error | RuntimeException throwable) {throw throwable;}catch (Throwable throwable) {throw new UndeclaredThrowableException(throwable);}}public final void sell() {try {this.h.invoke(this, m3, null);return;}catch (Error | RuntimeException throwable) {throw throwable;}catch (Throwable throwable) {throw new UndeclaredThrowableException(throwable);}}
}Affect(row-cnt:1) cost in 604 ms.
[arthas@19852]$
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
總結
以上是生活随笔為你收集整理的arthas-boot.jar 工具的简单使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 结构型模式
- 下一篇: 代理模式——静态代理,动态代理(JDK代