1 Reply Latest reply: Jun 26, 2013 5:38 AM by 977816 RSS

    VisualVM not starting correctly

    977816

      I have on some Linux servers a weird behaviour of jvisualvm.

       

      Java --> jdk1.6.0_43

       

      Linux + X11-Xming for graphics.

       

      The first time I start the tool, it starts coorectly. Then I close the tool and restart, and from then on I see the logo dialog, and then the tool seems to hang.

       

      I see two processes running

       

      root     31369 29806  0 10:41 pts/2    00:00:00 /bin/bash ./../lib/visualvm//platform/lib/nbexec --jdkhome ./.. --branding visualvm --clusters ./../lib/visualvm//visualvm:./../lib/visualvm//profiler: --userdir /root/.visualvm/7 -J-client -J-Xms24m -J-Xmx256m -J-Dsun.jvmstat.perdata.syncWaitMs=10000 -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.d3d=false

       

      root     31465 31369  0 10:41 pts/2    00:00:08 /opt/jdk6/bin/java -Djdk.home=/opt/jdk6 -classpath /opt/jdk6/lib/visualvm/platform/lib/boot.jar:/opt/jdk6/lib/visualvm/platform/lib/org-openide-modules.jar:/opt/jdk6/lib/visualvm/platform/lib/org-openide-util.jar:/opt/jdk6/lib/visualvm/platform/lib/org-openide-util-lookup.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/boot_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/boot_zh_CN.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-modules_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-modules_zh_CN.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util-lookup_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util_zh_CN.jar:/opt/jdk6/lib/dt.jar:/opt/jdk6/lib/tools.jar -Dnetbeans.dirs=./../lib/visualvm//visualvm:./../lib/visualvm//profiler: -Dnetbeans.home=/opt/jdk6/lib/visualvm/platform -client -Xms24m -Xmx256m -Dsun.jvmstat.perdata.syncWaitMs=10000 -Dsun.java2d.noddraw=true -Dsun.java2d.d3d=false -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/root/.visualvm/7/var/log/heapdump.hprof org.netbeans.Main --userdir /root/.visualvm/7 --branding visualvm

       

      Before starting I checked if the lock file is cleared and this is the case.

       

      The messages.log contains:

       

      -------------------------------------------------------------------------------

      >Log Session: Wednesday, June 26, 2013 11:00:55 AM CEST

      >System Info:

        Product Version         = Java VisualVM

        Operating System        = Linux version 2.6.18-194.26.1.0.1.el5 running on amd64

        Java; VM; Vendor        = 1.6.0_43; Java HotSpot(TM) 64-Bit Server VM 20.14-b01; Sun Microsystems Inc.

        Runtime                 = Java(TM) SE Runtime Environment 1.6.0_43-b01

        Java Home               = /opt/jdk1.6.0_43/jre

        System Locale; Encoding = en_US (visualvm); UTF-8

        Home Directory          = /root

        Current Directory       = /opt/jdk1.6.0_43/bin

        User Directory          = /root/.visualvm/7

        Installation            = /opt/jdk6/lib/visualvm/visualvm

                                  /opt/jdk6/lib/visualvm/profiler

                                  /opt/jdk6/lib/visualvm/platform

        Boot & Ext. Classpath   = /opt/jdk1.6.0_43/jre/lib/resources.jar:/opt/jdk1.6.0_43/jre/lib/rt.jar:/opt/jdk1.6.0_43/jre/lib/sunrsasign.jar:/opt/jdk1.6.0_43/jre/lib/jsse.jar:/opt/jdk1.6.0_43/jre/lib/jce.jar:/opt/jdk1.6.0_43/jre/lib/charsets.jar:/opt/jdk1.6.0_43/jre/lib/modules/jdk.boot.jar:/opt/jdk1.6.0_43/jre/classes:/opt/jdk1.6.0_43/jre/lib/ext/localedata.jar:/opt/jdk1.6.0_43/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.6.0_43/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.6.0_43/jre/lib/ext/dnsns.jar

        Application Classpath   = /opt/jdk6/lib/visualvm/platform/lib/boot.jar:/opt/jdk6/lib/visualvm/platform/lib/org-openide-modules.jar:/opt/jdk6/lib/visualvm/platform/lib/org-openide-util.jar:/opt/jdk6/lib/visualvm/platform/lib/org-openide-util-lookup.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/boot_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/boot_zh_CN.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-modules_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-modules_zh_CN.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util-lookup_ja.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/opt/jdk6/lib/visualvm/platform/lib/locale/org-openide-util_zh_CN.jar:/opt/jdk6/lib/dt.jar:/opt/jdk6/lib/tools.jar

        Startup Classpath       = /opt/jdk6/lib/visualvm/platform/core/org-openide-filesystems.jar:/opt/jdk6/lib/visualvm/platform/core/core.jar:/opt/jdk6/lib/visualvm/platform/core/locale/org-openide-filesystems_ja.jar:/opt/jdk6/lib/visualvm/platform/core/locale/core_ja.jar:/opt/jdk6/lib/visualvm/platform/core/locale/org-openide-filesystems_zh_CN.jar:/opt/jdk6/lib/visualvm/platform/core/locale/core_zh_CN.jar:/opt/jdk6/bin/../lib/visualvm/visualvm/core/com-sun-tools-visualvm-modules-startup.jar:/opt/jdk6/bin/../lib/visualvm/visualvm/core/locale/.svn_zh_CN.jar:/opt/jdk6/bin/../lib/visualvm/visualvm/core/locale/core_visualvm.jar:/opt/jdk6/bin/../lib/visualvm/visualvm/core/locale/com-sun-tools-visualvm-modules-startup_zh_CN.jar:/opt/jdk6/bin/../lib/visualvm/visualvm/core/locale/.svn_ja.jar:/opt/jdk6/bin/../lib/visualvm/visualvm/core/locale/com-sun-tools-visualvm-modules-startup_ja.jar

      -------------------------------------------------------------------------------

      INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:

        org.openide.util.lookup [8.3.1 110131-9c8b3bfb3a1e]

        org.openide.util [8.6.1 110131-9c8b3bfb3a1e]

        org.openide.modules [7.17.2 110131-9c8b3bfb3a1e]

        org.openide.awt [7.23.1 110131-9c8b3bfb3a1e]

        org.netbeans.api.progress/1 [1.20.2 110131-9c8b3bfb3a1e]

        org.openide.dialogs [7.15.1 110131-9c8b3bfb3a1e]

        org.openide.nodes [7.16.1 110131-9c8b3bfb3a1e]

        org.openide.windows [6.33.1 110131-9c8b3bfb3a1e]

        org.openide.filesystems [7.38.2 110131-9c8b3bfb3a1e]

        org.netbeans.modules.editor.mimelookup/1 [1.16.1 110131-9c8b3bfb3a1e]

        org.openide.text [6.30.1 110131-9c8b3bfb3a1e]

        org.netbeans.swing.tabcontrol [1.21.1 110131-9c8b3bfb3a1e]

        org.netbeans.swing.outline [1.9.1 110131-9c8b3bfb3a1e]

        org.openide.explorer [6.28.2 110131-9c8b3bfb3a1e]

        org.openide.actions [6.16.1 110131-9c8b3bfb3a1e]

        org.openide.io [1.23.1 110131-9c8b3bfb3a1e]

        org.netbeans.core.io.ui/1 [1.8.1 110131-9c8b3bfb3a1e]

        org.netbeans.bootstrap/1 [2.33.1 110131-9c8b3bfb3a1e]

        org.netbeans.core.startup/1 [1.25.2 110131-9c8b3bfb3a1e]

        org.netbeans.modules.autoupdate.services [1.20.1 110131-9c8b3bfb3a1e]

        org.netbeans.spi.quicksearch [1.6.1 110131-9c8b3bfb3a1e]

        org.netbeans.modules.queries/1 [1.19.1 110131-9c8b3bfb3a1e]

        org.openide.loaders [7.16.1 110131-9c8b3bfb3a1e]

        org.netbeans.modules.keyring [1.1.2 110131-9c8b3bfb3a1e]

        org.netbeans.swing.plaf [1.16.1 110131-9c8b3bfb3a1e]

        org.netbeans.core/2 [3.20.2 110131-9c8b3bfb3a1e]

        org.netbeans.modules.options.api/1 [1.18.1 110131-9c8b3bfb3a1e]

        org.netbeans.modules.autoupdate.ui [1.16.1 110301-30e4969ec30f]

        org.netbeans.modules.print [7.5.1 110201-9c8b3bfb3a1e]

        org.netbeans.lib.profiler/1 [1.10.2 110225-30e4969ec30f]

        org.netbeans.lib.profiler.charts/1 [1.6.1 110201-f994a39d39de]

        org.netbeans.lib.profiler.ui/1 [1.9.2 110225-30e4969ec30f]

        com.sun.tools.visualvm.uisupport/0 [1.0 110325]

        org.netbeans.lib.profiler.common/1 [1.10.2 110225-30e4969ec30f]

        org.netbeans.api.annotations.common/1 [1.5.1 110131-9c8b3bfb3a1e]

        org.netbeans.modules.profiler.oql/0 [0.5.1 110225-30e4969ec30f]

        org.openide.execution [1.18.1 110131-9c8b3bfb3a1e]

        org.netbeans.modules.profiler/1 [1.17.2 110225-30e4969ec30f]

        org.netbeans.modules.sendopts/2 [2.9.1 110201-9c8b3bfb3a1e]

        com.sun.tools.visualvm.core/0 [1.4 110325]

        com.sun.tools.visualvm.host/0 [1.0 110325]

        com.sun.tools.visualvm.application/0 [1.4 110325]

        com.sun.tools.visualvm.tools/0 [1.2 110325]

        com.sun.tools.visualvm.attach/0 [1.1 110325]

        com.sun.tools.visualvm.profiling/0 [1.0 110325]

        com.sun.tools.visualvm.profiler/0 [1.1 110325]

        org.netbeans.modules.settings/1 [1.26.1 110131-9c8b3bfb3a1e]

        com.sun.tools.visualvm.coredump/0 [1.0 110325]

        com.sun.tools.visualvm.heapdump/0 [1.1 110325]

        com.sun.tools.visualvm.threaddump/0 [1.0 110325]

        com.sun.tools.visualvm.sampler [2.0 110325]

        com.sun.tools.visualvm.charts/0 [1.0 110325]

        com.sun.tools.visualvm.application.views/0 [1.0 110325]

        org.netbeans.modules.progress.ui [1.12.1 110201-9c8b3bfb3a1e]

        org.netbeans.core.windows/2 [2.21.1 110131-9c8b3bfb3a1e]

        org.netbeans.modules.editor.mimelookup.impl/1 [1.9.1 110131-9c8b3bfb3a1e]

        com.sun.tools.visualvm.host.remote/0 [1.0 110325]

        com.sun.tools.visualvm.jmx/0 [1.2 110325]

        com.sun.tools.visualvm.sa/0 [1.0 110325]

        com.sun.tools.visualvm.jvm/0 [1.1 110325]

        com.sun.tools.visualvm.modules.startup [1.0 110325]

        org.netbeans.core.ui/1 [1.22.1 110131-9c8b3bfb3a1e]

        com.sun.tools.visualvm.host.views/0 [1.0 110325]

        com.sun.tools.visualvm.modules.appui [1.0 110325]

        org.netbeans.modules.masterfs/2 [2.25.2 110201-9c8b3bfb3a1e]

        com.sun.tools.visualvm.jvmstat/0 [1.0 110325]

       

      Any idea why I see this weird behaviour?

       

      Walter

        • 1. Re: VisualVM not starting correctly
          977816

          More information

           

          When the application starts correctly the following diagnostic info is given

           

          Diagnostic information

          Input arguments:

            -Djdk.home=/usr/java/jdk1.6.0_24

            -Dnetbeans.dirs=/usr/java/jdk1.6.0_24/bin/../lib/visualvm//visualvm:/usr/java/jdk1.6.0_24/bin/../lib/visualvm//profiler:

            -Dnetbeans.home=/usr/java/jdk1.6.0_24/lib/visualvm/platform

            -Xms24m

            -Xmx256m

            -Dsun.jvmstat.perdata.syncWaitMs=10000

            -Dsun.java2d.noddraw=true

            -Dsun.java2d.d3d=false

            -XX:+HeapDumpOnOutOfMemoryError

            -XX:HeapDumpPath=/root/.visualvm/6u23/var/log/heapdump.hprof

          Compiler: HotSpot 64-Bit Server Compiler

          Heap memory usage: initial 24.0MB maximum 247.5MB

          Non heap memory usage: initial 23.2MB maximum 130.0MB

          Garbage collector: Copy (Collections=9 Total time spent=0s)

          Garbage collector: MarkSweepCompact (Collections=1 Total time spent=0s)

          Classes: loaded=4051 total loaded=4051 unloaded 0

          INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory 4,141,666,304

          INFO [null]: Total physical memory 4,141,666,304

           

          and this is NOT the case when the application hangs at startup.

           

          I tried other JDK version, and same there. Works once, .visualvm is created inside the $HOME location. Close the tool and restart, then it hangs at startup.

           

          Walter