Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use DB_CLOSE_ON_EXIT=FALSE for H2 DevServices
To avoid metaspace leaks when H2 registers one shutdown hook each time we start it: the shutdown hook indirectly references a QuarkusClassLoader of its corresponding application startup, which references loads of Quarkus and application classes and prevents them from being garbage collected, which ultimately leads to OutOfMemoryError: Metaspace. This impacts devmode in particular.
- Loading branch information