Add remark about reliability of System.gc() to
authorrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Feb 2010 11:35:58 +0000 (11:35 +0000)
committerrjung <rjung@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 24 Feb 2010 11:35:58 +0000 (11:35 +0000)
manager diagnostics docs.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@915757 13f79535-47bb-0310-9956-ffa450edef68

webapps/docs/html-manager-howto.xml
webapps/docs/manager-howto.xml

index d76af36..19d9301 100644 (file)
@@ -558,6 +558,12 @@ 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.</p>
 
+<p>Explicitely 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 <code>-XX:+DisableExplicitGC</code>.
+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 simlar.</p>
+
 </section>
 
 <section name="Server Information">
index 274aa24..c1c10dd 100644 (file)
@@ -908,6 +908,12 @@ 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.</p>
 
+<p>Explicitely 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 <code>-XX:+DisableExplicitGC</code>.
+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 simlar.</p>
+
 <p>If this command succeeds, you will see a response like this:</p>
 <source>
 /leaking-webapp