From b8b762bacfbb4305618aff5cf66de4a9763dab0a Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 12 Feb 2010 18:03:48 +0000 Subject: [PATCH] Document new findleaks command git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@909542 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/html-manager-howto.xml | 16 +++++++++++++++- webapps/docs/manager-howto.xml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/webapps/docs/html-manager-howto.xml b/webapps/docs/html-manager-howto.xml index 8c5e19400..a5463d925 100644 --- a/webapps/docs/html-manager-howto.xml +++ b/webapps/docs/html-manager-howto.xml @@ -36,7 +36,7 @@ to manage your web applications without having to shut down and restart Tomcat. This document is for the HTML web interface to the web application manager.

-

The interface is divided into five sections: +

The interface is divided into six sections:

@@ -546,6 +547,19 @@ error message. Possible causes for problems include:

+
+ +

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 +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.

+ +
+

This section displays information about Tomcat, the operating system of diff --git a/webapps/docs/manager-howto.xml b/webapps/docs/manager-howto.xml index 5b0c09d74..274aa24b1 100644 --- a/webapps/docs/manager-howto.xml +++ b/webapps/docs/manager-howto.xml @@ -51,6 +51,8 @@ List Available Global JNDI Resources
Stop an Existing Application
Undeploy an Existing Application
+Server Status
+Finding memory leaks
Executing Manager Commands With Ant
@@ -891,6 +893,35 @@ error message. Possible causes for problems include:

+ + + +http://localhost:8080/manager/text/findleaks + + +

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 +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.

+ +

If this command succeeds, you will see a response like this:

+ +/leaking-webapp + + +

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 +has been reloaded several times, it may be listed several times.

+ +

If the command does not succeed, the response will start with +FAIL and include an error message.

+ +
+

From this link , you can view information about the server.

-- 2.11.0