tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: svn commit: r1161566 - in /tomcat/tc6.0.x/trunk: STATUS.txt java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java webapps/docs/config/listeners.xml
Date Thu, 25 Aug 2011 14:14:34 GMT
2011/8/25  <schultz@apache.org>:
> Author: schultz
> Date: Thu Aug 25 13:38:25 2011
> New Revision: 1161566
>
> URL: http://svn.apache.org/viewvc?rev=1161566&view=rev
> Log:
> Back-port of fix to bug #51866: JreMemoryLeakPreventionListener should protect against
AWT thread creation
> - Added AWTThreadProtection setting
>
> Modified:
>    tomcat/tc6.0.x/trunk/STATUS.txt
>    tomcat/tc6.0.x/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
>    tomcat/tc6.0.x/trunk/webapps/docs/config/listeners.xml
>

> --- tomcat/tc6.0.x/trunk/webapps/docs/config/listeners.xml (original)
> +++ tomcat/tc6.0.x/trunk/webapps/docs/config/listeners.xml Thu Aug 25 13:38:25 2011
> @@ -209,6 +209,13 @@ service:jmx:rmi://&lt;hostname&gt;:10002
>         should not be set when using this valve.</p>
>       </attribute>
>
> +      <attribute name="AWTThreadProtection" required="false">
> +        <p>Enables protection so that calls to
> +        <code>java.awt.Toolkit.getDefaultToolkit()</code> triggered
by a web
> +        application do not result in a memory leak.
> +        Defaults to <code>false</code> because an AWT thread is launched.</p>
> +      </attribute>
> +
>       <attribute name="rmiServerPortPlatform" required="true">
>         <p>The port to be used by the Platform JMX/RMI server.</p>
>       </attribute>

Documentation part of this commit is wrong. You added attribute to a
wrong listener.
(rmiServerPortPlatform ...)

Best regards,
Konstantin Kolinko

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


Mime
View raw message