简体   繁体   English

是否可以使用某些应用程序立即启动VisualVM?

[英]Is it possible to start VisualVM immediately with some application?

It is said in documentation, that I should manually find my application in VisualVM window and "Open" it: 在文档中说,我应该在VisualVM窗口中手动找到我的应用程序并“打开”它:

在此处输入图片说明

Can I avoid this step? 我可以避免此步骤吗?

For example, to use ScenicView I can run my application with 例如,要使用ScenicView,我可以使用

-javaagent:ScenicView.jar

and it will start Scenic View automatically. 它将自动启动Scenic View。

Can I do the same with VisualVM? 我可以对VisualVM做同样的事情吗?

An option would be the Eclipse Visual VM Launcher , when you are starting you application from within the IDE: 从IDE内部启动应用程序时,可以选择Eclipse Visual VM Launcher

https://visualvm.java.net/eclipse-launcher.html https://visualvm.java.net/eclipse-launcher.html

Another option is to use the "Visual VM Startup Profiler" as explained here: https://visualvm.github.io/startupprofiler.html 另一个选择是使用“ Visual VM启动分析器”,如此处所述: https : //visualvm.github.io/startupprofiler.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM