在linux机器中将线程转储到Java上有时会失败,使用j堆栈时出现以下错误:
1455: Unable to opensocketfile /proc/1455/root/tmp/.java_pid1455: targetprocess 1455 doesn't respond within 10500ms or HotSpotVM not loaded**strong text*
然后,我调用j堆栈来获取线程转储:5730: Unable to opensocketfile: targetprocess not respondingor HotSpotVM not loaded
The -F option can be used when the targetprocess is not responding</
Caused by: com.yourkit.runtime.PresentableException: com.sun.tools.attach.AttachNotSupportedException: Unableto opensocketfile: targetprocess not responding or HotSpotVM not loaded
at com.yourkit.ui.s.n.a
leak detector: Connecting to 0 2013-08-31 08:42:18 Full thread dump Java HotSpot(TM) 64-Bit Server VM: Unable to opensocketfile: targetprocess not responding or HotSpotVM not loaded at sun.tools.at
jmap -histo:live 64506450: Unable to opensocketfile: targetprocess not responding or HotSpotVM not loaded The -F option can be used when the targetprocess is not responding
我也试过这样做:
com.sun.tools.attach.AttachNotSupportedException: Unable to opensocketfile: targetprocess not respondingor HotSpotVM not loaded
at sun.tools.attach.BsdVirtualMachine.com.sun.tools.visualvm.attach.AttachModelImpl
使用JProfiler图形用户界面连接) 1,进入脱机模式(使用配置文件设置分析设置)2 1请输入分析端口59687 8849ERROR: Attaching is not supported: Unableto opensocketfile: targetprocess not responding or HotSpotVM not loaded
com.sun.tools.attach.AttachNotSuppor
select the profiling mode: GUI mode (attach with JProfiler GUI) [1, Enter] Offline mode (use config fileto set profiling settings) [2] 1 ERROR: Attaching is not supported: Unable to opensocketfile: targetprocess not responding
当我尝试执行命令:jmap -dump:format=b,file=filename.bin <app_pid>Unable to opensocketfile: targetprocessnot responding or HotSpotVM not loaded The -F option can be used when the targetpro