2011/8/25 <schu...@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://<hostname>: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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org