From d907dfe5f85c2d5bb8468ec3c259467a68a7621b Mon Sep 17 00:00:00 2001
From: kkolinko
The find leaks diagnostic triggers a full garbage collection. It should be used with extreme caution on production systems.
The find leaks diagnostic attempts to identify web applications that have -caused memory leaks when they were reloaded. Results should always be confirmed +caused memory leaks when they were stopped, reloaded or undeployed. Results +should always be confirmed with a profiler. The diagnostic uses additional functionality provided by the StandardHost implementation. It will not work if a custom host is used that does not extend StandardHost.
-Explicitly triggering a full garbage collection from Java Code is documented +
This diagnostic will list context paths for the web applications that were +stopped, reloaded or undeployed, but which classes from the previous runs +are still present in memory, thus being a memory leak. If an application +has been reloaded several times, it may be listed several times.
+ +Explicitly triggering a full garbage collection from Java code is documented
to be unreliable. Furthermore, depending on the JVM used, there are options to
disable explicit GC triggering, like -XX:+DisableExplicitGC.
If you want to make sure, that the diagnostics were successfully running a full GC,
you will need to check using tools like GC logging, JConsole or similar.
The find leaks diagnostic attempts to identify web applications that have -caused memory leaks when they were reloaded. Results should always be confirmed +caused memory leaks when they were stopped, reloaded or undeployed. Results +should always be confirmed with a profiler. The diagnostic uses additional functionality provided by the StandardHost implementation. It will not work if a custom host is used that does not extend StandardHost.
-Explicitly triggering a full garbage collection from Java Code is documented +
Explicitly triggering a full garbage collection from Java code is documented
to be unreliable. Furthermore, depending on the JVM used, there are options to
disable explicit GC triggering, like -XX:+DisableExplicitGC.
If you want to make sure, that the diagnostics were successfully running a full GC,
@@ -919,8 +920,9 @@ you will need to check using tools like GC logging, JConsole or similar.
Each context path for a web application that is believed to have triggered a -memory leak when it was reloaded will be listed on a new line. If an application +
Each context path for a web application that was stopped, reloaded or +undeployed, but which classes from the previous runs are still loaded in memory, +thus causing a memory leak, will be listed on a new line. If an application has been reloaded several times, it may be listed several times.
If the command does not succeed, the response will start with -- 2.11.0