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

开发全新的Web UI #2145

Closed
hengyunabc opened this issue Apr 7, 2022 · 4 comments
Closed

开发全新的Web UI #2145

hengyunabc opened this issue Apr 7, 2022 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@hengyunabc
Copy link
Collaborator

hengyunabc commented Apr 7, 2022

  • 目前有webconsole,本质上还是一个terminal
  • 有一个简单的UI: http://127.0.0.1:8563/ui ,但这个只是展示了json结果

需要以现代web方式,构建一个全新的UI,所有的数据结构尽量以更友好的,图形化展示。

简而言之,学生需要先熟悉下arthas的命令,比如

可以按命令里的 在线教程 跑一下。

然后看一下这个HTTP API:

利用上面的HTTP API,构建出类似下面的UI:


https://github.com/alibaba/arthas/tree/master/core/src/main/resources/com/taobao/arthas/core/http/ui

  • web console的代码在:

https://github.com/alibaba/arthas/blob/master/core/src/main/resources/com/taobao/arthas/core/http/index.html

web console是基于 xterm实现的,本质上是后端实现了一个web socket的服务器,可以不用关注。


参考:

@hengyunabc hengyunabc added the help wanted Extra attention is needed label Apr 7, 2022
@dezhonger
Copy link

This is your Intranet address, which no one else can access. You can post pictures for others to read.

@kylixs
Copy link
Contributor

kylixs commented Apr 10, 2022

This is your Intranet address, which no one else can access. You can post pictures for others to read.

Launch arthas, attach to any java process , and visit http://127.0.0.1:8563/ui

@1994
Copy link
Contributor

1994 commented Apr 11, 2022

#1699 我之前整过类似的,看能否基于这个继续优化下

@hengyunabc
Copy link
Collaborator Author

hengyunabc commented Oct 11, 2022

新版本的 Web UI已经合并到主干,欢迎大家试用和提出建议。

下 载: arthas-bin.zip

webconsole

原来的web console, 升级xterm,使用webgl,滚动非常顺滑。

image

web ui

基于HTTP API的新UI

image

hengyunabc pushed a commit that referenced this issue Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants