Arthas 发布 3.5.5 版本,支持 macOS ARM64 架构,改进易用性

栏目: 软件资讯 · 发布时间: 4年前

内容简介:Arthas是Alibaba开源的Java诊断工具,深受开发者喜爱。 Github:https://github.com/alibaba/arthas 文档:https://arthas.aliyun.com/doc/ Arthas 最新发布了 3.5.5 版本,主要支持macOS ARM64架构,以及改进易用...

Arthas 发布 3.5.5 版本,支持 macOS ARM64 架构,改进易用性

Arthas是Alibaba开源的 Java 诊断工具,深受开发者喜爱。

  • Github:https://github.com/alibaba/arthas

  • 文档:https://arthas.aliyun.com/doc/

Arthas 最新发布了 3.5.5 版本,主要支持macOS ARM64架构,以及改进易用性。

vmtool 命令支持macOS ARM64架构

目前vmtool的动态库文件是由github action构建的。但github action还不支持mac M1环境,所以vmtool命令之前没支持mac M1机器。

但通过交叉编译的方式,在使用clang编译时指定多个arch就可以生成所谓的Fat Library,即在一个文件里同时支持多种架构。

-arch x86_64 -arch arm64

使用file命令可以查看vmtool使用的dylib已经同时支持x86_64arm64

$ file lib/libArthasJniLibrary.dylib
lib/libArthasJniLibrary.dylib: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64:Mach-O 64-bit dynamically linked shared library arm64]
lib/libArthasJniLibrary.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64
lib/libArthasJniLibrary.dylib (for architecture arm64):	Mach-O 64-bit dynamically linked shared library arm64

async-profiler 升级到2.5版本,生成html结果支持查找,支持macOS ARM64架构

升级到2.5版本后,profiler命令只支持生成html格式结果,不再支持svg格式了。html格式可以更好的查找过滤。

比如在查找File关键字之后,可以看到紫色的高亮结果:

Arthas 发布 3.5.5 版本,支持 macOS ARM64 架构,改进易用性

WebConsole支持配置向上回滚行数

目前WebConsole默认只支持向上回滚1000行,但有的命令输出结果很长,之前的结果就会被覆盖掉。因此增加scrollback参数,用户可以自定义配置。比如

  • http://localhost:8563/?scrollback=2000

改进低版本JDK attach高版本JDK支持

在使用低版本JDK attach高版本JDK 进程时,可能会抛出异常IOException: Non-numeric value found - int expected,但实际上已经attach成功。这对用户会造成困扰。

因此改进为打印提示,但仍然会成功连接,用户可以直接诊断。

Arthas 发布 3.5.5 版本,支持 macOS ARM64 架构,改进易用性

总结

  • profiler wiki: https://arthas.aliyun.com/doc/jad.html

  • Release 日志: https://github.com/alibaba/arthas/releases/tag/arthas-all-3.5.5

2021中国开源项目评选,请投Arthas一票!


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Lighttpd

Lighttpd

Andre Bogus / Packt Publishing / 2008-10 / 39.99

This is your fast guide to getting started and getting inside the Lighttpd web server. Written from a developer's perspective, this book helps you understand Lighttpd, and get it set up as securely an......一起来看看 《Lighttpd》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具