How to profile in jdk9?
weijun.wang at oracle.com
Mon Mar 20 04:46:09 UTC 2017
Thanks for the advices. One more question on JFR:
Now I can launch my program with "-XX:+UnlockCommercialFeatures
-XX:StartFlightRecording=filename=/tmp/myrecording.jfr", but there are
only a few ExecutionSample objects recorded.
How do I increase the sampling rate?
On 03/17/2017 06:43 PM, Weijun Wang wrote:
> Sorry if the question reveals my ignorance.
> I need to profile with the latest jdk9 but everything I tried does not
> - hprof gone
> - try jvisualvm 1.3.9 but does not work with jdk9+161 on my Ubuntu. Even
> if I added 2 --add-opens still got a blank window because "cannot load
> even default layout".
> - netbeans 20170316 always shows "java.lang.IllegalArgumentException:
> Root cannot be null" whenever I want to run/debug/profile a program.
> What shall I do?
More information about the core-libs-dev