0 Replies Latest reply on Apr 6, 2010 2:02 PM by 843798

    VisualVM Runtime Exception when generating a thread dump on a core file


      One of our applications is crashing on our production environment.
      We activated JVM options so that a core file is generated when the VM crashes.

      When we open the core file with visualVM (/usr/java1.6/bin/jvisualvm), we can see the VM options and the System properties.
      But when we try to generate a thread dump, we get an error message saying:
      java.lang.RuntimeException: not attached to a process or core file!

      I don't understand why we have this message when we could load the core file with no problem.

      We have a second problem: when we try to generate a heap dump, we have an error message saying "Cannot take heap dump for core".
      If this functionnality doesn't work, why can we make a right click on a core file and have "Heap dump" ?

      For information, we are running:
      - on the following JVM:
      java version "1.6.0_16"
      Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
      Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)

      - on the following OS:
      SunOS m9000s-09 5.10 Generic_141414-10 sun4u sparc SUNW,SPARC-Enterprise

      Thanks in advance for any help.