Installation of the JProfiler6.2.4 of Jprofiler learning

Source: Internet
Author: User
Tags file copy jprofiler
1. Introduction to the Environment:
Linux Server: CentOS release 5.9 (x86)
Web container: Tomcat6
Jdk:jdk1.6.0_17
Client: Windows XP (x86)
Jdk:jdk1.6.0_20


2. Installation package:

Linux Server: jprofiler_linux_6_2_4.rpm

Download Address: http://download.csdn.net/detail/rachel_luo/5217224

Client: Jprofiler_windows_6_2_4.exe

Download Address: http://download.csdn.net/detail/rachel_luo/5217273 Note: Download package contains the registration code and the use of instructions documents (Chinese)

3. Client Jprofiler Installation:
Double-click: Jprofiler_windows_6_2_4.exe, install according to the Setup wizard.

4. Server-side Jprofiler installation:
Upload the jprofiler_linux_6_2_4.rpm to the server (any path that I have installed using root user),
Execute command: RPM-UVH jprofiler_linux_6_2_4.rpm
Install by default to:/opt/jprofiler6 directory.

To configure related environment variables:
Vi/etc/profile
Add the following:
Export ld_library_path=/opt/jprofiler6/bin/linux-x86;
Save the exit file, exit the terminal, and make it effective.

5. Use Jprofiler to monitor the remote service side:
(1) Start the client's Jprofiler;
(2) After starting, click the New Window menu under the Session menu, will pop up a QuickStart, select "An application server,locally or remotely";
(3) Click Next, pop-up Application Server selection interface, I choose TOMCAT6 here;
(4) Click Next, select "On remote computer", at the same time select the operating system related information, here I choose Linux x86,amd64;
(5) Click Next, here will be our JDK related information selection, I choose "Sun", "1.6.0" (corresponding to the server-side JDK version), "Hotspot";
(6) Click Next, here I choose the second "startup Immediately,connect later with Jprofiler GUI."
(7) Click Next, fill in the remote server IP to connect, here I fill in 172.16.3.23 (server-side IP);
(8) Click Next, where you need to fill in the Jprofiler on Linux installation path:/OPT/JPROFILER6;
(9) Click Next, will let you select a to monitor the program's startup script (client native path), here selected d:\startup.sh;
Note: Download the server-side tomcat/bin/startup.sh files to the local D disk in advance.
(10) Click Next, specify a monitoring port 8739 (Note: Check whether the server-side corresponding port is open or occupied), the Jprofiler default port is 8849 (don't use 80 or 8080 of these well-known ports);
(11) After the click completes, will produce a startup_jprofiler.sh script locally (with startup.sh same directory), this script is more than the original startup.sh the following passage:
# The following lines have been added by the
# Application Server Integration Wizard of Jprofiler
catalina_opts= "-agentpath:/opt/jprofiler6/bin/linux-x86/libjprofilerti.so=port=8739,nowait $CATALINA _opts"
Export catalina_opts
(12) Transfer the startup_jprofiler.sh script just generated to the Tomcat6/bin directory and give execution permissions chmod 777 startup_jprofiler.sh
(13) Upload the native C:\Documents and settings\{computer name}\.jprofiler6\config.xml file copy to the path completed in the 8th step/opt/jprofiler6 path.

6. When we want to use Jprofiler Monitoring Server application, the implementation of startup_jprofiler.sh start TOMCAT6 service;

7. Start client Jprofiler, click Jprofiler Menu Session>start center>open Session, select available session configurations, The session you just configured is OK.

Note: Jprofiler monitoring is to consume system resources, can appropriately adjust the hypervisor's virtual machine parameters, eg:
Modify Tomcat Boot file catalina.sh, add
java_opts= "$JAVA _opts-server-xms2048m-xmx2048m-xx:permsize=256m-xx:maxnewsize=512m-xx:maxpermsize= 512m-djava.awt.headless=true "
java_opts= "$JAVA _opts-agentlib:jprofilerti=port=8739-xbootclasspath/a:/opt/jprofiler6/bin/agent.jar"






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.