-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
启动sanbox 提示com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded #106
Comments
目标JVM在被attach之后直接失去了响应,才会出现这个错误。 但JVM为什么挂了这个真不好说,我只能分享我排查的几个
希望能对你有用。如果你是第一次尝试用sandbox,我建议换个应用先跑起来,让你先有个体感 |
我也遇到这个问题,项目是用spring boot开发的,运行正常,用普通用户启动的。 附加的时候,项目输出如下: "PollingServerListUpdater-1" #52 daemon prio=5 os_prio=0 tid=0x00007fa480266800 nid=0x61cc waiting on condition [0x00007fa45e6ef000] "DataPublisher" #51 daemon prio=5 os_prio=0 tid=0x00007fa464d06000 nid=0x61cb waiting on condition [0x00007fa45e7f0000] "PollingServerListUpdater-0" #50 daemon prio=5 os_prio=0 tid=0x00007fa464e63000 nid=0x61ca waiting on condition [0x00007fa45e8f1000] "NFLoadBalancer-PingTimer-water-cloud-api-0-0-1" #47 daemon prio=5 os_prio=0 tid=0x00007fa464017000 nid=0x61c9 in Object.wait() [0x00007fa49954b000] "RibbonApacheHttpClientConfiguration.connectionManagerTimer" #46 daemon prio=5 os_prio=0 tid=0x00007fa464783000 nid=0x61c8 in Object.wait() [0x00007fa49964c000] "SessionValidationThread-1" #45 daemon prio=5 os_prio=0 tid=0x00007fa4642c3000 nid=0x5836 waiting on condition [0x00007fa45f1f2000] "DestroyJavaVM" #44 prio=5 os_prio=0 tid=0x00007fa4e800a800 nid=0x5806 waiting on condition [0x0000000000000000] "http-nio-40010-AsyncTimeout" #42 daemon prio=5 os_prio=0 tid=0x00007fa4e85f5800 nid=0x5835 waiting on condition [0x00007fa45f4f3000] "http-nio-40010-Acceptor-0" #41 daemon prio=5 os_prio=0 tid=0x00007fa4e8e6d800 nid=0x5834 runnable [0x00007fa45f5f4000] "http-nio-40010-ClientPoller-1" #40 daemon prio=5 os_prio=0 tid=0x00007fa4e8b2b800 nid=0x5833 runnable [0x00007fa45f6f5000] "http-nio-40010-ClientPoller-0" #39 daemon prio=5 os_prio=0 tid=0x00007fa4ea00d800 nid=0x5832 runnable [0x00007fa45f7f6000] "http-nio-40010-exec-10" #38 daemon prio=5 os_prio=0 tid=0x00007fa4e9430000 nid=0x5831 waiting on condition [0x00007fa45f8f7000] "http-nio-40010-exec-9" #37 daemon prio=5 os_prio=0 tid=0x00007fa4e8f5f800 nid=0x5830 waiting on condition [0x00007fa45f9f8000] "http-nio-40010-exec-8" #36 daemon prio=5 os_prio=0 tid=0x00007fa4e877f800 nid=0x582f waiting on condition [0x00007fa45faf9000] "http-nio-40010-exec-7" #35 daemon prio=5 os_prio=0 tid=0x00007fa4ea1ab000 nid=0x582e waiting on condition [0x00007fa45fbfa000] "http-nio-40010-exec-6" #34 daemon prio=5 os_prio=0 tid=0x00007fa4e973a800 nid=0x582d waiting on condition [0x00007fa45fcfb000] "http-nio-40010-exec-5" #33 daemon prio=5 os_prio=0 tid=0x00007fa4e9f5c800 nid=0x582c waiting on condition [0x00007fa45fdfc000] "http-nio-40010-exec-4" #32 daemon prio=5 os_prio=0 tid=0x00007fa4e8608000 nid=0x582b waiting on condition [0x00007fa45fefd000] "http-nio-40010-exec-3" #31 daemon prio=5 os_prio=0 tid=0x00007fa4e8aab000 nid=0x582a waiting on condition [0x00007fa45fffe000] "http-nio-40010-exec-2" #30 daemon prio=5 os_prio=0 tid=0x00007fa4e8509000 nid=0x5829 waiting on condition [0x00007fa498141000] "http-nio-40010-exec-1" #29 daemon prio=5 os_prio=0 tid=0x00007fa4e8659800 nid=0x5828 waiting on condition [0x00007fa498242000] "NioBlockingSelector.BlockPoller-1" #28 daemon prio=5 os_prio=0 tid=0x00007fa4e8704800 nid=0x5827 runnable [0x00007fa498343000] "catalogWatchTaskScheduler-1" #27 prio=5 os_prio=0 tid=0x00007fa4e82c4000 nid=0x5826 waiting on condition [0x00007fa498444000] "FeignApacheHttpClientConfiguration.connectionManagerTimer" #26 daemon prio=5 os_prio=0 tid=0x00007fa4e978b000 nid=0x5825 in Object.wait() [0x00007fa498945000] "container-0" #25 prio=5 os_prio=0 tid=0x00007fa4e8ae3000 nid=0x5824 waiting on condition [0x00007fa498a46000] "ContainerBackgroundProcessor[StandardEngine[Tomcat]]" #24 daemon prio=5 os_prio=0 tid=0x00007fa4e8ae2800 nid=0x5823 waiting on condition [0x00007fa498b47000] "spring.cloud.inetutils" #23 daemon prio=5 os_prio=0 tid=0x00007fa480761800 nid=0x5822 waiting on condition [0x00007fa498e48000] "SimplePauseDetectorThread_0" #22 daemon prio=9 os_prio=0 tid=0x00007fa4a80ba800 nid=0x5821 waiting on condition [0x00007fa499149000] "Thread-4" #21 daemon prio=9 os_prio=0 tid=0x00007fa4a80ac000 nid=0x5820 waiting on condition [0x00007fa49924a000] "commons-pool-evictor-thread" #18 prio=5 os_prio=0 tid=0x00007fa4e94f9800 nid=0x581d waiting on condition [0x00007fa49994d000] "Druid-ConnectionPool-Destroy-1394940518" #16 daemon prio=5 os_prio=0 tid=0x00007fa4e9778000 nid=0x581b waiting on condition [0x00007fa4d01ab000] "Druid-ConnectionPool-Create-1394940518" #15 daemon prio=5 os_prio=0 tid=0x00007fa4e9777000 nid=0x581a waiting on condition [0x00007fa4d02ac000] "Abandoned connection cleanup thread" #14 daemon prio=5 os_prio=0 tid=0x00007fa4e9992800 nid=0x5819 in Object.wait() [0x00007fa4d37c6000] "Service Thread" #8 daemon prio=9 os_prio=0 tid=0x00007fa4e818f000 nid=0x5813 runnable [0x0000000000000000] "C1 CompilerThread2" #7 daemon prio=9 os_prio=0 tid=0x00007fa4e8183800 nid=0x5812 waiting on condition [0x0000000000000000] "C2 CompilerThread1" #6 daemon prio=9 os_prio=0 tid=0x00007fa4e8182000 nid=0x5811 waiting on condition [0x0000000000000000] "C2 CompilerThread0" #5 daemon prio=9 os_prio=0 tid=0x00007fa4e817f000 nid=0x5810 waiting on condition [0x0000000000000000] "Signal Dispatcher" #4 daemon prio=9 os_prio=0 tid=0x00007fa4e817d800 nid=0x580f waiting on condition [0x0000000000000000] "Finalizer" #3 daemon prio=8 os_prio=0 tid=0x00007fa4e814b800 nid=0x580d in Object.wait() [0x00007fa4d82f1000] "Reference Handler" #2 daemon prio=10 os_prio=0 tid=0x00007fa4e8147000 nid=0x580c in Object.wait() [0x00007fa4d83f2000] "VM Thread" os_prio=0 tid=0x00007fa4e813f000 nid=0x580b runnable "GC task thread#0 (ParallelGC)" os_prio=0 tid=0x00007fa4e801f800 nid=0x5807 runnable "GC task thread#1 (ParallelGC)" os_prio=0 tid=0x00007fa4e8021800 nid=0x5808 runnable "GC task thread#2 (ParallelGC)" os_prio=0 tid=0x00007fa4e8023000 nid=0x5809 runnable "GC task thread#3 (ParallelGC)" os_prio=0 tid=0x00007fa4e8025000 nid=0x580a runnable "VM Periodic Task Thread" os_prio=0 tid=0x00007fa4e8191800 nid=0x5814 waiting on condition JNI global references: 1441 Heap |
解决了,我把jar干掉,重新用root启动jar,再用sandbox去附加就可以了。 ./bin/sandbox.sh -p 25266
|
com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
安装版本号:1.0.16
The text was updated successfully, but these errors were encountered: