How to run Jprofiler from Windows machine to Remote Linux JVM
Asked Answered
M

3

9

Kindly let me know how to run Jprofiler from Windows machine to Remote Linux JVM.

Thanks a lot in advance.

Mite answered 4/4, 2012 at 15:51 Comment(0)
B
8
  1. Go to the download page, download the .tar.gz distribution and extract it on the remote Linux machine.

  2. On the remote Linux machine, start the command line utility bin/jpintegrate, then follow the steps in the command line wizard.

  3. Transfer the generated JProfiler config file to your local Windows machine.

  4. On your local Windows machine, start the JProfiler GUI and import the config file with Session->Import Session Settings

  5. Start the profiled JVM on the remote Linux machine and the imported session in the JProfiler GUI on the Windows machine.


Update 2024-03-14

JProfiler now has zero-configuration attach functionality over SSH. On the "Quick Attach" pane of the start center, select the "On another computer" radio button, configure the SSH connection, click "Start" and select the remote JVM for profiling.

Banded answered 15/4, 2012 at 14:15 Comment(0)
C
6

For remote connect to jprofiler on Windows with remote machine JVM(Centos 7)

  1. Download (.tar.gz) the Linux version jprofiler on centos. Both the Windows and remote machine jprofiling agent are of the same version. If bots are not same version then it will not create with the jprofiler on Windows.

  2. Untar the .tar.gz file.

    tar xvzf folder_name

  3. Go to /bin path.

    cd folder_name/bin

  4. Run following command to enable profiling agent to connect JVMTI data on a specific port.

    ./jpenable

  5. On running the above command it gives all list of process running on the JVM. Select the process which you required for profiling. (eg. lets i have to stream 6th process out of 8 process. Then enter 6).

  6. Select tthe GUI mode or offline mode. Enter 1. (This option does not exist on old version).

  7. Enter the port on which you want to listen. (Eg 33668)

  8. Now your VM is ready for connection from Windows jprofiler.


Connection setting on window jprofiler

  1. Click on start center.

  2. Select a new Session.

  3. Click on attach and select “Attach to remote machine” radio button.

  4. Set ssh tunnel from the drop down.

  5. Slick edit button and configure the direct ssh tunneling connection.

  6. Click next and provide the VM credential.

  7. Manually configure the profiling port. It should be defined at the time of configuring profiling agent.

16.Click finish.

17.Select ‘ok’ button and enter the key you received through mail.

  1. If the credential is correct, following prompt will show up. Click “configure” button. Select “CPU data”, “Call tracer” and “allocation stack” check box. Click ok.

  2. Click ‘ok’ button. Congratulation !! Now your remote VM is connected with your Windows jprofiler.

Cholecyst answered 21/9, 2019 at 14:2 Comment(0)
P
2

for remote connect to jprofiler you can following this steps:

  1. download linux version of jprofiler.
  2. install it on linux system.
  3. go to folder bin and run ./jpenable. follow the wizard for choose the process id of jvm you want to profiled. after that it give you a port number.
  4. install the jprofiler in local machine like windows.
  5. in start center menu choose quick attach and chose the another computer. enter the host address and port number in step "3" then you can remotely connect to jprofiler
Powder answered 7/3, 2017 at 6:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.