diff --git a/site/src/site/sphinx/en/faq.md b/site/src/site/sphinx/en/faq.md index 907231bb..ebfa939b 100644 --- a/site/src/site/sphinx/en/faq.md +++ b/site/src/site/sphinx/en/faq.md @@ -8,7 +8,9 @@ [https://github.com/alibaba/arthas/issues/44](https://github.com/alibaba/arthas/issues/44) -#### com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded +##### target process not responding or HotSpot VM not loaded + +com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded 1. Check whether the current user and the target java process are consistent. If they are inconsistent, switch to the same user. JVM can only attach java processes under the same user. 2. Try to use `jstack -l $pid`. If the process does not respond, it means that the process may freeze and fail to respond to the JVM attach signal. So Arthas based on the attach mechanism cannot work. Try to use `jmap` heapdump to analyze. diff --git a/site/src/site/sphinx/faq.md b/site/src/site/sphinx/faq.md index 5484de71..e7b9fb0e 100644 --- a/site/src/site/sphinx/faq.md +++ b/site/src/site/sphinx/faq.md @@ -9,7 +9,9 @@ [https://github.com/alibaba/arthas/issues/44](https://github.com/alibaba/arthas/issues/44) -#### com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded +##### target process not responding or HotSpot VM not loaded + +com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded 1. 检查当前用户和目标java进程是否一致。如果不一致,则切换到同一用户。JVM只能attach同样用户下的java 进程。 2. 尝试使用 `jstack -l $pid`,如果进程没有反应,则说明进程可能假死,无法响应JVM attach信号。所以同样基于attach机制的Arthas无法工作。尝试使用`jmap` heapdump后分析。