[英]How to do remote profiling via YourKit command line?
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我正在尝试通过以下链接中提到的命令行进行远程分析(因为我无法访问远程机器上的 UI)
https://www.yourkit.com/docs/java/help/command_line_tool.jsphttps://www.yourkit.com/docs/java/help/command_line_tool.jsp
I have started the application with profiler agent and I have done a CPU sampling.我已经使用分析器代理启动了应用程序,并且我已经完成了 CPU 采样。
root@platform1:/tmp/tuk/YourKit-JavaProfiler# java -jar lib/yjp-controller-api-redist.jar localhost 10002 start-sampling
CPU sampling started
root@platform1:/tmp/tuk/YourKit-JavaProfiler# java -jar lib/yjp-controller-api-redist.jar localhost 10002 stop-cpu-profiling
CPU profiling stopped
Can some let me know有的可以告诉我
This has been answered yourkit forum .已回答yourkit 论坛。 Posting the answer below
下面贴出答案
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".
请使用命令“capture-performance-snapshot”在停止 CPU 分析之后(或之前)捕获快照。
Is it possible to transfer the sampling date to my local so that I can analyze it via yourkit UI?
是否可以将采样日期转移到我的本地,以便我可以通过 yourkit UI 进行分析?
Yes.
是的。 Please transfer the snapshot file to your local machine for analysis.
请将快照文件传输到本地机器进行分析。 Snapshot files are created in /Snapshots by default, see https://www.yourkit.com/docs/java/help/snapshot_dir.jsp
快照文件默认在 /Snapshots 中创建,参见https://www.yourkit.com/docs/java/help/snapshot_dir.jsp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.