manu john
manu john

Reputation: 11

ApplicationShutdownHooks Memory leak

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

Answers (1)

Andrey Loskutov
Andrey Loskutov

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

Related Questions