Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Remote profiling via command line

Moderators: Vladimir Kondratyev, Anton Katilin

Remote profiling via command line

Postby tuk » Sat May 08, 2021 6:08 am

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
[email protected]:/tmp/dmanna/YourKit-JavaProfiler# java -jar lib/yjp-controller-api-redist.jar localhost 10002 start-sampling
CPU sampling started
[email protected]:/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?
tuk
 
Posts: 1
Joined: Sat May 08, 2021 5:58 am

Re: Remote profiling via command line

Postby Anton Katilin » Mon May 10, 2021 7:53 am

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
Anton Katilin
 
Posts: 6070
Joined: Wed Aug 11, 2004 8:37 am


Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

cron

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.