Remote profiling via command line

Questions about YourKit Java Profiler
Locked
tuk
Posts: 1
Joined: Sat May 08, 2021 5:58 am

Remote profiling via command line

Post by tuk »

I am trying to do remote profiling (since I don't have access to UI on the remote machine) via command line as mentioned in the below link

https://www.yourkit.com/docs/java/help/ ... e_tool.jsp

I have started the application with profiler agent and I have done the CPU sampling.

Code: Select all

root@platform1:/tmp/dmanna/YourKit-JavaProfiler# java -jar lib/yjp-controller-api-redist.jar localhost 10002 start-sampling
CPU sampling started
root@platform1:/tmp/dmanna/YourKit-JavaProfiler# java -jar lib/yjp-controller-api-redist.jar localhost 10002 stop-cpu-profiling
CPU profiling stopped
Can you let me know
  • Where the sampling data is saved and how can I analyze it next?
    Is it possible to transfer the sampling date to my local so that I can analyze it via yourkit UI?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Remote profiling via command line

Post by Anton Katilin »

Where the sampling data is saved and how can I analyze it next?
Please capture a snapshot after (or right before) stopping CPU profiling by using the command "capture-performance-snapshot".
Is it possible to transfer the sampling date to my local so that I can analyze it via yourkit UI?
Yes. Please transfer the snapshot file to your local machine for analysis. Snapshot files are created in <user home>/Snapshots by default, see https://www.yourkit.com/docs/java/help/snapshot_dir.jsp
Locked