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

jdk.trackAllThreads should be enabled by default

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P2 P2
    • 21
    • None
    • core-svc
    • None

      To support a number of different troubleshooting scenarios, we need a simple way to dump *all* threads, not just a subset of threads. Limiting thread dumps to only threads started with a particular API or currently blocking on I/O is not sufficient. For example, thread dumps are the most reliable and heavily used way to troubleshoot deadlocks and other lock-related issues. Any issue where a "thread dump" (Thread.dump_to_file) does not include all of the threads directly involved in the issue would be profoundly more difficult to investigate.

      This functionality needs to be enabled right OOTB as most users expect to be able to troubleshoot issues the first time they happen. Expecting users to add a command line option (assuming they can even find it) and then wait for the issue to reproduce is not reasonable.

      (Note that the usefulness of thread dump described above is closely tied to JDK-8302184. The above description assumes JDK-8302184 will be resolved.)

            rpressler Ron Pressler
            dbuck David Buck
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: