Setting the default CPU to true in Java VisualVM

I want to use Java VisualVM to profile an application even when it starts. By default, it is set to false.

Is there a way to change the profiling to be enabled by default?

Thanks Aakash

+3
source share
2 answers

VisualVM does not support this use. It is used to monitor already running Java applications.

If you need to profile application startup, you should use NetBeans Profiler isntead. NetBeans Profiler and VisualVM use the same profiling mechanism to subsequently open and analyze profiling snapshots in VisualVM.

+3
source

VisualVM , , , , , . , Thread.sleep(15000) , 15 , .

0

Source: https://habr.com/ru/post/1708540/


All Articles