Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343741

SA jstack --mixed should print information about VM locks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • None
    • b26

      The information about current owners of Hotspot Mutex is often very useful for dealock investigations.

      The jcmd usually doesn't work because VM can't reach or exit safepoints. So it doesn't respond to jcmd.

      The SA 'jstack --mixed' provides information about stacktraces on Java and non-Java Threads. So having information about locks along with stack traces might significantly help to identify issues.

      The gdb allows to provide stacktraces, but the debug symbols are required to get info about locks. These symbols are often absent during execution.
      Also the debugger solution is OS specifc.

            lmesnik Leonid Mesnik
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: