Java Flight Recorder : How to set stack depth at runtime?

634 views Asked by At

I cannot find a way to set JFR stack depth at runtime. I'm using OpenJDK 11.

jcmd <pid> JFR.configure stackdepth=128 seems to have no effect.

After executing the command I correctly see this message :

D:\>jcmd 8848 JFR.configure stackdepth=128
8848:
Stack depth: 128

But following recordings stackdepth desperately stays at 64.

I tried executing the command after and before the recordings are started through JFR.start. Neither works...

1

There are 1 answers

5
Kire Haglin On

The stack depth can't be changed after a recording has been started.