Skip to content
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

几个命令编译后都无法执行 #43

Closed
xuminwlt opened this issue Jun 20, 2018 · 3 comments
Closed

几个命令编译后都无法执行 #43

xuminwlt opened this issue Jun 20, 2018 · 3 comments
Labels
question User ask question

Comments

@xuminwlt
Copy link

xuminwlt commented Jun 20, 2018

编译执行的,难道是我的使用方式或者环境不对吗?白衣大人

vjmap
[root@qa-admin vjmap]# ./vjmap.sh -all 5111
WARNING!! STW(Stop-The-World) will be performed on your Java process, if this is NOT wanted, type 'Ctrl+C' to exit.
sun.jvm.hotspot.runtime.VMVersionMismatchException: Supported versions are 25.111-b14. Target VM is 25.161-b14

[root@qa-admin vjmap]# java -version
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)

vjtop
root@qa-admin vjtop]# ./vjtop.sh 5111
六月 20, 2018 5:43:49 下午 com.vip.vjtools.vjtop.VMInfo processNewVM
严重: could not attach (PID=5111)
java.io.IOException: Unable to open socket file: target process not responding or HotSpot VM not loaded
at com.vip.vjtools.vjtop.data.jmx.JmxClient.getConnectorAddress(JmxClient.java:254)
at com.vip.vjtools.vjtop.data.jmx.JmxClient.tryConnect(JmxClient.java:112)
at com.vip.vjtools.vjtop.data.jmx.JmxClient.connect(JmxClient.java:102)
at com.vip.vjtools.vjtop.VMInfo.processNewVM(VMInfo.java:132)
at com.vip.vjtools.vjtop.VMDetailView.(VMDetailView.java:44)
at com.vip.vjtools.vjtop.VJTop.main(VJTop.java:88)
Caused by: com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded
at sun.tools.attach.LinuxVirtualMachine.(LinuxVirtualMachine.java:106)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:63)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:208)
at com.vip.vjtools.vjtop.data.jmx.JmxClient.getConnectorAddress(JmxClient.java:252)
... 5 more
ERROR: Could not attach to process.

@calvin1978
Copy link
Collaborator

你的目标应用JDK是用1.8.0_161在跑,而你执行vjmap的JDK是1.8.0_111

@calvin1978 calvin1978 added the question User ask question label Jun 20, 2018
@xuminwlt
Copy link
Author

发现问题了,的确是这个原因造成的,谢谢。

@calvin1978
Copy link
Collaborator

我也修改了一下README,强调了大家用同版本的JDK跑:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question User ask question
Projects
None yet
Development

No branches or pull requests

2 participants