Do you configure profiling with the `-Xrunjdwp 'command line option? If so, this parameter has a suspend parameter for this purpose:
True, if the target VM must be suspended immediately before loading the main class; false otherwise.
An example from my own configuration:
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
I use this with YourKit profiler, but I think the principle is the same.
skaffman Dec 14 2018-10-12T00: 00Z
source share