启动pinpoint服务器
启动docker
下载并启动容器
docker run -itd -p 28080-28082:28080-28082 -p 29994:29994/tcp -p 29995:29995/udp -p 29996:29996/udp --cap-add SYS_PTRACE --name pinpoint yous/pinpoint:latest
容器初始化
docker exec -it pinpoint quickstart/bin/start-hbase.sh
docker exec -it pinpoint quickstart/bin/init-hbase.sh
docker exec -it pinpoint quickstart/bin/start-collector.sh
docker exec -it pinpoint quickstart/bin/start-web.sh
部分命令需前台执行,如start-collector及start-web
使用
修改pinpoint agent 配置文件
profiler.collector.span.ip=10.8.100.58
profiler.collector.span.port=29996
# placeHolder support "${key}"
profiler.collector.stat.ip=10.8.100.58
profiler.collector.stat.port=29995
# placeHolder support "${key}"
profiler.collector.tcp.ip=10.8.100.58
profiler.collector.tcp.port=29994
ip为pinpoint collector所在的ip por分别为29994、29995、29996
启动服务
java -javaagent:/opt/pinpoint-agent/pinpoint-bootstrap-1.7.3.jar -Dpinpoint.applicationName=test_im_search -Dpinpoint.agentId=10.5.163.190 -Xmx2000m -Xms2000m -XX:NewRatio=4 -XX:SurvivorRatio=4 -Djava.security.egd=file:/dev/./urandom -jar /opt/pinpoint-agent/app.jar --spring.config.name=app --spring.config.location=/opt/pinpoint-agent/application.yml