Open Freyiz opened 3 years ago
arthas-boot.jar
as.sh
arthas-boot
打印如下信息: 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文件存在。
要看具体电脑是什么cpu的,可能某些cpu架构不支持。
m1的
目前手上没有m1的机器,不过应该要编译出arm架构的so。
https://github.com/jvm-profiling-tools/async-profiler/releases ,本身还没提供mac arm的版本。 可能要试下自己本地编译。
环境信息
arthas-boot.jar
或者as.sh
的版本: 3.5.0arthas-boot
的版本: 1.8重现问题的步骤
期望的结果
打印如下信息: 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文件存在。