Documentation Contents
Java Platform, Standard Edition Troubleshooting Guide
Contents    Previous    Next

Console Handlers

The Java HotSpot VM registers console events as shown in Table 7-1.

Table 7-1 Console Events

Console Event Signal Usage

CTRL_C_EVENT

SIGINT

This event and signal is used to terminate a process. (Optional)

CTRL_CLOSE_EVENT
CTRL_LOGOFF_EVENT
CTRL_SHUTDOWN_EVENT

SIGTERM

This event and signal is used by the shutdown hook mechanism when the VM is terminated abnormally. (Optional)

CTRL_BREAK_EVENT

SIGBREAK

This event and signal is used to dump Java stack traces at the standard error stream. (Optional)


If an application must register its own console handler, then the -Xrs option can be used. With this option, shutdown hooks are not run on SIGTERM (with above mapping of events) and thread dump support is not available on SIGBREAK (with above mapping of the Control+Break event).

Contents    Previous    Next

Oracle and/or its affiliates Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.
Contact Us