4 Replies Latest reply: Jan 13, 2010 7:28 PM by 843798 RSS

    visualVM Profiler error during calibration / startup

    843798
      I'm running visualVM 1.2.1 against jdk1.6.0_06, on Windows Vista Ultimate, SP2.
      The Profiler does not appear to be working.

      After startup / calibration, if I go to Help>About, and press on the Logfile button, I see these errors:

      *** Profiler warning (Thu Dec 17 10:03:07 PST 2009): timed out while trying to connect to the target JVM.
      *** Profiler error (Thu Dec 17 10:03:07 PST 2009): connection with server not open

      I've read old postings about the NetBeans Profiler requiring certain ports, so I turned off the Windows Firewall,
      and restarted visualVM. But the same error occurs.

      What is going on? How can I get the visualVM Profiler to work?

      Thanks.
        • 1. Re: VisualVM Profiler error during calibration / startup
          843798
          Hi,

          Can you, please, send the entire VisualVM log file to feedback at visualvm.dev.java.net ? What application are you trying to profile? Does profiling of JDK demo applications (like Java2Demo) work?
          • 2. Re: VisualVM Profiler error during calibration / startup
            843798
            Answers:
            1. Can you, please, send the entire VisualVM log file to feedback at visualvm.dev.java.net ?
            See log below. (I've emailed the full transcript to feedback at visualvm.dev.java.net.)
            2. What application are you trying to profile?
            I am trying to profile a standalone Java application (ie, launched via the static main() method).
            3. Does profiling of JDK demo applications (like Java2Demo) work?
            Yes. However, only the "Overview", "Monitor", and "Threads" tabs appear. There is no profiling tab.

            Thanks.

            -------------------------------------------------------------------------------
            Log Session: Monday, January 4, 2010 11:14:58 AM PST
            System Info:
            Product Version = VisualVM 1.2.1
            Operating System = Windows Vista version 6.0 running on x86
            Java; VM; Vendor = 1.6.0_06; Java HotSpot(TM) Server VM 10.0-b22; Sun Microsystems Inc.
            Runtime = Java(TM) SE Runtime Environment 1.6.0_06-b02
            Java Home = C:\Progra~2\Java\jdk1.6.0_06\jre
            System Locale; Encoding = en_US (visualvm); Cp1252
            Home Directory = C:\Users\cread
            Current Directory = C:\Users\cread
            User Directory = C:\Users\cread
            Installation = C:\Users\cread\workspace\visualvm_121\visualvm
            C:\Users\cread\workspace\visualvm_121\profiler3
            C:\Users\cread\workspace\visualvm_121\platform10
            Boot & Ext. Classpath = C:\Progra~2\Java\jdk1.6.0_06\jre\lib\resources.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\rt.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\sunrsasign.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\jsse.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\jce.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\charsets.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\classes;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\ext\dnsns.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\ext\localedata.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\ext\sunjce_provider.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\ext\sunmscapi.jar;C:\Progra~2\Java\jdk1.6.0_06\jre\lib\ext\sunpkcs11.jar
            Application Classpath = C:\Users\cread\workspace\visualvm_121\platform10\lib\boot.jar;C:\Users\cread\workspace\visualvm_121\platform10\lib\org-openide-modules.jar;C:\Users\cread\workspace\visualvm_121\platform10\lib\org-openide-util.jar;C:\Progra~2\Java\jdk1.6.0_06\lib\dt.jar;C:\Progra~2\Java\jdk1.6.0_06\lib\tools.jar
            Startup Classpath = C:\Users\cread\workspace\visualvm_121\platform10\core\core.jar;C:\Users\cread\workspace\visualvm_121\platform10\core\org-openide-filesystems.jar;C:\Users\cread\workspace\visualvm_121\visualvm\core\com-sun-tools-visualvm-modules-startup.jar;C:\Users\cread\workspace\visualvm_121\visualvm\core\locale\core_visualvm.jar
            -------------------------------------------------------------------------------
            *** Profiler message (Mon Jan 04 11:15:48 PST 2010): Starting target application...
            C:\Progra~2\Java\jdk1.6.0_06\bin\java.exe -agentpath:C:/Users/cread/workspace/visualvm_121/profiler3/lib/deployed/jdk16/windows/profilerinterface.dll -Xbootclasspath/a:C:\Users\cread\workspace\visualvm_121\profiler3\lib\jfluid-server.jar;C:\Users\cread\workspace\visualvm_121\profiler3\lib\jfluid-server-15.jar org.netbeans.lib.profiler.server.ProfilerServer C:/Users/cread/workspace/visualvm_121/profiler3/lib/deployed/jdk16/windows 5141 10 ____Profiler+Calibration+Run____
            IDEAppStatusHandler - errorAndWaitForConfirm: Data transfer error during instrumentation calibration
            IDEAppStatusHandler - errorAndWaitForConfirm: Data transfer error during instrumentation calibration
            IDEAppStatusHandler - errorAndWaitForConfirm: Saved calibration data file does not exist
            INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
            org.openide.util [7.22.1.1 1 091020]
            org.openide.modules [7.10.1 091020]
            org.openide.filesystems [7.21.1.1.1 1 091020]
            org.netbeans.bootstrap/1 [2.18.1 091020]
            org.netbeans.core.startup/1 [1.15.1.1 091020]
            org.openide.awt [7.8.1.1 091020]
            org.netbeans.api.progress/1 [1.13.1.1 1 091020]
            org.netbeans.modules.autoupdate.services [1.8.2 091020]
            org.netbeans.lib.profiler/1 [1.5.2 091020]
            org.jdesktop.layout/1 [1.7.1.103 103 091020]
            org.openide.dialogs [7.10.1 091020]
            org.openide.nodes [7.9.2.1 091020]
            org.openide.windows [6.26.1 091020]
            org.netbeans.modules.editor.mimelookup/1 [1.11.1 091020]
            org.openide.text [6.22.1 091020]
            org.netbeans.swing.outline [1.4.1 091020]
            org.openide.explorer [6.18.2.1 1 091020]
            org.openide.actions [6.9.2.1 091020]
            org.netbeans.lib.profiler.common/1 [1.5.1 091020]
            org.netbeans.spi.quicksearch [1.1.1 091020]
            org.netbeans.modules.queries/1 [1.14.1 091020]
            org.openide.loaders [7.5.2 091020]
            org.openide.io [1.16.1 091020]
            org.netbeans.swing.plaf [1.9.1 091020]
            org.netbeans.core/2 [3.11.1.1 091020]
            org.netbeans.modules.options.api/1 [1.12.2 091020]
            org.openide.execution [1.13.1 091020]
            org.netbeans.lib.profiler.charts/1 [1.1.1 091020]
            org.netbeans.lib.profiler.ui/1 [1.4.1.1 091020]
            org.netbeans.modules.profiler/1 [1.11.2 091020]
            org.netbeans.modules.sendopts/2 [2.4.1 091020]
            com.sun.tools.visualvm.core/0 [1.3 091109]
            com.sun.tools.visualvm.host/0 [1.0 091109]
            com.sun.tools.visualvm.application/0 [1.2 091109]
            com.sun.tools.visualvm.tools/0 [1.1 091109]
            com.sun.tools.visualvm.attach/0 [1.1 091109]
            com.sun.tools.visualvm.jmx/0 [1.2 091109]
            com.sun.tools.visualvm.jvmstat/0 [1.0 091109]
            org.netbeans.modules.progress.ui [1.3.1.1 091020]
            com.sun.tools.visualvm.profiler/0 [1.1 091109]
            org.netbeans.core.io.ui/1 [1.1.1.1 1 091020]
            org.netbeans.core.ui/1 [1.14.1.1 091020]
            org.netbeans.modules.javahelp/1 [2.12.1 091020]
            org.netbeans.modules.settings/1 [1.18.1.1 091020]
            org.netbeans.swing.tabcontrol [1.15.2 091020]
            org.netbeans.core.windows/2 [2.14.2.1 091020]
            com.sun.tools.visualvm.modules.appui [1.0 091109]
            com.sun.tools.visualvm.coredump/0 [1.0 091109]
            com.sun.tools.visualvm.heapdump/0 [1.0 091109]
            org.netbeans.libs.jna/1 [1.2.1 091020]
            com.sun.tools.visualvm.threaddump/0 [1.0 091109]
            com.sun.tools.visualvm.jvm/0 [1.1 091109]
            org.netbeans.modules.editor.mimelookup.impl/1 [1.4.1 091020]
            com.sun.tools.visualvm.modules.startup [1.0 091109]
            com.sun.tools.visualvm.charts/0 [1.0.1 091109]
            com.sun.tools.visualvm.sa/0 [1.0 091109]
            org.netbeans.modules.masterfs/2 [2.16.1 091020]
            com.sun.tools.visualvm.application.views/0 [1.0 091109]
            org.netbeans.modules.autoupdate.ui [1.7.2 091020]
            org.netbeans.core.nativeaccess/1 [1.2.1 091020]
            com.sun.tools.visualvm.host.views/0 [1.0 091109]
            org.netbeans.modules.print [7.0.1 091020]
            *** Profiler warning (Mon Jan 04 11:28:29 PST 2010): timed out while trying to connect to the target JVM.
            *** Profiler error (Mon Jan 04 11:28:29 PST 2010): connection with server not open
            WARNING [org.openide.filesystems.Ordering]: Not all children in Toolbars/ marked with the position attribute: [Standard.xml], but some are: [Snapshot, DataSource, Memory]
            • 3. Re: VisualVM Profiler error during calibration / startup
              843798
              I have not managed to profile my application from visualvm, but I have made progress:

              * I uninstalled visualvm 1.2.1, downloaded and installed visualvm 1.2.2, and then launched visualvm (under Windows VISTA).
              The Profiler tab now appears! However, if I press on the Profiler tab and then click the "CPU" button, the visualvm application
              tries to connect to the remote application, but never succeeds in the connection; itjust sits there trying to connect.

              Question: Is there some kind of debug setup / arguments I need to launch the target application with?

              * I tried launching the version ov visualvm that came with the 64-bit version of jdk1.6.0_07; it launched fine, but could
              not understand JVM applications running under the x86 / 32-bit version of the JDK.
              • 4. Re: VisualVM Profiler error during calibration / startup
                843798
                I think there is some weird bit-ness problem.

                I finally did get visualvm and Profiler to work. However, I used a pure 32-bit
                environment, running Windows VISTA. In this case, everything worked.

                In my other environment -- a 64-bit Windows VISTA coupled with a 32-bit JDK-compiled
                application and a stand-alone instance of visualVM downloaded separately -- this was
                not workable, even when I used --jdkhome as an argument to visualVM to indicate
                which instance of the JDK I wanted to use.