1 Reply Latest reply: May 7, 2014 3:38 AM by Klara Ward, Java Mission Control Dev-Oracle RSS

    Flight Recorder does not provide Method Profiling Samples on CentOS 5

    Evgeniy Sinev

      Flight recorder from jdk 1.8.0_05 does not collect information about methods then running under CentOS 5.

      But jdk1.7.0_55 provides "Method Profiling Samples" events on the same machine.

       

      Steps to reproduce:

      1. Download test class - https://gist.github.com/evsinev/0b136693ef7549ddc9b5

      2. compile it

      3. Run it:

      NOW=$(date +"%H-%M-%S")

       

      export JAVA_OPTS="$JAVA_OPTS -XX:+UnlockCommercialFeatures -XX:+FlightRecorder"

      export JAVA_OPTS="$JAVA_OPTS -XX:StartFlightRecording=duration=120s,filename=data/profile-startup-${NOW}.jfr,name=Startup,settings=profile"

      export JAVA_OPTS="$JAVA_OPTS -XX:FlightRecorderOptions=samplethreads=true,stackdepth=64"

       

      /opt/jdk1.8.0_05/bin/java $JAVA_OPTS -cp . Test


      Running with jdk 1.8.0_05 does not provide "Method Profiling Samples"

      Running with jdk 1.7.0_55 provides "Method Profiling Samples"


      Environment:

      CentOS release 5.9 (Final)

      uname:Linux 2.6.18-348.1.1.el5 #1 SMP Tue Jan 22 16:19:19 EST 2013 x86_64

      libc:glibc 2.5 NPTL 2.5