Pinpoint is an APM (Application Performance Management) tool for large-scale distributed systems written in Java.
系统架构
- 架构图
组件:
pinpoint-collector-1.7.3.war (数据收集)
pinpoint-web-1.7.3.war (页面展示)
pinpoint-agent-1.7.3.tar.gz (数据采集)
所需环境
- Tomcat-8.5.32(web container)
- Hbase-1.2.6 (for storage)
部署步骤
安装HBase
- 创建监控所需的HBase 表
下载最新PinPoint执行文件(或自行git clone —> maven build)
- The current stable version is v1.7.3.
- DownLoad
部署 Pinpoint Collector
- 解压
pinpoint-collector-$VERSION.war
到Tomcat
容器 - 修改
pinpoint-collector.properties
,hbase.properties
文件
- 解压
部署 Pinpoint Web
- 解压
pinpoint-web-$VERSION.war
到Tomcat
容器 - 修改
pinpoint-web
,hbase.properties
文件
- 解压
启动Tomcat
部署 Pinpoint Agent
- 解压 pinpoint-agent 压缩包
- 设置
-javaagent:$AGENT_PATH/pinpoint-bootstrap-$VERSION.jar
JVM参数到 App Jar 启动参数 - 设置
-Dpinpoint.agentId
and-Dpinpoint.applicationName
到 App Jar 启动参数 - 启动Java App
部署
- Tomcat 两个webapp实例
1 | ...... |
- 初始化Hbase 监控表
1 | https://github.com/naver/pinpoint/blob/master/hbase/scripts/hbase-create.hbase |
- pinpoint-web
解压war,修改配置文件:
1 | unzip pinpoint-web-1.7.3.war -d pinpoint-web-1.7.3 |
- pinpoint-collector
1 | unzip pinpoint-collector-1.7.3.war -d pinpoint-collector-1.7.3 |
- 重启Tomcat
1 | ./startup.sh |
- 部署应用
1 | java -javaagent:/home/wxmimperio/software/pinpoint/pinpoint-agent-1.7.3/pinpoint-bootstrap-1.7.3.jar -Dpinpoint.agentId=wxm-consumer -Dpinpoint.applicationName=wxm-consumer -jar spring-boot-test-1.0-SNAPSHOT.jar |