[英]How to attach VisualVM and start profiling immediatedly with application start?
I can attach VisualVM to a running application, then start profiling. 我可以将VisualVM连接到正在运行的应用程序,然后开始分析。
All this time while I am performing manual operations, the target application is running and statistics is loosing. 在我执行手动操作的同时,目标应用程序正在运行并且统计信息正在丢失。
How to begin collecting statistic exactly at the same moment application starts? 如何在应用程序启动的同一时刻准确开始收集统计信息?
UPDATE UPDATE
With Profile Startup
what is the way to set which class to run? 使用
Profile Startup
,设置运行哪个类的方法是什么?
Very small cell for application setup says 应用程序设置的非常小的单元格
-agentpath:D:/Apps/visualvm_138/profiler/lib/deployed/jdk16/windows-amd64/profilerinterface.dll=D:\Apps\visualvm_138\profiler\lib,5140
ie contains no clues to application location. 即不包含应用程序位置的线索。
You can try the startup profiler plugin: 您可以尝试启动探查器插件:
https://visualvm.java.net/startupprofiler.html https://visualvm.java.net/startupprofiler.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.