For Linux installation, use jprofiler6 to analyze the server application status

Source: Internet
Author: User
Tags jprofiler

ForLinuxFor beginners of the operating system, install and useJprofiler6Analyzing the server application status is not a simple task. Don't worry. As long as you read the next article, installing jprofiler6 won't be a difficult task.

1. When an application encounters a problem, you can use jprofiler to analyze the cpu, memory, thread, and other States to help troubleshoot the problem;

2. Here I use jprofiler6.2.1 for analysis

I downloaded the latest jprofilerfrom the official website: http://www.ej-policies.com/products/jprofiler/overview.html. There are two types of software:

(1) install jprofiler_windows_6_2_1.exe in windows

(2) install jprofiler_linux_6_2_1.tar.gz in linux

Because this is paid, the sn serial number is required. You can obtain the serial number of version 6.0. The version numbers of files installed in windows and linux must be the same; otherwise, the files cannot be connected;

3. install linux first

(1) install tomcat under/usr/local/tomcat6;

(2) decompress jprofiler_linux_6_2_1.tar.gz to jprofiler6 and move it to the/usr/local/jprofiler6 directory;

(3) copy the startup. sh script in the tomcat6/bin directory to a local windows directory;

4. Install windows: Run jprofiler_windows_6_2_1.exe and install jprofiler_windows_6_2_1.exe directly.

(1) start after installation. After installation, you will be prompted to enter the lisence key and your key;

(2) After the startup, click the new window menu under the session menu, A quickstart will pop up, and select "An application server, locally or remotely ";

(3) Select next. The application server selection page is displayed. tomcat6 is selected here;

(4) Select next, select "on remote computer", and select information about the operating system. Here I select linux x86 and amd64;

(5) Select next. Here we will select jdk-related information. I will select "sun", "1.6.0", and "hotspot ";

(6) Select next. Here I select the second "startup immediately. connect later with jprofiler GUI ";

(7) Select next and enter the ip address of the remote server to be connected. Here I enter 192.168.119.168;

(8) Select next. here you need to enter the installation location of jprofiler on linux. Enter/usr/local/jprofiler6 here;

(9) Select the next step. here we need to set the startup we just obtained from the server. select the sh script, click Next, and create a port. The default value is 8849. Do not use the ports 80 or 8080.) A startup_jprofiler.sh script is generated, this script is better than our original startup. sh has the following:

# The following lines have been added by the # application server integration wizard of JProfiler CATALINA_OPTS="-agentpath:/usr/local/jprofiler6/bin/linux-x86/libjprofilerti.so=port=8849,nowait $CATALINA_OPTS" export CATALINA_OPTS # end of modifications

(10) Select next. A Configuration confirmation page is displayed, and a configuration link is generated. We can find this link through the jprofiler start center icon.

5. Send the generated startup_jprofiler.sh script to the directory of/usr/local/tomcat6/bin, and grant the execution permission chmod 777 startup_jprofiler.sh.

6. When we want jprofiler to monitor, start tomcat directly with startup_jprofiler.sh.

7. Then, we can open the link we Just configured locally to directly link to port 8849 of linux for server status monitoring.

Note that the server where the local windows monitoring tool is located must be able to connect to the port of the linux server. You can use telnet 192.168.119.168 8849 to check whether the tool can be used for telnet. Of course, the specific ip address and related configuration environment in the above section still need to be modified flexibly according to the actual situation.
 

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.