惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
M
MIT News - Artificial intelligence
WordPress大学
WordPress大学
MongoDB | Blog
MongoDB | Blog
V
V2EX
博客园 - 【当耐特】
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
B
Blog
V
Visual Studio Blog
D
DataBreaches.Net
C
Check Point Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
F
Fortinet All Blogs

祈雨的笔记

安全多方计算MPC spark原理解析 kueue执行源码分析 spark on k8s执行源码分析 spark-operator源码解析 系统压测遇到的缓存击穿问题 我的世界PC与安卓联机 蚂蚁金服流量投放平台的AIG改造 G1大对象致Old区占用率高 日志打印导致接口响应率下跌分析 Groovy加载类导致OOM分析 ERROR日志打印导致CPU满载 记OceanBase死锁超时 应用发版期间服务响应超时 Ark Serverless初探 系统优化复盘一二三 The user specified as a definer does not exist Kong网关初探 API网关选型调研 CPU火焰图常用工具 配置中心选型调研 root操作Nginx导致用户组错误 基于Proxifier使用代理 FastJSON字段智能匹配踩坑 Nacos初探 记一次Nginx服务器CPU满荷载故障 基于券系统分库分表的思考 limit不参与SQL成本计算致索引失效 Linux常用性能监控命令 golang低版本http2偶现400
pinpoint安装
祈雨的笔记 · 2018-11-15 · via 祈雨的笔记

0、资料

Pinpoint技术概述

Pinpoint学习笔记

1、下载

Pinpoint GitHub

笔者使用的是1.7.3版本,更高的版本需要JDK9/10的支持。

pinpoint-agent-1.7.3.tar.gz

pinpoint-collector-1.7.3.war

pinpoint-web-1.7.3.war

pinpoint-1.7.3-src.zip

2、HBase

Pinpoint Version HBase 0.94.x HBase 0.98.x HBase 1.0.x HBase 1.2.x HBase 2.0.x
1.0.x yes no no no no
1.1.x no not tested yes not tested
1.5.x no not tested yes not tested
1.6.x no not tested not tested yes no
1.7.x no not tested not tested yes no
1.8.x no not tested not tested yes no

pinpoint1.7.3建议使用HBase1.2.x,笔者使用的是hbase-1.2.8-bin.tar.gz

启动HBase:

1
./hbase-1.2.8/bin/start-hbase.sh

初始化HBase数据库,其中数据库脚本在pinpoint-1.7.3-src.zip中的hbase/scripts/hbase-create.hbase

1
./hbase-1.2.8/bin/hbase shell hbase-create.hbase

3、Pinpoint Collector

pinpoint-collector需要在tomcat下运行,将pinpoint-collector-1.7.3.war解压到tomcat的webapps路径下,启动tomcat。

其中的重要配置有:

  • pinpoint-collector的基本配置:WEB-INF/classes/pinpoint-collector.properties
    • collector.tcpListenPort (agent’s profiler.collector.tcp.port - default: 9994)
    • collector.udpStatListenPort (agent’s profiler.collector.stat.port - default: 9995)
    • collector.udpSpanListenPort (agent’s profiler.collector.span.port - default: 9996)
  • HBase的连接配置:WEB-INF/classes/hbase.properties
    • hbase.client.host (default: localhost)
    • hbase.client.port (default: 2181)

4、Pinpoint Web

pinpoint-web需要在tomcat下运行,将pinpoint-web-1.7.3.war解压到tomcat的webapps/ROOT路径下,启动tomcat。

pinpoint-web所在tomcat启动完成后,访问该tomcat/地址即可显示pinpoint-web页面。

image

其中的重要配置有:

  • pinpoint-web的基本配置:WEB-INF/classes/pinpoint-web.properties
  • HBase的连接配置:WEB-INF/classes/hbase.properties
    • hbase.client.host (default: localhost)
    • hbase.client.port (default: 2181)

5、Pinpoint Agent

其中的重要配置有:

  • pinpoint-agent的基本配置:pinpoint.config
    • profiler.collector.ip (default: 127.0.0.1)
    • profiler.collector.tcp.port (collector’s collector.tcpListenPort - default: 9994)
    • profiler.collector.stat.port (collector’s collector.udpStatListenPort - default: 9995)
    • profiler.collector.span.port (collector’s collector.udpSpanListenPort - default: 9996)

java应用通过pinpoint-agent启动时需要加上以下参数:

  • javaagent:$AGENT_PATH/pinpoint-bootstrap-$VERSION.jar:通过javaagent指定pinpoint-agent的路径
  • Dpinpoint.agentId:java应用的唯一标识
  • Dpinpoint.applicationName:分组名

SpringBoot项目使用pinpoint启动示例:

1
java -javaagent:./pinpoint-agent-1.7.3/pinpoint-bootstrap-1.7.3.jar -Dpinpoint.agentId=test2 -Dpinpoint.applicationName=test2 -jar demo.jar

image