
This script is supposed to discover the process id and attach the remote profiler agent to the running java instance.

bin/attach.sh $(ps aux | grep ‘target/’ | grep -v grep | cut -d’ ‘ -f2)

In a separate terminal window, attach the profiler to the Java process inside the YourKit directory at the cluster by running: The Java application has to start first, then we can start profiling it.Ģ.
#Yourkit java profiler license key archive
Remember to choose id_rsa_yourkit in authentication settings in both Main and SSH Tunnel tabs.įinally, at the cluster, download the YourKit archive and unpack it in your home directory.ġ. ssh directory at the local machine (assuming id_rsa is the name of the private key you use), run:Īs a result, id_rsa_yourkit is generated based on id_rsa and should work now. To solve this problem, you can convert your private key using the following script. YourKit only supports one kind of RSA key format, and in some cases fails to connect to the cluster. (e) Specify the username as in (b), and change authentication settings as in (c). (d) Add an intermediate node with port 22. (c) Click on authentication settings and choose the private SSH key that you use to connect to the cluster. Use your Inria username as an SSH user, and put the port 22. (b) Choose an advanced application discovery method. (a) Fill in the host address as (replace xx accordingly).

In YourKit client add a new connection as follows. You need to configure the YourKit Profiler client at the local machine. PLEASE READ THESE INSTRUCTIONS ENTIRELY BEFORE APPLYING THEM! Remote Java profiling with YourKit guide by Paweł Guzewicz
