{"id":3533,"date":"2018-05-20T17:48:13","date_gmt":"2018-05-20T09:48:13","guid":{"rendered":"http:\/\/switch.linesno.com\/?p=3533"},"modified":"2018-05-20T17:48:16","modified_gmt":"2018-05-20T09:48:16","slug":"pinpoint-%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"http:\/\/switch.linesno.com\/?p=3533","title":{"rendered":"pinpoint \u5b89\u88c5\u90e8\u7f72"},"content":{"rendered":"<h1>\u5e8f\u7ae0<\/h1>\n<p>pinpoint\u662f\u5f00\u6e90\u5728github\u4e0a\u7684\u4e00\u6b3eAPM\u76d1\u63a7\u5de5\u5177\uff0c\u5b83\u662f\u7528Java\u7f16\u5199\u7684\uff0c\u7528\u4e8e\u5927\u89c4\u6a21\u5206\u5e03\u5f0f\u7cfb\u7edf\u76d1\u63a7\u3002\u5b83\u5bf9\u6027\u80fd\u7684\u5f71\u54cd\u6700\u5c0f\uff08\u53ea\u589e\u52a0\u7ea63\uff05\u8d44\u6e90\u5229\u7528\u7387\uff09\uff0c\u5b89\u88c5agent\u662f\u65e0\u4fb5\u5165\u5f0f\u7684\uff0c\u53ea\u9700\u8981\u5728\u88ab\u6d4b\u8bd5\u7684Tomcat\u4e2d\u52a0\u4e0a3\u53e5\u8bdd\uff0c\u6253\u4e0b\u63a2\u9488\uff0c\u5c31\u53ef\u4ee5\u76d1\u63a7\u6574\u5957\u7a0b\u5e8f\u4e86\u3002\u8fd9\u7bc7Blog\u4e3b\u8981\u662f\u60f3\u8bb0\u5f55\u4e00\u4e0b\u5b83\u5b89\u88c5\u7684\u8fc7\u7a0b\uff0c\u65b9\u4fbf\u65e5\u540e\u67e5\u9605\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6211\u5b89\u88c5\u5b83\u7528\u5230\u76842\u53f0 CentOS6.8 \u865a\u62df\u673a\uff0c\u4e00\u53f0\u4e3b\u8981\u90e8\u7f72pinpoint\u7684\u4e3b\u7a0b\u5e8f\uff0c\u4e00\u53f0\u6a21\u62df\u6d4b\u8bd5\u73af\u5883\u3002\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<table width=\"754\">\n<thead>\n<tr>\n<th width=\"138\">IP<\/th>\n<th width=\"97\">\u64cd\u4f5c\u7cfb\u7edf<\/th>\n<th width=\"134\">\u5b89\u88c5\u9879<\/th>\n<th width=\"383\">\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td width=\"138\">192.168.245.136<\/td>\n<td width=\"97\">CentOS 6.8<\/td>\n<td width=\"134\">pinpoint<\/td>\n<td width=\"383\">pinpoint\u7684web\u5c55\u793a\u7aef\uff0c\u903b\u8f91\u63a7\u5236\u673a\uff0c\u4ee5\u53caHbase\u5b58\u50a8<\/td>\n<\/tr>\n<tr>\n<td width=\"138\">192.168.245.135<\/td>\n<td width=\"97\">CentOS 6.8<\/td>\n<td width=\"134\">pinpoint-agent<\/td>\n<td width=\"383\">\u4e3b\u8981\u7528\u6765\u91c7\u96c6\u6570\u636e\uff0c\u53d1\u9001\u7ed9pinpoint\u5904\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>java 1.7\u00a0<a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk7-downloads-1880260.html\">http:\/\/www.oracle.com\/technetwork\/java\/javase\/downloads\/jdk7-downloads-1880260.html<\/a><\/p>\n<p>pinpoint\u00a0<a href=\"https:\/\/github.com\/naver\/pinpoint\">https:\/\/github.com\/naver\/pinpoint<\/a><\/p>\n<p>\u6211\u5c06\u9700\u8981\u7684\u8d44\u6e90\u90fd\u6574\u5408\u8d77\u6765\u4e86\uff0c\u4e0a\u4f20\u81f3\u767e\u5ea6\u7f51\u76d8<\/p>\n<p>\u767e\u5ea6\u7f51\u76d8: &lt;\u94fe\u63a5:\u00a0<a href=\"http:\/\/pan.baidu.com\/s\/1eRU5RW2\">http:\/\/pan.baidu.com\/s\/1eRU5RW2<\/a>\u00a0\u5bc6\u7801: u89p&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e0b\u9762\u662f\u5b98\u65b9\u7684\u4e00\u4e9b\u622a\u56fe\uff0c\u5f88\u5e05\uff0c\u5f88\u76f4\u89c2<\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127170109721-1319006436.png\"><img loading=\"lazy\" decoding=\"async\" title=\"demo0\" src=\"\/2018\/05\/f91d32136c4f4ccaf89c3bc276350c63.png\" alt=\"demo0\" width=\"769\" height=\"428\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127170110643-1001466841.png\"><img loading=\"lazy\" decoding=\"async\" title=\"demo1\" src=\"\/2018\/05\/0ffc6da622935f1a39505c0417108aeb.png\" alt=\"demo1\" width=\"1547\" height=\"943\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127170111612-1354206871.png\"><img loading=\"lazy\" decoding=\"async\" title=\"demo2\" src=\"\/2018\/05\/edc1fe4318bfcb54b95930500dd7eee8.png\" alt=\"demo2\" width=\"1615\" height=\"1001\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127170112893-2025625044.png\"><img loading=\"lazy\" decoding=\"async\" title=\"demo3\" src=\"\/2018\/05\/f672b983e9184825174de265fe267c57.png\" alt=\"demo3\" width=\"1794\" height=\"996\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"yy01\"><\/a><\/p>\n<h1 id=\"1-\">1. \u73af\u5883\u914d\u7f6e<\/h1>\n<p>&nbsp;<\/p>\n<p><a name=\"yy0101\"><\/a><\/p>\n<h2 id=\"1-\">1.1 \u83b7\u53d6\u9700\u8981\u7684\u4f9d\u8d56\u5305<\/h2>\n<p>\u8fdb\u5165home\u76ee\u5f55\uff0c\u521b\u5efa\u4e00\u4e2a&#8221;pp_res&#8221;\u7684\u8d44\u6e90\u76ee\u5f55\uff0c\u7528\u6765\u5b58\u653e\u9700\u8981\u5b89\u88c5\u7684\u5305<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">mkdir \/home\/pp_res<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res\/<\/span><\/div>\n<p>\u4f7f\u7528xshell\u7b49\u7c7b\u4f3c\u7684\u5de5\u5177\uff0c\u5c06\u9700\u8981\u7684\u6587\u4ef6\u4e0a\u4f20\u5230Linux\u865a\u62df\u673a\u4e2d\uff0c\u4e3b\u8981\u8981\u4f20\u7684\u6587\u4ef6\u90fd\u5728<a href=\"http:\/\/pan.baidu.com\/s\/1eRU5RW2\">\u767e\u5ea6\u7f51\u76d8<\/a>\u4e2d<\/p>\n<ol>\n<li>jdk7 &#8212; Java\u8fd0\u884c\u73af\u5883<\/li>\n<li>hbase-1.0 &#8212; \u6570\u636e\u5e93\uff0c\u7528\u6765\u5b58\u50a8\u76d1\u63a7\u4fe1\u606f<\/li>\n<li>tomcat8.0 &#8212; Web\u670d\u52a1\u5668<\/li>\n<li>pinpoint-collector.war &#8212; pp\u7684\u63a7\u5236\u5668<\/li>\n<li>pinpoint-web.war &#8212; pp\u5c55\u793a\u9875\u9762<\/li>\n<li>pp-collector.init &#8212; \u7528\u6765\u5feb\u901f\u542f\u52a8pp-col\uff0c\u4e0d\u8981\u4e5f\u53ef\u4ee5<\/li>\n<li>pp-web.init &#8212; \u7528\u6765\u5feb\u901f\u542f\u52a8pp-web\uff0c\u4e0d\u8981\u4e5f\u53ef\u4ee5<\/li>\n<\/ol>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144707737-1318827461.png\"><img loading=\"lazy\" decoding=\"async\" title=\"xshell\" src=\"\/2018\/05\/bfc51d1a9ca4ce5379a3ad43ba20f4b7.png\" alt=\"xshell\" width=\"1028\" height=\"933\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u4f7f\u7528ll\u547d\u4ee4\uff0c\u67e5\u770b\u4e00\u4e0b\u662f\u5426\u4e0a\u4f20\u6210\u529f<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost pp_res]# ll<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">total 367992<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root\u00a0\u00a0 9277365 Nov 15 00:07 apache-tomcat-8.0.36.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root 103847513 Nov 15 00:07 hbase-1.0.3-bin.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root 153512879 Nov 15 00:07 jdk-7u79-linux-x64.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root\u00a0\u00a0 6621915 Nov 15 00:07 pinpoint-agent-1.5.2.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root\u00a0 31339914 Nov 15 00:07 pinpoint-collector-1.5.2.war<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root\u00a0 54505168 Nov 15 00:07 pinpoint-web-1.5.2.war<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root\u00a0\u00a0\u00a0\u00a0\u00a0 3084 Nov 15 00:07 pp-collector.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root\u00a0\u00a0\u00a0\u00a0\u00a0 3072 Nov 15 00:07 pp-web.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root\u00a0 17699306 Nov 15 00:07 zookeeper-3.4.6.tar.gz<\/span><\/div>\n<h2 id=\"1-2-jdk1-7\"><\/h2>\n<p><a name=\"yy0102\"><\/a><\/p>\n<h2>1.2 \u914d\u7f6ejdk1.7<\/h2>\n<p>\u8fd9\u5957APM\u7cfb\u7edf\u4e3b\u8981\u662f\u7528jdk1.7\u6765\u8fdb\u884c\u90e8\u7f72\u7684\uff0c\u9996\u5148\u8981\u914d\u7f6ejdk\u7684\u73af\u5883\u53d8\u91cf<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">tar -zxvf jdk-7u79-linux-x64.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mkdir \/usr\/java<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mv jdk1.7.0_79\/ \/usr\/java\/jdk17<\/span><\/div>\n<p>\u914d\u7f6ejava\u73af\u5883\u53d8\u91cf<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">vi \/etc\/profile<\/span><\/div>\n<p>\u5c06\u4e0b\u5217\u590d\u5236\u5230profile\u7684\u6700\u540e\u4e00\u884c\u4e2d<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">export JAVA_HOME=\/usr\/java\/jdk17<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">export PATH=$PATH:$JAVA_HOME\/bin<\/span><\/div>\n<p>\u8ba9\u73af\u5883\u53d8\u91cf\u751f\u6548<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">source \/etc\/profile<\/span><\/div>\n<p>\u6d4b\u8bd5java\u7684\u73af\u5883\u53d8\u91cf\u662f\u5426\u914d\u7f6e\u597d\u4e86<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost pp_res]# java -version<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">java version &#8220;1.7.0_79&#8221;<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Java(TM) SE Runtime Environment (build 1.7.0_79-b15)<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)<\/span><\/div>\n<h1 id=\"2-hbase\"><\/h1>\n<p><a name=\"yy02\"><\/a><\/p>\n<h1>2. \u5b89\u88c5Hbase<\/h1>\n<p>pinpoint\u6536\u96c6\u6765\u7684\u6d4b\u8bd5\u6570\u636e\uff0c\u4e3b\u8981\u662f\u5b58\u5728Hbase\u6570\u636e\u5e93\u7684\u3002\u6240\u4ee5\u5b83\u53ef\u4ee5\u6536\u96c6\u5927\u91cf\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u8fdb\u884c\u66f4\u52a0\u8be6\u7ec6\u7684\u5206\u6790\u3002<\/p>\n<p><a name=\"yy0201\"><\/a><\/p>\n<h2 id=\"2-1-hbase-\"><\/h2>\n<h2>2.1 \u5c06Hbase\u89e3\u538b\uff0c\u5e76\u4e14\u653e\u5165\u6307\u5b9a\u76ee\u5f55<\/h2>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">tar -zxvf hbase-1.0.3-bin.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mkdir -p \/data\/service<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mv hbase-1.0.3\/ \/data\/service\/hbase<\/span><\/div>\n<h2 id=\"2-2-hbase-env-sh-java_home-\"><\/h2>\n<p><a name=\"yy0202\"><\/a><\/p>\n<h2>2.2 \u4fee\u6539hbase-env.sh\u7684JAVA_HOME\u73af\u5883\u53d8\u91cf\u4f4d\u7f6e<\/h2>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/service\/hbase\/conf\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">vi hbase-env.sh<\/span><\/div>\n<p>\u572827\u884c\u5de6\u53f3\u7684\u4f4d\u7f6e\uff0c\u4fee\u6539\u5982\u4e0b<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">export JAVA_HOME=\/usr\/java\/jdk17\/<\/span><\/div>\n<p><a name=\"yy0203\"><\/a><\/p>\n<h2 id=\"2-3-hbase-\"><\/h2>\n<h2>2.3 \u4fee\u6539Hbase\u7684\u914d\u7f6e\u4fe1\u606f<\/h2>\n<div class=\"line\"><span class=\"text plain null-grammar\">vi hbase-site.xml<\/span><\/div>\n<p>\u5728\u7ed3\u5c3e\u4fee\u6539\u6210\u5982\u4e0b\uff0c\u8fd9\u91cc\u6211\u4eec\u6307\u5b9aHbase\u672c\u5730\u6765\u5b58\u50a8\u6570\u636e\uff0c\u751f\u4ea7\u73af\u5883\u5c06\u6570\u636e\u5efa\u8bae\u5b58\u5165HDFS\u4e2d\u3002<\/p>\n<div class=\"line\"><span class=\"text xml\"><span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;<\/span><span class=\"entity name tag localname xml\">configuration<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span><\/span><\/div>\n<div class=\"line\"><span class=\"text xml\">\u00a0 <span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;<\/span><span class=\"entity name tag localname xml\">property<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span><\/span><\/div>\n<div class=\"line\"><span class=\"text xml\">\u00a0\u00a0\u00a0 <span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;<\/span><span class=\"entity name tag localname xml\">name<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span>hbase.rootdir<span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;\/<\/span><span class=\"entity name tag localname xml\">name<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span><\/span><\/div>\n<div class=\"line\"><span class=\"text xml\">\u00a0\u00a0\u00a0 <span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;<\/span><span class=\"entity name tag localname xml\">value<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span><span class=\"markup underline link file hyperlink\">file:\/\/\/data\/hbase<\/span><span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;\/<\/span><span class=\"entity name tag localname xml\">value<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span><\/span><\/div>\n<div class=\"line\"><span class=\"text xml\">\u00a0<span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;\/<\/span><span class=\"entity name tag localname xml\">property<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span><\/span><\/div>\n<div class=\"line\"><span class=\"text xml\"><span class=\"meta tag xml\"><span class=\"punctuation definition tag xml\">&lt;\/<\/span><span class=\"entity name tag localname xml\">configuration<\/span><span class=\"punctuation definition tag xml\">&gt;<\/span><\/span><\/span><\/div>\n<h2 id=\"2-4-hbase\"><\/h2>\n<p><a name=\"yy0204\"><\/a><\/p>\n<h2>2.4 \u542f\u52a8hbase<\/h2>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/service\/hbase\/bin<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">.\/start-hbase.sh<\/span><\/div>\n<p>\u67e5\u770bHbase\u662f\u5426\u542f\u52a8\u6210\u529f\uff0c\u5982\u679c\u542f\u52a8\u6210\u529f\u7684\u4f1a\u770b\u5230&#8221;HMaster&#8221;\u7684\u8fdb\u7a0b<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost bin]# jps<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">12075 Jps<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">11784 HMaster<\/span><\/div>\n<h2 id=\"2-5-hbase-pinpoint-\"><\/h2>\n<p><a name=\"yy0205\"><\/a><\/p>\n<h2>2.5 \u521d\u59cb\u5316Hbase\u7684pinpoint\u5e93<\/h2>\n<p>\u6267\u884cpinpoint\u63d0\u4f9b\u7684Hbase\u521d\u59cb\u5316\u8bed\u53e5\uff0c\u8fd9\u65f6\u4f1a\u521d\u59cb\u5316\u4e00\u4f1a\u3002<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">.\/hbase shell \/home\/pp_res\/hbase-create.hbase<\/span><\/div>\n<p>\u6267\u884c\u5b8c\u4e86\u4ee5\u540e\uff0c\u8fdb\u5165Hbase<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">.\/hbase shell<\/span><\/div>\n<p>\u8fdb\u5165\u540e\u53ef\u4ee5\u770b\u5230Hbase\u7684\u7248\u672c\uff0c\u8fd8\u6709\u4e00\u4e9b\u76f8\u5173\u7684\u4fe1\u606f<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">2016-11-15 01:55:44,861 WARN\u00a0 [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform&#8230; using built<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">in-java classes where applicableHBase Shell; enter &#8216;help&lt;RETURN&gt;&#8217; for list of supported commands.<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Type &#8220;exit&lt;RETURN&gt;&#8221; to leave the HBase Shell<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Version 1.0.3, rf1e1312f9790a7c40f6a4b5a1bab2ea1dd559890, Tue Jan 19 19:26:53 PST 2016<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">hbase(main):001:0&gt;<\/span><\/div>\n<p>\u8f93\u5165&#8221;status &#8216;detailed'&#8221;\u53ef\u4ee5\u67e5\u770b\u521a\u624d\u521d\u59cb\u5316\u7684\u8868\uff0c\u662f\u5426\u5b58\u5728<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">hbase(main):001:0&gt; status &#8216;detailed&#8217;<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">version 1.0.3<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">0 regionsInTransition<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">master coprocessors: []<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">1 live servers<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0\u00a0\u00a0 localhost:50887 1478538574709<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 requestsPerSecond=0.0, numberOfOnlineRegions=498, usedHeapMB=24, maxHeapMB=237, numberOfStores=626, numberOfStorefiles=0, storefileUncom<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">pressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0, readRequestsCount=7714, writeRequestsCount=996, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, coprocessors=[MultiRowMutationEndpoint]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;AgentEvent,,1478539104778.aa1b3b14d0b48d83cbf4705b75cb35b7.&#8221;<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 numberOfStores=1, numberOfStorefiles=0, storefileUncompressedSizeMB=0, storefileSizeMB=0, memstoreSizeMB=0, storefileIndexSizeMB=0,<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">readRequestsCount=0, writeRequestsCount=0, rootIndexSizeKB=0, totalStaticIndexSizeKB=0, totalStaticBloomSizeKB=0, totalCompactingKVs=0, currentCompactedKVs=0, compactionProgressPct=NaN, completeSequenceId=-1, dataLocality=0.0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">&#8230;<\/span><\/div>\n<p>\u4e5f\u53ef\u4ee5\u767b\u5f55web\uff0c\u6765\u67e5\u770bHBase\u7684\u6570\u636e\u662f\u5426\u521d\u59cb\u5316\u6210\u529f<\/p>\n<p>HbaseWeb :\u00a0<a href=\"http:\/\/192.168.245.134:16010\/master-status\">http:\/\/192.168.245.134:16010\/master-status<\/a><\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144710487-229643827.png\"><img loading=\"lazy\" decoding=\"async\" title=\"HbaseWeb\" src=\"\/2018\/05\/73200fd8bc4c7c45680838e585067b5e.png\" alt=\"HbaseWeb\" width=\"1230\" height=\"977\" border=\"0\" \/><\/a><\/p>\n<p><a name=\"yy03\"><\/a><\/p>\n<h1 id=\"3-pinpoint-collector\"><\/h1>\n<h1>3. \u5b89\u88c5pinpoint-collector<\/h1>\n<p>&nbsp;<\/p>\n<p><a name=\"yy0301\"><\/a><\/p>\n<h2 id=\"3-1-war-\">3.1 \u90e8\u7f72war\u5305<\/h2>\n<p>\u89e3\u538bTomcat\uff0c\u5c06Tomcat\u91cd\u547d\u540d\u79fb\u52a8\u5230\u6307\u5b9a\u4f4d\u7f6e<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">tar -zxvf apache-tomcat-8.0.36.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mv apache-tomcat-8.0.36\/ \/data\/service\/pp-col<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u4fee\u6539pp-col\u7684Tomcat\u7684\u914d\u7f6e\uff0c\u4e3b\u8981\u4fee\u6539\u7aef\u53e3\uff0c\u907f\u514d\u4e0epp-web\u7684Tomcat\u7684\u7aef\u53e3\u51b2\u7a81\u3002\u6211\u5728\u539f\u672c\u9ed8\u8ba4\u7684\u7aef\u53e3\u524d\u90fd\u52a0\u4e861\uff0c\u4e0b\u9762\u662f\u66ff\u6362\u7684shell\u547d\u4ee4\u3002<\/p>\n<p>\u3010\u6ce8\u610f\u3011\u6700\u540e\u4e00\u6761\u662f\u5c06tomcat\u7684\u79c1\u6709ip\u5f00\u653e\uff0c\u9700\u8981\u5c06localhost\u66ff\u6362\u6210\u672c\u673a\u7684ip\uff0c\u6211\u672c\u673a\u7684\u7f51\u5361\u662f\u9ed8\u8ba4\u7684\uff0c\u5982\u679c\u4f60\u672c\u673a\u7684\u7f51\u5361\u4e0d\u662feth0\uff0c\u9700\u8981\u8fdb\u884c\u76f8\u5173\u7684\u4fee\u6539\u3002\u6216\u8005\u76f4\u63a5\u7528&#8221;vi&#8221;\u8fdb\u53bb\uff0c\u4fee\u6539localhost<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/service\/pp-col\/conf\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8005&#8243;\/port=&#8221;18005&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8080&#8243;\/port=&#8221;18080&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8443&#8243;\/port=&#8221;18443&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8009&#8243;\/port=&#8221;18009&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/redirectPort=&#8221;8443&#8243;\/redirectPort=&#8221;18443&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/localhost\/`ifconfig eth0 | grep &#8216;inet addr&#8217; | awk &#8216;{print $2}&#8217; | awk -F: &#8216;{print $2}&#8217;`\/g&#8221; server.xml<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u90e8\u7f72pinpoint-collector.war\u5305<\/p>\n<p>\u3010\u6ce8\u610f\uff1a\u5982\u679c\u6ca1\u6709unzip\u547d\u4ee4\uff0c\u53ef\u4ee5 &#8220;yum install unzip&#8221; \u3011<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">rm -rf \/data\/service\/pp-col\/webapps\/*<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">unzip pinpoint-collector-1.5.2.war -d \/data\/service\/pp-col\/webapps\/ROOT<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u542f\u52a8Tomcat<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/service\/pp-col\/bin\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">.\/startup.sh<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u67e5\u770b\u65e5\u5fd7\uff0c\u662f\u5426\u6210\u529f\u542f\u52a8<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">tail -f ..\/logs\/catalina.out<\/span><\/div>\n<p><a name=\"yy0302\"><\/a><\/p>\n<h2 id=\"3-2-\"><\/h2>\n<h2>3.2 \u914d\u7f6e\u5feb\u901f\u542f\u52a8<\/h2>\n<p>\u914d\u7f6e\u5feb\u901f\u542f\u52a8\u9700\u8981\u4fee\u6539pp-collector.init\u7684\u8def\u5f84( pp-collector\u5728\u7f51\u76d8\u91cc\u9762\u6709 )\uff0c\u53ef\u4ee5&#8221;vi&#8221;\u8fdb\u53bb\uff0c\u5927\u6982\u572818\uff0c24\uff0c27\u884c\u5904\uff0c\u4fee\u6539\u76f8\u5173\u7684\u8def\u5f84\u3002\u6211\u8fd9\u8fb9\u4e3a\u4e86\u65b9\u4fbf\uff0c\u76f4\u63a5\u5c31\u7528\u66ff\u6362\u7684shell\u505a\u4e86\uff0c\u5982\u679c\u8def\u5f84\u4e0e\u6211\u7684\u4e0d\u4e00\u81f4\uff0c\u9700\u8981\u5c06\u8def\u5f84\u4fee\u6539\u6210\u81ea\u5df1\u7684\u8def\u5f84\u3002<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/JAVA_HOME=\\\/usr\\\/java\\\/default\\\/\/JAVA_HOME=\\\/usr\\\/java\\\/jdk17\\\/\/g&#8221; pp-collector.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/CATALINA_HOME=\\\/data\\\/service\\\/pinpoint-collector\\\/\/CATALINA_HOME=\\\/data\\\/service\\\/pp-col\\\/\/g&#8221; pp-collector.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/CATALINA_BASE=\\\/data\\\/service\\\/pinpoint-collector\\\/\/CATALINA_BASE=\\\/data\\\/service\\\/pp-col\\\/\/g&#8221; pp-collector.init<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u5c06\u6587\u4ef6\u8d4b\u4e88&#8221;\u6267\u884c&#8221;\u7684\u6743\u9650\uff0c\u628a\u5b83\u653e\u5230&#8221;init.d&#8221;\u4e2d\u53bb\u3002\u4ee5\u540e\u5c31\u53ef\u4ee5restart\u5feb\u901f\u91cd\u542f\u4e86\u3002<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">chmod 711 pp-collector.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mv pp-collector.init \/etc\/init.d\/pp-col<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\"># \u6d4b\u8bd5\u4e00\u4e0brestart<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost pp_res]# \/etc\/init.d\/pp-col restart<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Stoping Tomcat<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_BASE:\u00a0\u00a0 \/data\/service\/pp-col\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_HOME:\u00a0\u00a0 \/data\/service\/pp-col\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_TMPDIR: \/data\/service\/pp-col\/\/temp<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using JRE_HOME:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/usr\/java\/jdk17\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CLASSPATH:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/data\/service\/pp-col\/\/bin\/bootstrap.jar:\/data\/service\/pp-col\/\/bin\/tomcat-juli.jar<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">waiting for processes to exitStarting tomcat<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_BASE:\u00a0\u00a0 \/data\/service\/pp-col\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_HOME:\u00a0\u00a0 \/data\/service\/pp-col\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_TMPDIR: \/data\/service\/pp-col\/\/temp<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using JRE_HOME:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/usr\/java\/jdk17\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CLASSPATH:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/data\/service\/pp-col\/\/bin\/bootstrap.jar:\/data\/service\/pp-col\/\/bin\/tomcat-juli.jar<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Tomcat started.<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Tomcat is running with pid: 22824<\/span><\/div>\n<div class=\"line\"><\/div>\n<p><a name=\"yy04\"><\/a><\/p>\n<h1 id=\"4-pinpoint-web\"><\/h1>\n<h1>4. \u5b89\u88c5pinpoint-web<\/h1>\n<p><a name=\"yy0401\"><\/a><\/p>\n<h2 id=\"4-1-war-\"><\/h2>\n<h2>4.1 \u90e8\u7f72war\u5305<\/h2>\n<p>\u89e3\u538bTomcat\uff0c\u5c06Tomcat\u91cd\u547d\u540d\u79fb\u52a8\u5230\u6307\u5b9a\u4f4d\u7f6e<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">tar -zxvf apache-tomcat-8.0.36.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mv apache-tomcat-8.0.36\/ \/data\/service\/pp-web<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u4fee\u6539pp-web\u7684Tomcat\u7684\u914d\u7f6e\uff0c\u4e3b\u8981\u4fee\u6539\u7aef\u53e3\uff0c\u907f\u514d\u4e0epp-col\u7684Tomcat\u7684\u7aef\u53e3\u51b2\u7a81\u3002\u6211\u5728\u539f\u672c\u9ed8\u8ba4\u7684\u7aef\u53e3\u524d\u90fd\u52a0\u4e862\uff0c\u4e0b\u9762\u662f\u66ff\u6362\u7684shell\u547d\u4ee4<\/p>\n<p>\u3010\u6ce8\u610f\u3011\u6700\u540e\u4e00\u6761\u662f\u5c06tomcat\u7684\u79c1\u6709ip\u5f00\u653e\uff0c\u9700\u8981\u5c06localhost\u66ff\u6362\u6210\u672c\u673a\u7684ip\uff0c\u6211\u672c\u673a\u7684\u7f51\u5361\u662f\u9ed8\u8ba4\u7684\uff0c\u5982\u679c\u4f60\u672c\u673a\u7684\u7f51\u5361\u4e0d\u662feth0\uff0c\u9700\u8981\u8fdb\u884c\u76f8\u5173\u7684\u4fee\u6539\u3002\u6216\u8005\u76f4\u63a5\u7528&#8221;vi&#8221;\u8fdb\u53bb\uff0c\u4fee\u6539localhost<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/service\/pp-web\/conf\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8005&#8243;\/port=&#8221;28005&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8080&#8243;\/port=&#8221;28080&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8443&#8243;\/port=&#8221;28443&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/port=&#8221;8009&#8243;\/port=&#8221;28009&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8216;s\/redirectPort=&#8221;8443&#8243;\/redirectPort=&#8221;28443&#8243;\/g&#8217; server.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/localhost\/`ifconfig eth0 | grep &#8216;inet addr&#8217; | awk &#8216;{print $2}&#8217; | awk -F: &#8216;{print $2}&#8217;`\/g&#8221; server.xml<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u90e8\u7f72pinpoint-collector.war\u5305<\/p>\n<p>\u3010\u6ce8\u610f\uff1a\u5982\u679c\u6ca1\u6709unzip\u547d\u4ee4\uff0c\u53ef\u4ee5 &#8220;yum install unzip&#8221; \u3011<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">rm -rf \/data\/service\/pp-web\/webapps\/*<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">unzip pinpoint-web-1.5.2.war -d \/data\/service\/pp-web\/webapps\/ROOT<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u67e5\u770bwar\u5305\u662f\u5426\u89e3\u538b\u6210\u529f<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost conf]# ll \/data\/service\/pp-web\/webapps\/ROOT\/WEB-INF\/classes\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">total 88<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 2164 Apr\u00a0 7\u00a0 2016 applicationContext-cache.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 3649 Apr\u00a0 7\u00a0 2016 applicationContext-dao-config.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 1490 Apr\u00a0 7\u00a0 2016 applicationContext-datasource.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 6680 Apr\u00a0 7\u00a0 2016 applicationContext-hbase.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 1610 Apr\u00a0 7\u00a0 2016 applicationContext-websocket.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 6576 Apr\u00a0 7\u00a0 2016 applicationContext-web.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">drwxrwxr-x. 2 root root 4096 Apr\u00a0 7\u00a0 2016 batch<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root\u00a0 106 Apr\u00a0 7\u00a0 2016 batch.properties<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">drwxrwxr-x. 3 root root 4096 Apr\u00a0 7\u00a0 2016 com<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root\u00a0 682 Apr\u00a0 7\u00a0 2016 ehcache.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 1001 Apr\u00a0 7\u00a0 2016 hbase.properties<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root\u00a0 153 Apr\u00a0 7\u00a0 2016 jdbc.properties<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 3338 Apr\u00a0 7\u00a0 2016 log4j.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">drwxrwxr-x. 2 root root 4096 Apr\u00a0 7\u00a0 2016 mapper<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 1420 Apr\u00a0 7\u00a0 2016 mybatis-config.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">drwxrwxr-x. 3 root root 4096 Apr\u00a0 7\u00a0 2016 org<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root\u00a0 630 Apr\u00a0 7\u00a0 2016 pinpoint-web.properties<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root\u00a0 141 Apr\u00a0 7\u00a0 2016 project.properties<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-rw-r&#8211;. 1 root root 3872 Apr\u00a0 7\u00a0 2016 servlet-context.xml<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">drwxrwxr-x. 2 root root 4096 Apr\u00a0 7\u00a0 2016 sql<\/span><\/div>\n<p>\u8fd9\u91cc\u8bf4\u660e\u4e00\u4e0b\uff1a<\/p>\n<ul>\n<li>hbase.properties \u914d\u7f6e\u6211\u4eecpp-web\u4ece\u54ea\u4e2a\u6570\u636e\u6e90\u83b7\u53d6\u91c7\u96c6\u6570\u636e\uff0c\u8fd9\u91cc\u6211\u4eec\u53ea\u6307\u5b9aHbase\u7684zookeeper\u5730\u5740\u3002<\/li>\n<li>jdbc.properties pp-web\u8fde\u63a5\u81ea\u8eabMysql\u6570\u636e\u5e93\u7684\u8fde\u63a5\u8ba4\u8bc1\u914d\u7f6e\u3002<\/li>\n<li>sql\u76ee\u5f55 pp-web\u672c\u8eab\u6709\u4e9b\u6570\u636e\u9700\u8981\u5b58\u653e\u5728MySQL\u6570\u636e\u5e93\u4e2d\uff0c\u8fd9\u91cc\u9700\u8981\u521d\u59cb\u5316\u4e00\u4e0b\u8868\u7ed3\u6784\u3002<\/li>\n<li>pinpoint-web.properties \u8fd9\u91ccpp-web\u96c6\u7fa4\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u5982\u679c\u4f60\u9700\u8981pp-web\u96c6\u7fa4\u7684\u8bdd\u3002<\/li>\n<li>applicationContext-* .xml \u8fd9\u4e9b\u6587\u4ef6\u5728\u540e\u7eed\u7684\u8c03\u4f18\u5de5\u4f5c\u4e2d\u4f1a\u7528\u5230\u3002<\/li>\n<li>log4j.xml \u65e5\u5fd7\u76f8\u5173\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>\u542f\u52a8Tomcat<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/service\/pp-web\/bin\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">.\/startup.sh<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u67e5\u770b\u65e5\u5fd7\uff0cTocmat\u662f\u5426\u542f\u52a8\u6210\u529f<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">tail -f ..\/logs\/catalina.out<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u65e5\u5fd7\u4e2d\u51fa\u73b0\u4e0b\u9762\u8fd9\u53e5\u8bdd\uff0c\u8bf4\u660e\u5df2\u7ecf\u542f\u52a8\u6210\u529f\u4e86<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">org.apache.catalina.startup.Catalina.start Server startup in 79531 ms<\/span><\/div>\n<p>\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u8bbf\u95ee\u4e00\u4e0b\u8fd9\u4e2a\u5730\u5740\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\u8f93\u5165&#8221;<a>http:\/\/192.168.245.136:28080&#8243;\uff0c\u5c31\u4f1a\u51fa\u73b0\u4e3b\u9875\u9762\u4e86<\/a><\/p>\n<p>\u5982\u679c\u8bbf\u95ee\u4e0d\u4e86\u7684\u8bdd\uff0c\u5173\u95ed\u9632\u706b\u5899<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost conf]# \/etc\/init.d\/iptables stop<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">iptables: Setting chains to policy ACCEPT: filter\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [\u00a0 OK\u00a0 ]<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">iptables: Flushing firewall rules:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [\u00a0 OK\u00a0 ]<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">iptables: Unloading modules:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 [\u00a0 OK\u00a0 ]<\/span><\/div>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144711315-1500996901.png\"><img loading=\"lazy\" decoding=\"async\" title=\"pp-web\" src=\"\/2018\/05\/584941becc3a187324716aca2f8ee117.png\" alt=\"pp-web\" width=\"1353\" height=\"708\" border=\"0\" \/><\/a><\/p>\n<p><a name=\"yy0402\"><\/a><\/p>\n<h2 id=\"4-2-\"><\/h2>\n<h2>4.2 \u914d\u7f6e\u5feb\u901f\u542f\u52a8<\/h2>\n<p>\u9700\u8981\u4fee\u6539&#8221;pp-web.init&#8221;\uff0c\u4e0e\u4e0a\u9762\u7684\u6b65\u9aa4\u4e00\u81f4<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_res<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/JAVA_HOME=\\\/usr\\\/java\\\/default\\\/\/JAVA_HOME=\\\/usr\\\/java\\\/jdk17\\\/\/g&#8221; pp-web.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/CATALINA_HOME=\\\/data\\\/service\\\/pinpoint-web\\\/\/CATALINA_HOME=\\\/data\\\/service\\\/pp-web\\\/\/g&#8221; pp-web.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/CATALINA_BASE=\\\/data\\\/service\\\/pinpoint-web\\\/\/CATALINA_BASE=\\\/data\\\/service\\\/pp-web\\\/\/g&#8221; pp-web.init<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u5c06\u6587\u4ef6\u8d4b\u4e88&#8221;\u6267\u884c&#8221;\u7684\u6743\u9650\uff0c\u628a\u8ba9\u653e\u5230&#8221;init.d&#8221;\u4e2d\u53bb\u3002\u4ee5\u540e\u5c31\u53ef\u4ee5restart\u5feb\u901f\u91cd\u542f\u4e86\u3002<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">chmod 711 pp-web.init<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mv pp-web.init \/etc\/init.d\/pp-web<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\"># \u6d4b\u8bd5\u4e00\u4e0brestart<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost pp_res]# \/etc\/init.d\/pp-web restart<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Stoping Tomcat<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_BASE:\u00a0\u00a0 \/data\/service\/pp-web\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_HOME:\u00a0\u00a0 \/data\/service\/pp-web\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_TMPDIR: \/data\/service\/pp-web\/\/temp<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using JRE_HOME:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/usr\/java\/jdk17\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CLASSPATH:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/data\/service\/pp-web\/\/bin\/bootstrap.jar:\/data\/service\/pp-web\/\/bin\/tomcat-juli.jar<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">\u00a0<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">waiting for processes to exitStarting tomcat<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_BASE:\u00a0\u00a0 \/data\/service\/pp-web\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_HOME:\u00a0\u00a0 \/data\/service\/pp-web\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CATALINA_TMPDIR: \/data\/service\/pp-web\/\/temp<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using JRE_HOME:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/usr\/java\/jdk17\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Using CLASSPATH:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/data\/service\/pp-web\/\/bin\/bootstrap.jar:\/data\/service\/pp-web\/\/bin\/tomcat-juli.jar<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Tomcat started.<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">Tomcat is running with pid: 22703<\/span><\/div>\n<p><a name=\"yy05\"><\/a><\/p>\n<h1><\/h1>\n<h1>5. \u90e8\u7f72pp-agent\u91c7\u96c6\u76d1\u63a7\u6570\u636e<\/h1>\n<p><a name=\"yy0501\"><\/a><\/p>\n<h1 id=\"5-pp-agent-\"><\/h1>\n<h2>5.1 \u5728\u6d4b\u8bd5\u7cfb\u7edf\u4e2d\uff0c\u90e8\u7f72pp-agent\u91c7\u96c6\u76d1\u63a7\u6570\u636e<\/h2>\n<p>&nbsp;<\/p>\n<p>\u90e8\u7f72\u91c7\u96c6\u5668\u5c31\u5f88\u7b80\u5355\u4e86\uff0c\u53ea\u9700\u8981\u52a03\u53e5\u8bdd\u5c31\u597d\u4e86\u3002\u6211\u8fd9\u8fb9\u505a\u4e00\u4e2a\u6d4b\u8bd5\u7684Tomcat\uff0c\u6765\u6a21\u62df\u90e8\u7f72\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5148\u5efa\u7acb\u4e00\u4e2a\u6587\u4ef6\u5939\uff0c\u653e\u6d4b\u8bd5\u9700\u8981\u7684\u5305<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">mkdir \/home\/pp_test<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/test<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u5c06\u6d4b\u8bd5\u9700\u8981\u7684pp-agent\u62c9\u5230\u670d\u52a1\u5668\u4e0a<\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144711846-669011609.png\"><img loading=\"lazy\" decoding=\"async\" title=\"pp-test\" src=\"\/2018\/05\/28ca38fb68a3127709177eb3aeaeff61.png\" alt=\"pp-test\" width=\"943\" height=\"769\" border=\"0\" \/><\/a><\/p>\n<p>\u67e5\u770b\u5305\u662f\u5426\u4e0a\u4f20\u6210\u529f<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">[root@localhost pp_test]# ll<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">total 16820<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root 9277365 Nov\u00a0 9 02:25 apache-tomcat-8.0.36.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root 6621915 Nov\u00a0 9 02:25 pinpoint-agent-1.5.2.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">-rw-r&#8211;r&#8211;. 1 root root 1320206 Nov\u00a0 9 02:25 test.war<\/span><\/div>\n<p><a name=\"yy0502\"><\/a><\/p>\n<h2 id=\"5-1-tomcat-\"><\/h2>\n<h2>5.2 \u914d\u7f6e\u6a21\u62df\u7684Tomcat\u6d4b\u8bd5\u73af\u5883<\/h2>\n<p>\u4e3a\u4e86\u65b9\u4fbf\u89c2\u5bdf\uff0c\u914d\u7f6e\u4e00\u4e2a\u5047\u7684\u7cfb\u7edf\uff0c\u89e3\u538bTomcat\u5230\u6307\u5b9a\u76ee\u5f55<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_test<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mkdir \/data<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">tar -zxvf apache-tomcat-8.0.36.tar.gz<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u914d\u7f6elocalhost\u8ba9\u5916\u90e8\u53ef\u4ee5\u8bbf\u95ee<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/pp-test\/conf\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">sed -i &#8220;s\/localhost\/`ifconfig eth0 | grep &#8216;inet addr&#8217; | awk &#8216;{print $2}&#8217; | awk -F: &#8216;{print $2}&#8217;`\/g&#8221; server.xml<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u89e3\u538b\u6d4b\u8bd5\u7528\u7684war\u5305<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_test\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">rm -rf \/data\/pp-test\/webapps\/*<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">unzip test.war -d \/data\/pp-test\/webapps\/ROOT<\/span><\/div>\n<p><a name=\"yy0503\"><\/a><\/p>\n<h2 id=\"5-2-pp-agent-\"><\/h2>\n<h2>5.3 \u914d\u7f6epp-agent\u91c7\u96c6\u5668<\/h2>\n<p>\u89e3\u538bpp-agent<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/home\/pp_test<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">tar -zxvf pinpoint-agent-1.5.2.tar.gz<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">mv pinpoint-agent-1.5.2 \/data\/pp-agent<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/pp-agent\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">vi pinpoint.config<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u4e3b\u8981\u4fee\u6539IP\uff0c\u53ea\u9700\u8981\u6307\u5b9a\u5230\u5b89\u88c5pp-col\u7684IP\u5c31\u884c\u4e86\uff0c\u5b89\u88c5pp-col\u542f\u52a8\u540e\uff0c\u81ea\u52a8\u5c31\u5f00\u542f\u4e869994\uff0c9995\uff0c9996\u7684\u7aef\u53e3\u4e86\u3002\u8fd9\u91cc\u5c31\u4e0d\u9700\u8981\u64cd\u5fc3\u4e86\uff0c\u5982\u679c\u6709\u7aef\u53e3\u9700\u6c42\uff0c\u8981\u53bbpp-col\u7684\u914d\u7f6e\u6587\u4ef6(&#8220;pp-col\/webapps\/ROOT\/WEB-INF\/classes\/pinpoint-collector.properties&#8221;)\u4e2d\uff0c\u4fee\u6539\u8fd9\u4e9b\u7aef\u53e3<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">profiler.collector.ip=192.168.245.136<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u4fee\u6539\u6d4b\u8bd5\u9879\u76ee\u4e0b\u7684tomcat\u542f\u52a8\u6587\u4ef6&#8221;catalina.sh&#8221;\uff0c\u4fee\u6539\u8fd9\u4e2a\u53ea\u8981\u662f\u4e3a\u4e86\u76d1\u63a7\u6d4b\u8bd5\u73af\u5883\u7684Tomcat\uff0c\u589e\u52a0\u63a2\u9488<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/pp-test\/bin<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">vi catalina.sh<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u572820\u884c\u589e\u52a0\u5982\u4e0b\u5b57\u6bb5<\/p>\n<ol>\n<li>\u7b2c\u4e00\u884c\u662fpp-agent\u7684jar\u5305\u4f4d\u7f6e<\/li>\n<li>\u7b2c\u4e8c\u884c\u662fagent\u7684ID\uff0c\u8fd9\u4e2aID\u662f\u552f\u4e00\u7684\uff0c\u6211\u662f\u7528pp + \u4eca\u5929\u7684\u65e5\u671f\u547d\u540d\u7684\uff0c\u53ea\u8981\u4e0e\u5176\u4ed6\u7684\u9879\u76ee\u7684ID\u4e0d\u91cd\u590d\u5c31\u597d\u4e86<\/li>\n<li>\u7b2c\u4e09\u884c\u662f\u91c7\u96c6\u9879\u76ee\u7684\u540d\u5b57\uff0c\u8fd9\u4e2a\u540d\u5b57\u53ef\u4ee5\u968f\u4fbf\u53d6\uff0c\u53ea\u8981\u5404\u4e2a\u9879\u76ee\u4e0d\u91cd\u590d\u5c31\u597d\u4e86<\/li>\n<\/ol>\n<div class=\"line\"><span class=\"text plain null-grammar\">CATALINA_OPTS=&#8221;$CATALINA_OPTS -javaagent:\/data\/pp-agent\/pinpoint-bootstrap-1.5.2.jar&#8221;<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">CATALINA_OPTS=&#8221;$CATALINA_OPTS -Dpinpoint.agentId=pp20161122&#8243;<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">CATALINA_OPTS=&#8221;$CATALINA_OPTS -Dpinpoint.applicationName=MyTestPP<\/span><\/div>\n<p><a name=\"yy0504\"><\/a><\/p>\n<h2 id=\"5-3-tomcat\"><\/h2>\n<h2>5.4 \u76d1\u63a7Tomcat<\/h2>\n<p>&nbsp;<\/p>\n<p>\u914d\u7f6e\u597d\u4e86\u3002\u5c31\u53ef\u4ee5\u5f00\u59cb\u76d1\u63a7\u4e86\uff0c\u6211\u4eec\u542f\u52a8\u6d4b\u8bd5\u7528\u7684Tomcat\u7684\u670d\u52a1\u5668<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">cd \/data\/pp-test\/bin\/<\/span><\/div>\n<div class=\"line\"><span class=\"text plain null-grammar\">.\/startup.sh<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u67e5\u770b\u542f\u52a8\u65e5\u5fd7\uff0c\u786e\u5b9eTomcat\u542f\u52a8<\/p>\n<div class=\"line\"><span class=\"text plain null-grammar\">tail -f ..\/logs\/catalina.out<\/span><\/div>\n<p>&nbsp;<\/p>\n<p>\u542f\u52a8\u4e86\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u8bbf\u95ee\u6d4b\u8bd5\u73af\u5883\u4e86<\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144712971-302014446.png\"><img loading=\"lazy\" decoding=\"async\" title=\"test\" src=\"\/2018\/05\/ec54cfa307874767b36b37c8a208ade7.png\" alt=\"test\" width=\"477\" height=\"234\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144713643-1533237063.png\"><img loading=\"lazy\" decoding=\"async\" title=\"test1\" src=\"\/2018\/05\/7e387ac71dae0080484641ccbd868512.png\" alt=\"test1\" width=\"524\" height=\"457\" border=\"0\" \/><\/a><\/p>\n<p>\u8fd9\u65f6\u5019\u6211\u4eec\u5728\u8bbf\u95eepp-web\uff0c\u53ef\u4ee5\u53d1\u73b0\u5b83\u7684\u4e0b\u62c9\u6846\u4e2d\uff0c\u591a\u4e86\u4e00\u4e2aapp<\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144714456-1039292679.png\"><img loading=\"lazy\" decoding=\"async\" title=\"pp-testApp\" src=\"\/2018\/05\/fc13aab2b1c8af675a9645b7e8910c34.png\" alt=\"pp-testApp\" width=\"1006\" height=\"474\" border=\"0\" \/><\/a><\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144715425-1311072141.png\"><img loading=\"lazy\" decoding=\"async\" title=\"pp-testView\" src=\"\/2018\/05\/f5b7f4f3fa713c470774f624776d0719.png\" alt=\"pp-testView\" width=\"1339\" height=\"670\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u56e0\u4e3a\u6211\u8bbf\u95ee\u4e86\u4e24\u6b21\uff0c\u6240\u4ee5\u4ed6\u663e\u793a\u6709\u4e24\u6761\u8bf7\u6c42\u8bb0\u5f55\uff0c\u53ef\u4ee5\u5728\u53f3\u4e0a\u89d2\u7684\u6846\u67e5\u770b\u8be6\u60c5\u3002<\/p>\n<p>\u3010\u6ce8\u610f\u3011\u9f20\u6807\u70b9\u51fb\u53f3\u4e0a\u89d2\u7bad\u5934\u4f4d\u7f6e\uff0c\u9f20\u6807\u5de6\u952e\u6309\u4f4f\u4e0d\u52a8\uff0c\u62c9\u6846\u67e5\u770b\u3002\u6211\u88ab\u8fd9\u4e2a\u5751\uff0c\u5751\u61f5\u903c\u4e86\uff0c\u7279\u6b64\u5199\u6e05\u695a\u3002<\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144716690-1717832338.png\"><img loading=\"lazy\" decoding=\"async\" title=\"pp-detail\" src=\"\/2018\/05\/fe76924069f3f94c1cdbe71a6dd3713a.png\" alt=\"pp-detail\" width=\"1350\" height=\"669\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u65f6\u5019\u5c31\u5f39\u51fa\u4e86\u65b0\u9875\u9762\uff0c\u53ef\u4ee5\u770b\u5230\uff0c\u6211\u8bbf\u95ee\u4e86\u4e00\u6b21\u4e3b\u9875\uff0c\u8bbf\u95ee\u4e86\u4e00\u6b21test\u7684servlet\u3002\u800c\u4e14\u8be6\u7ec6\u4fe1\u606f\u90fd\u8bb0\u5f55\u5728\u4e0b\u8868\u4e2d\u3002<\/p>\n<p><a href=\"http:\/\/images2015.cnblogs.com\/blog\/626593\/201611\/626593-20161127144717315-226577854.png\"><img loading=\"lazy\" decoding=\"async\" title=\"pp-code\" src=\"\/2018\/05\/b6485eb94c6ccf5e9f12b6876c07ecef.png\" alt=\"pp-code\" width=\"1424\" height=\"672\" border=\"0\" \/><\/a><\/p>\n<h2 id=\"-\"><\/h2>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u5230\u8fd9\u91cc\uff0c\u6574\u4e2a\u90e8\u7f72\u8fc7\u7a0b\u5c31\u5b8c\u4e86\u3002\u503c\u5f97\u8981\u6ce8\u610f\u7684\u5730\u65b9\uff1a<\/p>\n<ol>\n<li>\u5982\u679cHbase\u4e0d\u662f\u4e0epp-web, pp-col\u88c5\u5728\u4e00\u53f0\u673a\u5668\u4e0a\uff0c\u9700\u8981\u5b89\u88c5zookeeper\uff0c\u53ea\u8981\u5b89\u88c5\u5c31\u597d\uff0c\u786e\u5b9e2181\u7aef\u53e3\u542f\u52a8\u5c31\u597d\u3002<\/li>\n<li>\u5982\u679czookeeper\u5b89\u88c5\u5728\u72ec\u7acb\u673a\u5668\u4e0a\uff0c\u8fd9\u91cc\u9700\u8981\u4fee\u6539\u4e00\u4e0bpp-colletor \u548c pp-web\u7684\u914d\u7f6e\u6587\u4ef6pinpoint-collector.properties\uff0cpinpoint-web.properties\uff0c\u4e0d\u7136\u4f1a\u5bfc\u81f4\u4fe9\u4e2a\u6a21\u5757\u542f\u52a8\u5931\u8d25\u3002<\/li>\n<li>\u53d1\u73b0pinpoint\u8fd8\u662f\u6709\u4e9b\u7f3a\u9677\uff0c\u5f02\u6b65\u7684\u64cd\u4f5c\u76d1\u63a7\u4e0d\u5230\uff0c\u6bd4\u5982\u6211\u5199\u4e86\u4e2a\u591a\u7ebf\u7a0b\u6765\u53d1\u9001HttpClient4\u7684\u8bf7\u6c42\uff0c\u4f46\u662fpinpoint\u76d1\u63a7\u4e0d\u5230\u3002\u4f46\u662f\u5b83\u4ecb\u7ecd\u53c8\u8bf4\u53ef\u4ee5\u76d1\u63a7\u5230Httpclient4\u7684\u8bf7\u6c42\u3002\u73b0\u5728\u90fd\u662f\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u5f02\u6b65\u62ff\u6570\u636e\u518d\u5e38\u89c1\u4e0d\u8fc7\u6765\uff0c\u5982\u679c\u76d1\u63a7\u4e0d\u5230\u5f02\u6b65\u7684\u64cd\u4f5c\uff0c\u5c31\u5f88\u9e21\u808b\u4e86\u3002\u770bpp1.6\u4f1a\u4e0d\u4f1a\u4fee\u590d\u8fd9\u4e2a\u95ee\u9898<\/li>\n<li>\u5728pp1.6\u90e8\u7f72\uff0cHbase\u4e2d\u7684\u9ed8\u8ba4\u5b57\u6bb5\u6709\u589e\u52a0\uff0c\u5982\u679c\u6ca1\u6709\u52a0\u4e0a\u9ed8\u8ba4\u5b57\u6bb5\uff0c\u53d6\u5f97\u7684\u6570\u636e\u5c31\u4f1a\u53d8\u5f97\u76f8\u5f53\u5c11\u4e86\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u5e8f\u7ae0 pinpoint\u662f\u5f00\u6e90\u5728github\u4e0a\u7684\u4e00\u6b3eAPM\u76d1\u63a7\u5de5\u5177\uff0c\u5b83\u662f\u7528Java\u7f16\u5199\u7684\uff0c\u7528\u4e8e\u5927\u89c4\u6a21\u5206\u5e03\u5f0f\u7cfb\u7edf\u76d1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86],"tags":[],"class_list":["post-3533","post","type-post","status-publish","format-standard","hentry","category-service"],"_links":{"self":[{"href":"http:\/\/switch.linesno.com\/index.php?rest_route=\/wp\/v2\/posts\/3533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/switch.linesno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/switch.linesno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/switch.linesno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/switch.linesno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3533"}],"version-history":[{"count":1,"href":"http:\/\/switch.linesno.com\/index.php?rest_route=\/wp\/v2\/posts\/3533\/revisions"}],"predecessor-version":[{"id":3548,"href":"http:\/\/switch.linesno.com\/index.php?rest_route=\/wp\/v2\/posts\/3533\/revisions\/3548"}],"wp:attachment":[{"href":"http:\/\/switch.linesno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/switch.linesno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3533"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/switch.linesno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}