Use of Java performance monitoring tool jprofiler

Source: Internet
Author: User
Tags jprofiler
Recently, the company's projects are very unstable and often come down inexplicably, and the response speed is also unsatisfactory. Therefore, memory leakage is suspected. I read some introduction about some test tools on the Internet and thought that jprofiler is suitable. The latest version is 4.X, but I can't find the crack. I only found the 3.3 cracking, So I downloaded 3.3. Yes:

Http://www.ej-technologies.com/download/jprofiler/version3.php

Many jprofiler introductions on the Internet are the situation where the monitored applications (or Web applications) and jprofiler are installed on the same machine. If this is the case, it doesn't make much sense, because the web application of a remote Linux server is often to be monitored, and the monitoring results certainly hope to be seen in a graphical interface on a local Windows PC. After jprofiler3 and cracking are installed on the local Windows server, the remote session option exists. So I started to work:

Step 1: In addition to downloading jprofiler3 for Windows and installing it locally, download a Linux version. Linuxr rpminstallation version, .sh installation version and .tar.gz compression version. sh version. after/jprofiler3.sh-Q is installed, jprofile is installed in the/var/jprofiler3 path on Linux. (This is the result if I directly run the installation without modifying any configuration files, the purpose is to use it so you don't want to spend time researching it ).

Step 2: Run jprofiler on the local gui. Choose session> integration wizard> new remote integration from the menu,

Then select "on a remote computer", and select Linux x86 as the system,

The following sections won't post images. They are just a dumb operation. Ask what to fill in until you see this step:

The prompt in this section is the personal information generated based on the different items you fill in. Copy the information and use it later. Next, select "no, I will start the session later .".

Step 3: configure it on the Linux server. This requires the personalized configuration information generated just now. -Xint-xrunjprofiler: Port = 8849-xbootclasspath/A:/opt/jprofiler3/bin/agent. jar is the command line parameter that follows "Java" when the Java program is started. Because I use tomcat, the startup script of Tomcat is started up. add this line to the java_opts parameter in Sh. (In fact, there will still be many failures caused by detailed problems. This is all the background. For example, these command line parameters may conflict with the original parameters. I started to do this many times and failed, the JVM reports bugs and does not know what is going on at the beginning. It takes a lot of time, but it is actually a parameter conflict ). There is also a personalized configuration information is to have an environment variable named LD_LIBRARY_PATH, then I modified Catalina. Sh, add export LD_LIBRARY_PATH =/opt/jprofiler3/bin/linux-x86 in it.

Step 4: start Tomcat with the modified startup. Sh. You can see the prompt in the Catalina. Out log that the remote monitoring program can be connected.

Step 5: Select "session-> open session" from the jprofiler menu running on the local Windows PC, select the created remote session, and click OK.

If no problem exists, the monitoring program runs successfully! We can see a lot of lovely monitoring results, such as the distribution and usage of the memory stack, the number of objects created, and the CPU usage, you can also view the running status of automatic garbage collection in Java virtual machines based on the memory and CPU usage of each class, every object, every thread, or every function, all of this is a lovely graphic interface! Static reports can also be generated to show you the call relationships of various threads, classes, objects, running stacks, and the resources and time occupied by each specific unit. The functions are very super, and there are a lot of things you haven't understood yet. The feeling is that it can tell you more things than you want to know. Chairman Mao taught us that jprofiler is a good stuff.

 

 
 
 
 

 
 

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.