Logging JVM exit (in context of JEP 486)

Alan Bateman alan.bateman at oracle.com
Thu Oct 10 09:16:24 UTC 2024



On 10/10/2024 08:57, Michael Bien wrote:
> Hello,
>
> Calls to System.exit() can be currently tracked by setting the 
> "java.lang.Runtime" logger to DEBUG (it even dumps the stack trace 
> which is nice). However, I couldn't find an equivalent for 
> Runtime.getRuntime().halt(). Are there plans to add more logging to 
> debug common JVM exit events?
>
> (if this was already discussed elsewhere - super sorry wasn't able to 
> find anything)

Logging involves executing arbitrary Java so not for halt time. It's 
come up a few times, I think the most recent on core-libs-dev was Aug 
and/or Sept 2023, you'll need to search through the archives to find it.

-Alan


More information about the jdk-dev mailing list