I have a profile I've created with Java Mission Control that has allocation profiling enabled. When I used it from the JMC UI to record, everything works fine and I get the results.
However, after exporting the settings and trying to record with JFR on command line, I don't get the allocations recorded, even though I get other profiling information.
I run the recording with the following settings:
JAVA_OPTS="$JAVA_OPTS -XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,settings='<path_to_settings>/settings.jfc',dumponexit=true,dumponexitpath=<output>" java -jar stuff
When loading the recording in JMC and checking the memory part, I see message Event type 'Allocation in new TLAB' is not enabled in this recording
.
The settings file is here: https://gist.github.com/jmiettinen/1976f9bbe156ecb5e232 and it has the relevant settings java/object_alloc_in_new_TLAB
and java/object_alloc_outside_TLAB
enabled.
Am I missing something here? I am running 1.8.0_66
and would want to have a continuous recording from the start of the application until it is stopped.