Skip to content

Explore the option of using GraalVM's exit/signal handlers instead of Quarkus' custom ones #47799

@zakkak

Description

@zakkak

Description

Quarkus currently sets up its own signal handlers, while GraalVM provides a flag (--install-exit-handlers to set up exit handling through java.lang.Terminator.

In GraalVM for JDK 25 --install-exit-handlers is planned to be enabled by default so I believe it's a good time to explore that option in Quarkus and see if it covers our needs (hopefully without introducing any significant overheads).

Implementation ideas

Set --install-exit-handlers in GraalVM for JDK <25 while removing the custom signal handlers and compare startup time and binary size impact on some benchmarks.

If the differences are acceptable, drop custom exit handlers (assuming they are not offering more info than the GraalVM ones) and use java.lang.Terminator.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions