linux sh: 0: can't open,can't run on openjdk

i have change my jvm to oraclejdk1.8 and the problem still exists.

when run sh -x as.sh

i got

++ ps -p 24110 -o user=

+ local target_user=root

+ '[' root '!=' root ']'

+ echo 'Calculating attach execution time...'

Calculating attach execution time...

+ attach_jvm 3.0.4

+ local arthas_version=3.0.4

+ local arthas_lib_dir=/root/.arthas/lib/3.0.4/arthas

+ echo 'Attaching to 24110 using version 3.0.4...'

Attaching to 24110 using version 3.0.4...

+ '[' 127.0.0.1 = 127.0.0.1 ']'

+ [[ 3.0.4 > 3.0 ]]

+ /usr/lib/jvm/oracle-jdk-1.8.0_181/bin/java -Djava.awt.headless=true -Xbootclasspath/a:/usr/lib/jvm/oracle-jdk-1.8.0_181/lib/tools.jar -jar /root/.arthas/lib/3.0.4/arthas/arthas-core.jar -pid 24110 -target-ip 127.0.0.1 -telnet-port 3658 -http-port 8563 -core /root/.arthas/lib/3.0.4/arthas/arthas-core.jar -agent /root/.arthas/lib/3.0.4/arthas/arthas-agent.jar

Start arthas failed, exception stack trace:

java.lang.InternalError: instrument library is missing in target VM

at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:105)

at com.taobao.arthas.core.Arthas.attachAgent(Arthas.java:84)

at com.taobao.arthas.core.Arthas.(Arthas.java:25)

at com.taobao.arthas.core.Arthas.main(Arthas.java:96)

Caused by: com.sun.tools.attach.AgentLoadException: Failed to load agent library

at sun.tools.attach.LinuxVirtualMachine.execute(LinuxVirtualMachine.java:224)

at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:58)

at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:79)

at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:103)

... 3 more

+ exit 1

+ '[' 1 -ne 0 ']'

+ exit_on_err 1 'attach to target jvm (24110) failed, check /root/logs/arthas/arthas.log or stderr of target jvm for any exceptions.'

+ [[ ! -z attach to target jvm (24110) failed, check /root/logs/arthas/arthas.log or stderr of target jvm for any exceptions. ]]

+ echo 'attach to target jvm (24110) failed, check /root/logs/arthas/arthas.log or stderr of target jvm for any exceptions.'

attach to target jvm (24110) failed, check /root/logs/arthas/arthas.log or stderr of target jvm for any exceptions.

+ exit 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值