当前位置:网站首页>Offline installation method of Arthas without network environment
Offline installation method of Arthas without network environment
2020-11-09 13:44:00 【anshu】
This paper mainly introduces When the server cannot connect to the Internet , Unable to install arthas Solutions for .
One 、 download
Reference article at the end of the article 3 Download . You can also take out the link in the following article directly , Download directly from the downloader .
# github download
wget https://alibaba.github.io/arthas/arthas-boot.jar
# perhaps Gitee download
wget https://arthas.gitee.io/arthas-boot.jar
# Print help
java -jar arthas-boot.jar -h
Two 、 install
# Operation mode 1, First run , In the choice Java process PID
java -jar arthas-boot.jar
When the network is installed , It can be installed normally . Look at the execution log below , You can see , When you connect to the Internet, you'll get maven.aliyun.com Get it from the private server library jar package . But offline , It can't be obtained directly , Execution time , There will be no connection aliyun.com etc. error.
Downloads herman$ java -jar arthas-boot.jar
[INFO] arthas-boot version: 3.1.7
[INFO] Found existing java process, please choose one and hit RETURN.
* [1]: 59874 com.dtm.starter.StartApplication
[2]: 26057
[3]: 68065 com.bayss.infin.core.AppStarter
1
[INFO] Start download arthas from remote server: http://maven.aliyun.com/repository/public/com/taobao/arthas/arthas-packaging/3.1.7/arthas-packaging-3.1.7-bin.zip
[INFO] File size: 10.33 MB, downloaded size: 1.08 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 2.15 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 3.23 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 4.38 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 5.40 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 6.54 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 7.52 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 8.66 MB, downloading ...
[INFO] File size: 10.33 MB, downloaded size: 9.71 MB, downloading ...
[INFO] Download arthas success.
[INFO] arthas home: /Users/herman/.arthas/lib/3.1.7/arthas
[INFO] Try to attach process 59874
[WARN] Current VM java version: 1.7 do not match target VM java version: 1.8, attach may fail.
[WARN] Target VM JAVA_HOME is /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre, arthas-boot JAVA_HOME is /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre, try to set the same JAVA_HOME.
[INFO] Attach process 59874 success.
[INFO] arthas-client connect 127.0.0.1 3658
,---. ,------. ,--------.,--. ,--. ,---. ,---.
/ O \ | .--. ''--. .--'| '--' | / O \ ' .-'
| .-. || '--'.' | | | .--. || .-. |`. `-.
| | | || |\ \ | | | | | || | | |.-' |
`--' `--'`--' '--' `--' `--' `--'`--' `--'`-----'
wiki https://alibaba.github.io/arthas
tutorials https://alibaba.github.io/arthas/arthas-tutorials
version 3.1.7
pid 59874
time 2020-01-02 10:48:28
3、 ... and 、 Offline installation
In fact, the method is very simple , It's just that sometimes it's hard to think of .
step 1: First on a computer that can be connected to the Internet , perform java -jar arthas-boot.jar
, You can see from the execution record that , The downloaded dependency package is placed in
[INFO] arthas home: /Users/herman/.arthas/lib/3.1.7/arthas
step 2: Enter into /Users/herman/.arthas/lib/3.1.7/arthas
Under the path , Just pack everything up , And arthas-boot.jar
Upload to offline servers together .
BUG:arthas herman$ ll
total 23048
-rw-r--r-- 1 herman staff 5993 1 2 10:48 arthas-spy.jar
-rw-r--r-- 1 herman staff 8347 1 2 10:48 arthas-agent.jar
-rw-r--r-- 1 herman staff 403091 1 2 10:48 arthas-client.jar
-rw-r--r-- 1 herman staff 111090 1 2 10:48 arthas-boot.jar
-rw-r--r-- 1 herman staff 3739 1 2 10:48 arthas-demo.jar
-rw-r--r-- 1 herman staff 635 1 2 10:48 install-local.sh
-rw-r--r-- 1 herman staff 28075 1 2 10:48 as.sh
-rw-r--r-- 1 herman staff 3127 1 2 10:48 as.bat
-rw-r--r-- 1 herman staff 7744 1 2 10:48 as-service.bat
drwxr-xr-x 4 herman staff 128 1 2 10:48 async-profiler
-rw-r--r-- 1 herman staff 11207868 1 2 10:48 arthas-core.jar
BUG:arthas herman$ pwd
/Users/herman/.arthas/lib/3.1.7/arthas
Packing command :tar -cvf
perhaps zip
, You can use a file browser
step 3: Put the packaged files in the user root directory on the server , such as herman
user , Put it in /home/herman/.arthas
You can just . Of course, you can also specify the execution path .
Related reference articles :
1. 《arthas Installation instructions 》 https://blog.csdn.net/zou100/article/details/84998559
2. 《arthas Summary of installation and use of 》https://blog.csdn.net/wangwei249/article/details/86595540
3. 《Arthas - Java The ultimate weapon of online problem location processing 》https://mp.weixin.qq.com/s/55gBspFp8yH0TCymdbZfkQ
版权声明
本文为[anshu]所创,转载请带上原文链接,感谢
边栏推荐
- Rainbow sorting | Dutch flag problem
- ImmutableMap的put方法问题
- Suning's practice of large scale alarm convergence and root cause location based on Knowledge Map
- Download Netease cloud music 10W + music library with Python
- 03. Priority link model
- 你这么不努力,怎么做年薪40W的大数据打工人?
- What can DNS do besides resolving domain names?
- CCF BDCI热门赛题:非结构化商业文本信息中隐私信息识别
- Android字节跳动一面,被面试官吊打!幸得美团内推,三面拿到offer
- C language -- game of Sanzi
猜你喜欢
Android studio AVD
实在是太棒了!阿里资深架构师20年经验整理分享ServiceMesh实战文档,涨薪就差这篇文章了!
C language -- game of Sanzi
深圳C1考证历程
The history of C1 research in Shenzhen
To me, multithreading transaction must be a pseudo proposition!
The third way to realize webrtc in embedded devices
Adobe experience design / XD 2020 software installation package (with installation tutorial)
AndroidStudio导入定制化的framework classess.jar AS 4.0.1版本亲测有效
嗯,查询滑动窗口最大值的这4种方法不错...
随机推荐
IDEA解决yml配置文件中文输出乱码问题
Why I strongly recommend custom development of small programs, these benefits you need to understand
Vscode plug-in configuration pointing North
A letter to myself
C语言—————三子棋游戏
Technology and beauty are so expensive, it's better to find consultants | aalab enterprise consulting business
Efficient Estimation of Word Representations in Vector Space 论文笔记
7-10x write performance improvement: analysis of wiredtiger data page lock free and compression black Technology
Android字节跳动一面,被面试官吊打!幸得美团内推,三面拿到offer
FGC online service troubleshooting, this is enough!
IDEA rest-client,会了它我还没打开过postman
大厂面试系列(二):并发编程
The history of C1 research in Shenzhen
为什么我强烈建议要定制开发小程序,这些好处你需要了解
“开源软件供应链点亮计划 - 暑期 2020”公布结果 基于 ChubaoFS 开发的项目获得最佳质量奖
Mobile security reinforcement helps app achieve comprehensive and effective security protection
JVM学习(六)-内存模型和线程
阿里、腾讯、百度、网易、美团Android面试经验分享,拿到了百度、腾讯offer
Object oriented magic method collection
程序员买房前后对比,看完后已哭瞎...