This discussion is archived
1 Reply Latest reply: Sep 6, 2013 4:26 PM by jschellSomeoneStoleMyAlias RSS

Java 6 on Linux - Shutdown hook not started by SIGTERM or SIGINT signal

Daryl Odnert Newbie
Currently Being Moderated

We recently updated our Java runtime environment from an old Oracle Java 6 version (1.6.0_18) to the most recent version, 1.6.0_45. Our application runs in the Java virtual machine without the -Xrs option. We are now seeing that our shutdown hook is not started if the Java runtime process is sent a SIGTERM or SIGINT signal. But the shutdown hook is started if SIGHUP is sent.

 

This behavior seems to contradict the documented behavior for the Oracle Java runtime on Linux, which says that the shutdown hook will be started if any of these three signals is sent to the JVM. Is this a known problem? Does anyone have ideas to check for other changes in our Linux environment that may be causing SIGTERM and SIGINT to be treated differently from SIGHUP in the JVM?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points