diff --git a/arthas-agent-attach/src/main/java/com/taobao/arthas/agent/attach/ArthasAgent.java b/arthas-agent-attach/src/main/java/com/taobao/arthas/agent/attach/ArthasAgent.java index bcd0af43b..02d065f38 100644 --- a/arthas-agent-attach/src/main/java/com/taobao/arthas/agent/attach/ArthasAgent.java +++ b/arthas-agent-attach/src/main/java/com/taobao/arthas/agent/attach/ArthasAgent.java @@ -71,7 +71,7 @@ public class ArthasAgent { * @param arthasHome arthas directory */ public static void attach(String arthasHome) { - new ArthasAgent().init(); + new ArthasAgent(arthasHome).init(); } public void init() throws IllegalStateException {