Reputation: 11
java.lang.ApplicationShutdownHooks object might be causing a memory leak.
While running the spring boot application for a long time, this memory leak is coming and the system got crashed.
Upvotes: 1
Views: 364
Reputation: 574
If you use log4j 2.13+, you can set -Dlog4j2.isWebapp=true
, or -Dlog4j.shutdownHookEnabled=false
if you use older 2.x log4j version.
Log4j uses hooks via DefaultShutdownCallbackRegistry otherwise.
Upvotes: 0