[alibaba/arthas]profiler命令报错:libasyncProfiler-mac-x64.so no suitable image found

2025-11-25 636 views
1
环境信息
  • arthas-boot.jar 或者 as.sh 的版本: 3.5.0
  • 操作系统版本: Mac OS X 11.1
  • 目标进程的JVM版本: 1.8
  • 执行arthas-boot的版本: 1.8
  • VM-NAME:OpenJDK 64-Bit Server VM
  • VM-VENDOR:Azul Systems, Inc.
  • VM-VERSION:25.282-b08
重现问题的步骤
  1. curl -O https://arthas.aliyun.com/arthas-boot.jar
  2. 运行java程序
  3. java -jar arthas-boot.jar
  4. 选择目标程序,进入arthas控制台
  5. profiler list
期望的结果

打印如下信息: Basic events: cpu alloc lock wall itimer

实际运行的结果

打印了如下信息: AsyncProfiler error: /Users//.arthas/lib/3.5.0/arthas/async-profiler/libasyncProfiler-mac-x64.so: dlopen(/Users//.arthas/lib/3.5.0/arthas/async-profiler/libasyncProfiler-mac-x64.so, 1): no suitable image found. Did find: /Users//.arthas/lib/3.5.0/arthas/async-profiler/libasyncProfiler-mac-x64.so: mach-o, but wrong architecture /Users//.arthas/lib/3.5.0/arthas/async-profiler/libasyncProfiler-mac-x64.so: mach-o, but wrong architecture

备注

1.profiler -h 可正常工作。 2.其他命令可正常工作。 3./Users//.arthas/lib/3.5.0/arthas/async-profiler/libasyncProfiler-mac-x64.so文件存在。

回答

9

要看具体电脑是什么cpu的,可能某些cpu架构不支持。

7

m1的