Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Profiling Jprofiler

Tags:

jprofiler

Hi i am very new to Jprofiler & Linux. I am trying to Monitor my Apache Tomcat server installed on a linux machine from Jprofiler remote profiling which is installed on windows machine. Kindly help me in the procedure in detail. I tried all the Help i could get from google but still stuck..any help will is appreciated. Thanks in advance.

like image 684
Ashish Cooper Avatar asked Aug 31 '12 12:08

Ashish Cooper


Video Answer


1 Answers

In any case, you should extract the JProfiler tar.gz file for Linux on the remote machine. No further configuration is required on the remote side. On the local side you need a full installation of JProfiler.

There are two ways to get remote profiling to work:

A. Attach to the running Tomcat process

Execute the command line utility bin/jpenable in the JProfiler distribution on the remote machine and select the Tomcat process. The JVM will then be ready for profiling. If the profiled JVM is not listed, execute jpenable as the same user that runs the Tomcat JVM. If that does help, use alternative B.

On the local machine, create a session of type "Attach to profiled JVM (local or remote)", specify the host name of the remote machine and the profiling port that was set with jpenable.

When you start session, the JProfiler GUI will connect to the remote machine and you will see profiling data.

B. Use the integration wizard

Execute the command line uutility bin/jpintegrate in the JProfiler distribution on the remote machine and select your application server and follow the subsequent steps.

Then, proceed as in alternative A. This option is actually preferable to alternative A and unless you have to profile an already running JVM, you should take this route.

like image 68
Ingo Kegel Avatar answered Oct 07 '22 02:10

Ingo Kegel