how to profile application startup with visualvm

后端 未结 4 1703
無奈伤痛
無奈伤痛 2020-12-04 19:18

As far as i can tell, you can only profile a running application using VisualVM.

Does anyone know of a way to profile the launch and startup of a java application us

4条回答
  •  攒了一身酷
    2020-12-04 19:28

    Use the eclipse launcher, and set a breakpoint at an appropriate place in the main method.

    Then, start in debug mode, enable profiling in visualVM, and then resume using eclipse.

    That won't profile class loading and stuff, but it's good enough for me.

提交回复
热议问题