Jprofiler-----Windows-connected Linux server environment

Source: Internet
Author: User
Tags jprofiler

I according to the actual construction of the writing, the first time to write a blog, Bad place also please forgive me.

Thank you predecessors of the blog, from a lot of learning.

Installation Environment

Windows Host:Jprofiler_windows-x64_9_2.exe

Remote server: jprofiler_windows-x64_9_2.sh

(The version must be consistent, otherwise there will be a case of inability to connect)

Windows hosts are downloaded directly from the website,

Linux server download jprofiler command:

wget http://download-keycdn.ej-technologies.com/jprofiler/jprofiler_linux_9_2.sh

configuration of server jprofiler :

1. Once the jprofiler_windows-x64_9_2.sh download is complete, you can install it directly using the command

SH jprofiler_windows-x64_9_2.sh

Follow the instructions given to install (we recommend not to install the file in the same directory sh )

Xftp under File display

2. Add the client to the CONFIG. C:\Users\Administrator\.jprofiler9 in the directory

Copy to/root/jprofiler/config, you'll need to remember an ID number before copying it: Find the JDK or jre,<session id= "107" in CONFIG. ......> for the server side

Remember the ID at this time

3. Configure Environment variables

On the remote host, enter:

echo Export ld_library_path= $LD _library_path:/root/jprofiler/bin/linux-x64 >>/etc/profile

Source/etc/profile

Configure Jprofiler in the tomcat boot file (the tomcat of the Java Project You need to monitor in the startup file) , See ( The selected part is what's new ) vi/usr/tomcat1/bin/catalina.sh Add the following information:  

java_opts= "$JAVA _opts-agentlib:jprofilerti=port=8849,nowait,id=107,config=/root/jprofiler/config/config.xml- Xbootclasspath/a:/root/jprofiler/bin/agent.jar "

8849 This port is the default port that is used by the Jprofiler monitor, because the connection is a remote host, you need to open the port 8849 in the host , in order to let the local Jprofiler link to a remote linux server

configuration of host Jprofiler :

1. Select session"Integration Wizards"new Remote Integration

2. Select Remote Monitoring. Selection of remote monitoring and monitoring system of the machine

3. Select the type of virtual machine

4. Select the startup mode

5. fill in the address of the remote host you need to connect to

6. Fill in the Jprofiler installation path under your remote host

the default port number for 7.jprofiler, as mentioned above. The default value is not changed here

Tip: The first time you use the Jprofiler connection, one more step in the above step, you need to select a tomcat boot file at this time select a native Tomcat startup.bat the boot file. (It is recommended to put this file and jprofile in the same folder)

Interface after successful connection

Jprofiler-----Windows-connected Linux server environment

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.