当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- Interview series 2: concurrent programming
- Learning history of C language
- Navigation component of Android architecture (2)
- Hadoop学习(三)-YARN
- Depth analysis based on synchronized lock
- C language (circular list) to achieve the basic function of snake
- Four steps of Android integrated payment
- Oh, my God! Printing log only knows log4j?
- Android Studio Avd「真·小白食用方法」
- Well, the four ways to query the maximum value of sliding window are good
猜你喜欢
除了解析域名,DNS还能干吗?
腾讯云服务器搭建wordpress网站的两种方式(详细图文新手版)
Tidb x micro banking reduces time consumption by 58%, and distributed architecture helps to realize inclusive finance
The third way to realize webrtc in embedded devices
7-10倍写入性能提升:剖析WiredTiger数据页无锁及压缩黑科技
How can you be a big data worker with an annual salary of 40W if you don't work hard?
android studio AIDL的使用
Clock service Android implementation of alarm clock
Depth analysis based on synchronized lock
多线程真的比单线程快?
随机推荐
要我说,多线程事务它必须就是个伪命题!
Where should wild card SSL certificate register and apply
iPhone“连到系统上的设备没有发挥作用”原因分析及解决方法 20200105
Android Studio Avd「真·小白食用方法」
腾讯云服务器搭建wordpress网站的两种方式(详细图文新手版)
Is SEO right or wrong?
Idea solves garbled Chinese output of YML configuration file
Solve the problem of idea shortcut key Alt + insert invalid
苏宁基于知识图谱的大规模告警收敛和根因定位实践
Idea rest client, yes, I haven't opened postman yet
面试了一位33岁Android程序员,只会面向百度编程,居然要25k,被我一顿怼
程序员买房前后对比,看完后已哭瞎...
通配符SSL证书应该去哪里注册申请
Windows must be installed with efficiency software!
20201107第16课,使用Apache服务部署静态网站;使用Vsftpd服务传输文件
Ali, Tencent, Baidu, Netease, meituan Android interview experience sharing, got Baidu, Tencent offer
Is multithreading really faster than single threading?
“开源软件供应链点亮计划 - 暑期 2020”公布结果 基于 ChubaoFS 开发的项目获得最佳质量奖
Hadoop learning (3) - Yarn
Android 集成支付的四部曲