page contents

阿里云应用实时监控(ARMS)探针安装及配置方法实操

  • 时间:3个月前
  • 浏览:155次

下载安装云助手

wget https://repo-aliyun-assist.oss-cn-beijing.aliyuncs.com/download/aliyun_assist.rpm

[root@AY1310231051059094d8Z tmp]# rpm -ivh aliyun_assist.rpm

Preparing...                ########################################### [100%]

   1:aliyun_assist          ########################################### [100%]

script_dir:/usr/local/share/aliyun-assist/1.0.1.346/init

assist_version:1.0.1.346

find chkconfig

[root@AY1310231051059094d8Z tmp]# cd /usr/local/share/aliyun-assist/1.0.1.346/init

[root@AY1310231051059094d8Z init]# touch region-id

[root@AY1310231051059094d8Z init]# vi region-id 

cn-hangzhou

:wq

[root@AY1310231051059094d8Z init]# /etc/init.d/aliyun-service start

[root@AY1310231051059094d8Z init]# 

以上可选操作


########################################################################################################


一:手动下载探针

wget http://ARMS-apm-hangzhou.OSS-cn-hangzhou.aliyuncs.com/ArmsAgent.zip -O ArmsAgent.zip


二:解压探针安装包并配置

APPuser@AY13d8Z tmp]$ unzip ArmsAgent.zip -d /alidata/arms/

ArcHive:  ArmsAgent.zip

   creating: /alidata/arms/ArmsAgent/

   creating: /alidata/arms/ArmsAgent/boot/

  inflating: /alidata/arms/ArmsAgent/boot/pinpoint-bootstrap-core-optional-1.7.0-SNAPSHOT.jar  

  inflating: /alidata/arms/ArmsAgent/boot/pinpoint-bootstrap-core-1.7.0-SNAPSHOT.jar  

  inflating: /alidata/arms/ArmsAgent/boot/pv-common-1.0.8-20190712.095927-1.jar  

  inflating: /alidata/arms/ArmsAgent/boot/pinpoint-anNotations-1.7.0-SNAPSHOT.jar  

  inflating: /alidata/arms/ArmsAgent/boot/pinpoint-commons-logger-1.7.0-SNAPSHOT.jar  

  inflating: /alidata/arms/ArmsAgent/boot/pinpoint-commons-1.7.0-SNAPSHOT.jar  

  inflating: /alidata/arms/ArmsAgent/boot/scenario-1.0.8-20190712.095929-1.jar  

  inflating: /alidata/arms/ArmsAgent/LICENSE  

   creating: /alidata/arms/ArmsAgent/plugin/

  inflating: /alidata/arms/ArmsAgent/plugin/pinpoint-postgresql-jdbc-driver-plugin-1.7.0-SNAPSHOT.jar  

 ……

  inflating: /alidata/arms/ArmsAgent/lib/slf4j-api-1.7.10.jar  

  inflating: /alidata/arms/ArmsAgent/lib/arms-heap-1.7.0-SNAPSHOT.jar  

[appuser@AY18Z ArmsAgent]$ vi /alidata/arms/ArmsAgent/arms-agent.config 

阿里云应用实时监控(ARMS)探针安装及配置方法实操 服务器 1


特别的,大家注意,手册里的下面一段话特别容易误导人,以为下面的key只是demo,所以找自己服务器的licensekey一直不知道在那看,提了工单,三天也没给解决,我用另外一个阿里云账户做实验,发现不同的账户demo里的licensekey竟然不一样,这说明这个key应该就是我要找的,NND。


上面的配置适用于一台机器只有一个实例的情形,如果有多个实例,不同的实例的appName会不同,所以需要区分开来,可以将上面的两个参数加到各实例自己的启动脚本里

阿里云应用实时监控(ARMS)探针安装及配置方法实操 服务器 2

三、将探针加入java启动参数

JAVA_OPTS="-xss128k -Xms256m -Xmx4096m -XX:MaxNewSize=512m -XX:MaxPermSize=1024m -XX:-UseGCOverheadlimit -XX:+UseParallelGC -XX:ParallelGCThreads=16 -XX:+UseParallelOldGC -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
java_OPTS="$JAVA_OPTS -javaagent:/alidata/arms/ArmsAgent/arms-bootstrap-1.7.0-SNAPSHOT.jar"


或者

JAVA_OPTS="-Xss128k -Xms256m -Xmx4096m -XX:MaxNewSize=512m -XX:MaxPermSize=1024m -XX:-UseGCOverheadLimit -XX:+UseParallelGC -XX:ParallelGCThreads=16 -XX:+UseParallelOldGC -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
JAVA_OPTS="$JAVA_OPTS -javaagent:/alidata/arms/ArmsAgent/arms-bootstrap-1.7.0-SNAPSHOT.jar -Darms.licenseKey=xxx@7914fxxx8095 -Darms.appName=xxx"

四、重启应用

留言反馈

Copyright ©刘相涛 powered by zblog 加入我们| 网站地图| 业务合作
歌曲 - 歌手
0:00