Fix Version/s: 13
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
Add a VM.events command to jcmd to display event logs.
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.
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)
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).