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

Provide VM.events diagnostic command

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P4
    • Resolution: Approved
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      svc
    • Compatibility Kind:
      behavioral
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      This is a new command to be added to an upcoming JDK release; there are no compatibility problems expected.
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      JDK

      Description

      Summary

      Add a VM.events command to jcmd to display event logs.

      Problem

      Event logs are a valuable problem analysis tool. Right now the only way to see them is via hs-err file in case the VM died, or as part of the VM.info output.

      Solution

      Add a command to jcmd to print out event logs. The proposed name is "VM.events".

      It should have the following features:

      • ability to select a single event log (by default, all should be printed)

      • ability to limit the number of printed events (by default, all events in the selected event log should be printed)

      Specification

      VM.events [log="log name"] [max="number"]

      optional option log=.. would select for a single named event log.
      optional option max=.. would limit the number of events printed.

      Events shall be printed in chronological reverse order (youngest events first).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stuefe Thomas Stuefe
                Reporter:
                stuefe Thomas Stuefe
                Reviewed By:
                Christoph Langer, David Holmes
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: