1、安装HBase并配置启动。
hbase-site.xml
<property>
<name>hbase.rootdir</name>
<value>file:/home/posp/lynn/pinpoint/hbase-1.0.3/data</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.regionserver.handler.count</name>
<value>20</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.11.11</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>zookeeper.session.timeout</name>
<value>200000</value>
</property>
【./start-hbase.sh 启动,使用jps查看Hmaster 】
2、./hbase shell /data/hbase-create.hbase加载pinpoint配置
3、HbaseWeb: http://192.168.11.11:16010/master-status查看
4、tomcat部署pinpoint-collector
5、tomcat部署pinpoint-web,放到webapps下改名为ROOT
6、浏览器访问: http://192.168.11.11:22220/pinpoint-web-1.5.2查看
7、配置部署pinpoint-agent,修改pinpoint.config中ip和端口,以及配置服务类型,采样频率
profiler.applicationservertype=SPRING_BOOT
profiler.tomcat.conditional.transform=false
# 1 out of n transactions will be sampled where n is the rate. (20: 5%)
profiler.sampling.rate=1
8、spring boot启动命令:
nohup java -javaagent:/data/pinpoint/pp-agent/pinpoint-bootstrap-1.5.2.jar -Dpinpoint.agentId=test001 -Dpinpoint.applicationName=test001 -jar myAplication.jar &