简体   繁体   中英

How to attach VisualVM and start profiling immediatedly with application start?

I can attach VisualVM to a running application, then start profiling.

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

With Profile Startup what is the way to set which class to run?

在此输入图像描述

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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