This is an indication of a ThreadLocal variable being used within the context 
of a webapp classloader which did not get cleared out when that application was 
stopped. This can lead to PermGen memory errors, as the classloader cannot be 
removed. Tomcat does have some logic in it to try and clean this up (which is 
what generated the log message below), but it is a best effort basis. See Frank 
Kieviet's blog[1] discussing classloader memory leaks.

[1] - http://blogs.oracle.com/fkieviet/entry/how_to_fix_the_dreaded

From: James Annesley [mailto:james.annes...@infoshare-is.com]
Sent: Wednesday, February 01, 2012 10:25 AM
To: java-user@axis.apache.org
Subject: Memory leak in Tomcat

Hi,

I have an XML beans based AXIS 2 1.6.0 stub. After using the client's UI for a 
short period of time - say a few minutes - having un-deployed the web app I get 
about 50 or so messages as follows:

01-Feb-2012 16:21:48 org.apache.catalina.loader.WebappClassLoader 
checkThreadLocalMapForLeaks
SEVERE: The web application [/xxxx] created a ThreadLocal with key of type 
[org.apache.xmlbeans.XmlBeans$1] (value 
[org.apache.xmlbeans.XmlBeans$1@561915df ]) and a value of type 
[java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@1a4d1557]) 
but failed to remove it when the web application was stopped. Threads are going 
to be renewed over time to try and avoid a probable memory leak.

Can anyone shed any light on this?

Best

James

Infoshare Ltd
Millennium House
21 Eden Street
Kingston upon Thames
Surrey
KT1 1BL
United Kingdom
Phone:

+44 (0) 20 8541 0111

Support:

+44 (0) 20 8481 4760

Web:

http://www.infoshare-is.com/

E-mail:

i...@infoshare-is.com<mailto:i...@infoshare-is.com>


Infoshare Ltd is registered in England and Wales.
Registered Office as above.
Registered Number 2877612
VAT Number GB 678 1443 10

The content of this e-mail (and any attachment to it) is confidential. Any 
views or opinions do not represent the views or opinions of Infoshare Ltd. If 
you have received this e-mail in error please notify the sender and delete it. 
You may not use, copy or disclose the information in any way.

Infoshare Ltd monitors incoming and outgoing e-mails.

Please consider the environment. Do you really need to print this email?

----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

Reply via email to