https://issues.apache.org/bugzilla/show_bug.cgi?id=50175

--- Comment #7 from Rainer Jung <rainer.j...@kippdata.de> ---
I agree it would be nice if we could disable leak detection in case the JVM
shuts down. This is a frequent case and in that case the leaks don't matter.

The logs in this case only raise awareness for the sitution when one would
switch from recycling the JVM to hot redeployment, embedded mode or similar.
OTOH the output often lowers awareness for real problems logged during
shutdown. Since many of the leak problems are non-trivial to fix, many users
get used to the bunch of messages logged during shutdown and do no longer look
at any (other) shutdown messages.

I'm undecided whether the default during JVM shutdown should be doing leak
detection or not doing leak detection.

I had a look at how to detect the shutdown but found it hard to do without
changing the lifecycle model. But maybe there's a way to detect JVM shutdown
outside of our lifecycle model (using a global singleton or similar).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to