Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting default profile CPU to true in Java VisualVM

Tags:

java

visualvm

I want to use Java VisualVM to also profile the application even when it is starting. By default, it is set as false.

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

Thanks, Aakash

like image 501
Aakash Avatar asked Feb 05 '26 14:02

Aakash


1 Answers

VisualVM does not support this kind of usage. It is used to monitor already running java applications.

If you need to profile the application startup you should use NetBeans Profiler isntead. NetBeans Profiler and VisualVM share the same profiling engine so you can open and analyze the profiling snapshots in VisualVM later on.

like image 168
JB- Avatar answered Feb 08 '26 03:02

JB-



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!