-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mark,
On 6/24/13 11:37 AM, Mark Thomas wrote: > On 24/06/2013 08:32, Mark Thomas wrote: >> On 24/06/2013 05:31, David Rees wrote: >>> On Fri, Jun 21, 2013 at 9:28 AM, Christopher Schultz >>> <ch...@christopherschultz.net> wrote: >>>> I just upgraded to 1.7.0_25 on my Mac and I noticed that when >>>> I launch Tomcat, I get a dock icon indicating that it is >>>> running. This does not happen on 1.7.0_21, the previous >>>> version I was running. >>>> >>>> For some reason, 1.7.0_25 triggers something launching the >>>> AWT thread (on my Mac, that's called AWT-AppKit) which causes >>>> the dock icon to be shown. >>> >>> I noticed something similar on Linux - Tomcat stopped working >>> on machines without all the appropriate X-libs in place. I'll >>> have to try adding -Djava.awt.headless=true to the startup >>> parameters... >> >> I had a nasty feeling when I read this that I have just >> confirmed. >> >> The AWT thread is triggered by Tomcat's memory leak prevention >> code. I haven't tracked down exactly what is triggering this yet. >> I should have the answer to that later today. > > Root cause found. I discovered Oracle have actually fixed one of > the memory leaks in Java 7 (!) so the protection is only required > if running on Java 6 or earlier (and very early Java 7 versions). > > The protection was triggering AWT initialisation and as of Java 7 > update 25 that requires a graphical environment and starts a > Thread. > > I have disabled the protection by default for Java 7 and greater > and that has resolved the issues. When running on Java 6 or earlier > the protection will still be enabled by default. > > The fix will be in Tomcat 7.0.42 onwards. For those who don't want to wait for 7.0.42 and would prefer not to run in "headless" more for some reason can set this attribute in the JreMemoryLeakProtectionListener: appContextProtection="false" - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRyHMvAAoJEBzwKT+lPKRY/d8P/3f5O8lrynBh3LSK5021fCba +VGM/QlWRxfw/OpOYc9wKZsLs/Zwtsk2JiebdDmxMh4pZ6gxGK7suhQugUp+0aCT QPsD6RRyQJcJXm2PFs5Q2cxNaeHfrRgUxHQAr2oocsGS4pc7ilbZQwq1Fmj0CNJ1 IKGS9Xo4WTWlU5kv2tWceClrQOG4rMMqqE/RSpu834aCjYjmUKI73xM+sGxcCuax hhtPHW5CUEogPFwnRir/us064uF0w7ySiHdnvQYyVIxCG4WWNca89sDdkC6VcEDZ 9PLWx7A9CdL6HfJaada304gTJ0h3yzx3DPtWdaZWODmlV5tDNbMYCCheRuxjTCCV WKNAJkEFQYTqoOfumCUe03C5xZ009QmPNd3Hkqc9tB0ZuLFRFjTtKi0vtfB9B+pH MXIXQO74w4JU6zkAR1D2A07m3R7Ap125hq4rLF3d/28QniytTgUDtD84+rmxbRnK XBZPUUS5SkrQ03E7cvrSvfQ8vtnxAhBGwufU4ZYMFbELTtNFsJTYAwFDFH9A177j oViTJYt05X4fdh1Ln9SLSJITfb4WvqCwSjSo7Jvk+VEpV17Sox8lVaCpnit0y086 i1CFLSwGP8QGCE58Q/LnXNx9CFDET5gGELmh853F75wbc0xJ1zTKXR0dIm+0zV4i RqJYx8rDBCdAGpGypp9c =+BVq -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org