系统相关
首页 > 系统相关> > 【Linux】开源APM:通过pinpoint监控tomcat

【Linux】开源APM:通过pinpoint监控tomcat

作者:互联网

[root@wallet01 ~]# git clone https://github.com/pinpoint-apm/pinpoint.git
Cloning into 'pinpoint'...
remote: Enumerating objects: 270833, done.
remote: Counting objects: 100% (2737/2737), done.
remote: Compressing objects: 100% (1115/1115), done.
remote: Total 270833 (delta 818), reused 2522 (delta 752), pack-reused 268096
Receiving objects: 100% (270833/270833), 225.82 MiB | 7.44 MiB/s, done.
Resolving deltas: 100% (141269/141269), done.

[root@wallet01 ~]# /usr/local/hbase/bin/hbase shell /root/pinpoint/hbase/scripts/hbase-create.hbase
0 row(s) in 1.6580 seconds

0 row(s) in 4.3410 seconds

0 row(s) in 4.3140 seconds

0 row(s) in 1.2650 seconds

0 row(s) in 1.2740 seconds

0 row(s) in 1.2530 seconds

0 row(s) in 2.2480 seconds

0 row(s) in 2.2620 seconds

0 row(s) in 2.2490 seconds

0 row(s) in 8.3210 seconds

0 row(s) in 2.2540 seconds

0 row(s) in 2.2540 seconds

0 row(s) in 1.2530 seconds

0 row(s) in 1.2450 seconds

0 row(s) in 2.2480 seconds

TABLE                                                                                                                                                                         
AgentEvent                                                                                                                                                                    
AgentInfo                                                                                                                                                                     
AgentLifeCycle                                                                                                                                                                
AgentStatV2                                                                                                                                                                   
ApiMetaData                                                                                                                                                                   
ApplicationIndex                                                                                                                                                              
ApplicationMapStatisticsCallee_Ver2                                                                                                                                           
ApplicationMapStatisticsCaller_Ver2                                                                                                                                           
ApplicationMapStatisticsSelf_Ver2                                                                                                                                             
ApplicationStatAggre                                                                                                                                                          
ApplicationTraceIndex                                                                                                                                                         
HostApplicationMap_Ver2                                                                                                                                                       
SqlMetaData_Ver2                                                                                                                                                              
StringMetaData                                                                                                                                                                
TraceV2                                                                                                                                                                       
15 row(s) in 0.0330 seconds

[root@wallet01 ~]# nohup java -jar -Dpinpoint.zookeeper.address=192.168.40.201 pinpoint-collector-boot-2.2.2.jar &
[root@wallet01 ~]# nohup java -jar -Dpinpoint.zookeeper.address=192.168.40.201 pinpoint-web-boot-2.2.2.jar &


[root@wallet02 ~]# tar zxvf pinpoint-agent-2.2.2.tar.gz -C /usr/local
[root@wallet02 ~]# vim /usr/local/pinpoint-agent-2.2.2/profiles/release/pinpoint-env.config
# GRPC or THRIFT
profiler.transport.module=GRPC
###########################################################
# gRPC Configuration                                      #
###########################################################
profiler.transport.grpc.collector.ip=192.168.40.201

[root@wallet02 ~]# vim /home/tomcat/soft/tomcat8001_oah5/bin/catalina.sh
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/usr/local/pinpoint-agent-2.2.2/pinpoint-bootstrap.jar"
CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.agentId=19216840538001"
CATALINA_OPTS="$CATALINA_OPTS -Dpinpoint.applicationName=oah5"


标签:CATALINA,pinpoint,tomcat,seconds,Linux,root,OPTS,row
来源: https://blog.51cto.com/u_13598811/2773197