VisualVM
  1. VisualVM
  2. VISUALVM-201

Cannot profile different JDK than the VisualVM is running

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: code
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      201

      Description

      Run VisualVM Build 080818
      Run Java2Demo on jdk latest.
      Try to profile application.
      It returns Error: "Calibration data missing"
      In detail there is incorrect instructions: "To perform calibration, please
      invoke the "Profile | Advanced Commands | Run Profiler Calibration""

        Activity

        Hide
        jsedlacek added a comment -

        Actually this problem occurs when the profiled application is running a
        different JDK version than the VisualVM (JDK 6 vs. JDK 7 etc.).

        There are two possible workarounds:

        1/ Run VisualVM using the same JDK as the profiled application (use --jdkhome)
        2/ Calibrate the target JDK using the NetBeans profiler

        Show
        jsedlacek added a comment - Actually this problem occurs when the profiled application is running a different JDK version than the VisualVM (JDK 6 vs. JDK 7 etc.). There are two possible workarounds: 1/ Run VisualVM using the same JDK as the profiled application (use --jdkhome) 2/ Calibrate the target JDK using the NetBeans profiler
        Hide
        jsedlacek added a comment -

        Calibration is now performed automatically for not calibrated JDKs when starting
        the profiling session.

        Fixed for 1.1.

        /cvs/visualvm/visualvm/profiler/src/com/sun/tools/visualvm/profiler/ApplicationProfilerView.java,v
        <-- ApplicationProfilerView.java
        new revision: 1.20; previous revision: 1.19

        /cvs/visualvm/visualvm/profiler/src/com/sun/tools/visualvm/profiler/Bundle.properties,v
        <-- Bundle.properties
        new revision: 1.9; previous revision: 1.8

        /cvs/visualvm/visualvm/profiler/src/com/sun/tools/visualvm/profiler/ProfilerSupport.java,v
        <-- ProfilerSupport.java
        new revision: 1.15; previous revision: 1.14

        Show
        jsedlacek added a comment - Calibration is now performed automatically for not calibrated JDKs when starting the profiling session. Fixed for 1.1. /cvs/visualvm/visualvm/profiler/src/com/sun/tools/visualvm/profiler/ApplicationProfilerView.java,v <-- ApplicationProfilerView.java new revision: 1.20; previous revision: 1.19 /cvs/visualvm/visualvm/profiler/src/com/sun/tools/visualvm/profiler/Bundle.properties,v <-- Bundle.properties new revision: 1.9; previous revision: 1.8 /cvs/visualvm/visualvm/profiler/src/com/sun/tools/visualvm/profiler/ProfilerSupport.java,v <-- ProfilerSupport.java new revision: 1.15; previous revision: 1.14

          People

          • Assignee:
            visualvm-issues
            Reporter:
            mariadavydova
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: