coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

A misbehaving shutdown hook may prevent Oracle Tools from cleaning up orphaned Java processes. #266

Closed brianoliver closed 9 years ago

brianoliver commented 9 years ago

If an application registered shutdown hook "hangs", it will effectively hang the shutdown / termination of a Java Virtual Machine.

Should Oracle Tools, in particular the Java Application Launcher request a Java Virtual Machine to shutdown (using System.exit(...)) due to the parent application terminating / the child application becoming orphaned, poorly written / hanging shutdown hooks by child application may prevent it from terminating.

Instead of Oracle Tools using System.exit(...) to request the termination of a Java Virtual Machine (which causes shutdown hooks to be called), it instead should use Runtime.halt(...).

brianoliver commented 8 years ago

This issue was imported from JIRA ORACLETOOLS-266

brianoliver commented 9 years ago

Reported by @brianoliver

brianoliver commented 9 years ago

Marked as fixed by @brianoliver on Monday, August 3rd 2015, 3:26:58 pm