Arthas: Support html view for WebUI

Created on 13 May 2020  ·  17Comments  ·  Source: alibaba/arthas

At present, a simple WebUI is implemented based on http api, which can only display json data and is not suitable for human reading. We need a text / html view to better display the results of command interaction. It expects to provide a modern operating experience, richer functions, and more flexible scalability.

Build
The http api code will be divided into multiple PRs and merged into the master, which can now be tested and improved on the feature branch.

  1. Checkout termd project, build and install to local repo.
   cd /path/projects/
   git clone https://github.com/alibaba/termd.git
   mvn clean install -Dmaven.test.skip -DskipTests
  1. Checkout the source code of http api, build and package.
   cd /path/projects/
   git clone https://github.com/alibaba/arthas.git
   git checkout http-api
   mvn clean package
  1. Lanuch arthas
    cd /path/projects/arthas
    cd packaging/target/arthas-3.2.1-SNAPSHOT-bin
    java -jar arthas-boot.jar
  1. Visit Arthas WebUI
    Open the browser to visit http://localhost:8563/ui, it is recommended to use chrome
SoC2020

All 17 comments

@kylixs how do I test this pull request on my local machine?

@kylixs how do I test this pull request on my local machine?

This http api branch will be merged into arthas in the near future, please use the PR branch for testing now.

Hello @kylixs! I am interested in this idea for applying for SoC 2020. Can you guide me how to get started with the repo so that I can start making my proposal?

Hello @hengyunabc ! Is there a specific channel for this so that I can start discussing the project idea and ask my doubts regarding thecodebase or should I do it through email?

@arteevraina The arthas http api branch build step has been added to the content of the issue.
Please join the Arthas discuss group (https://github.com/alibaba/arthas/issues/1198).

@kylixs Thank you very much !

@kylixs @hengyunabc I was following the above mentioned steps but while running mvn clean package in arthas directory onhttp-apibranch. I was getting this build failure. Are there any fixes or workarounds for this?
image

@kylixs @hengyunabc I was following the above mentioned steps but while running mvn clean package in arthas directory onhttp-apibranch. I was getting this build failure. Are there any fixes or workarounds for this?
image

The error details: Failed to delete .../arthas/spy/target/maven-archiver/pom.properties
1) Please stop the Arthas that have been injected;
2) Check what process opened the file spy / target / maven-archiver / pom.properties, please close it. You can use the Process Hacker / Process Explorer tool to find the file handle to discover the process of opening the file.
3) Or just restart the system and rebuild.

@kylixs Is http-api that displays data in json format web ui still in development?

@kylixs Is http-api that displays data in json format web ui still in development?

Yes, the first stage of development is completed and is gradually being merged into the master.
Now you can contribute code, if accepted, it will eventually be merged into the master, but it will take a while.

@sjha2048 Is the proposal ready? Please submit to the official website of SoC 2020.

@kylixs will do by tomorrow evening.

Some frequently used commands: sm, sc, watch, trace

Sure, I'll mention these commands.

@kylixs @hengyunabc I'm really interested in contributing to this idea as a part of Asoc 2020. Will you please guide me as to how should i discuss the project idea so that i can eventually move on towards drafting my proposal?

@kylixs @hengyunabc I'm really interested in contributing to this idea as a part of Asoc 2020. Will you please guide me as to how should i discuss the project idea so that i can eventually move on towards drafting my proposal?

@HarshMehta2468 Please follow the build steps and feedback if you encounter problems.

Was this page helpful?
0 / 5 - 0 ratings