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).
- csr of
-
JDK-8224600 Provide VM.events command
-
- Resolved
-