Use and deployment of pinpoint, and deployment of pinpoint

Source: Internet
Author: User

Use and deployment of pinpoint, and deployment of pinpoint

Share your own experience in building a pinpoint

 

As a result of the project's needs, I recently tried to get a pinpoint. In fact, it's not difficult to get it all done!

It was originally intended to be built on a mac, but on the official website it was necessary to install JDK 6, JDK 7, and JDK 8. Therefore, we gave up the mac and directly used the Windows 7 virtual machine;

The following are some official websites that can be directly matched:

  

I downloaded a pinpoint compressed package and decompressed it directly;

Then install maven and configure the maven environment variables. Do not go into details. Go to the pinpoint home directory in cmd and enter the command: mvn install-Dmaven. test. skip = true; it may take a long time to install it. Please wait patiently. After restarting the computer, you must execute the mvn command to use pinpoint. Otherwise, an error will be reported when pinpoint-web is started.

Find the file pinpoint/quickstart/bin

Double-click the run order is: start-hbase.cmd; init-hbase.cmd; start-collector; start-testapp; start-web;

Well, if no error is reported, you can visit the website, localhost: 28080 and localhost: 28081;

Note !!! Comrades, the biggest pitfall lies here.

Because you must use pinpoint to monitor your project, so you need to hook your project to pinpoint. tomcat is used as an example here;

I don't want to start tomcat anymore. I believe everyone knows that don't forget to pack the project into a war package and put it in tomcat's webapp;

Pinpoint has a pinpoint-agent, which monitors your program;

First find tomcat/bin/catalina. cmd; open it with notepad, and add the code in the second line:

Set CATALINA_OPTS = % CATALINA_OPTS %-javaagent: D:/pinpoint-agent/pinpoint-bootstrap-1.5.1.jar

 

Set CATALINA_OPTS = % CATALINA_OPTS %-Dpinpoint. agentId = test

 

   Set CATALINA_OPTS = % CATALINA_OPTS %-Dpinpoint. applicationName = appName   The first line of code indicates specifying your pinpoint-agent package. Most of the tutorials on the Internet are difficult to solve. After a day of trouble, I finally figured it out. The package location: pinpoint/quickstart/agent/target/pinpoint-agent/the id of the second line of the pinpoint-bootstrap-1.6.0.jar is just get it, no conflict on the line, the third line is the name of the project seen in monitoring; the pinpoint I set up is a single machine, not a cluster. If you want to set up a cluster for monitoring, you should first study it yourself, or wait for me to take notes !!! You are welcome to give me some advice, but don't spray it. I don't have a basin !!!

  

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.