Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Severe tomcat error messages when stop/undeploy viewer(These messages appear in any context, both with Viewer and a custom application)
Severe tomcat error messages when stop/undeploy viewer [message #763237] Fri, 09 December 2011 11:54 Go to next message
donino donino is currently offline donino doninoFriend
Messages: 183
Registered: July 2011
Senior Member
Hi,

When undeploying the 3.7.1 birtViewer application or closing my tomcat server i get tons and tons messages like those below / in file attached. This kind of message occur on any tomcat version from 6 to 7.022, and whatever the reports involved. They occur both with WebBirtViewer and a custom application, even when using a non-static birt engine. They begin to appear as soon as at least one rptdesign has been opened.

This issue has been resolved as "not_eclipse" in last may 2011: bug 339191

It was classified as a tomcat bug, wasn't it a mistake? indeed tomcat 7 is now trying to resolve memory leaks, but the severe messages are still here and all these unclosed local threads are created by Birt Platform.

Point is not only to know if it really creates memory leaks or not: in a recent testing step, with a few users sessions playing with about 20 reports, i got more than 400 of those messages when i restarted tomcat. In this kind of context its pretty hard to convince admin users and hosting providers that all is right.

Do anyone has new informations on this issue, and if we have a chance to see those horrible messages disappear in the future?

thanks !

GRAVE: The web application [/birt] registered the JDBC driver [org.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
9 déc. 2011 11:00:57 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/birt] appears to have started a thread named [Thread-67] but has failed to stop it. This is very likely to create a memory leak.
9 déc. 2011 11:00:57 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@d6eb25]) and a value of type [com.ibm.icu.impl.ResourceBundleWrapper] (value [com.ibm.icu.impl.ResourceBundleWrapper@1e7dc01]) 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. 
9 déc. 2011 11:00:57 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil.CharArrayThreadLocal] (value [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil$CharArrayThreadLocal@1f05d08]) and a value of type [char[]] (value [[C@16bf9d6]) 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. 

[Updated on: Fri, 09 December 2011 12:24]

Report message to a moderator

Re: Severe tomcat error messages when stop/undeploy viewer [message #815158 is a reply to message #763237] Wed, 07 March 2012 09:48 Go to previous messageGo to next message
rekik fadwa is currently offline rekik fadwaFriend
Messages: 5
Registered: February 2012
Junior Member
i have the same problem. can you help me please!
Re: Severe tomcat error messages when stop/undeploy viewer [message #815541 is a reply to message #815158] Wed, 07 March 2012 19:50 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you give some more detail? What version of Tomcat and BIRT are you
using? Are you using the webviewer or re api code?

Jason

On 3/7/2012 4:48 AM, rekik fadwa wrote:
> i have the same problem. can you help me please!
Re: Severe tomcat error messages when stop/undeploy viewer [message #816093 is a reply to message #815541] Thu, 08 March 2012 12:16 Go to previous messageGo to next message
donino donino is currently offline donino doninoFriend
Messages: 183
Registered: July 2011
Senior Member
Hi,

Indeed this issue still exists in 3.7.2 runtime. Here are the steps to reproduce it:

1- Download and install a fresh tomcat binary from Apache site (for this test i used tomcat 7.0.23, and JDK 1.6.0.24), and setup conf/tomcat-users.xml
2- Install the WebViewer birt.war 3.7.2 through http://localhost:8080/manager/html
3- Copy a report in {Birt home}/report, i used for this test the eclipse sample TopSellingProducts.rptdesign
4- In a browser display the report http://localhost:8080/birt/frameset?__report=report/TopSellingProducts.rptdesign.
5- Stop the birt webapp through http://localhost:8080/manager/html
6- open the catalina log, you should already see something like:

GRAVE: The web application [/birt] registered the JDBC driver [org.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/birt] appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/birt] appears to have started a thread named [AWT-Windows] but has failed to stop it. This is very likely to create a memory leak.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3e6755b6]) and a value of type [com.ibm.icu.impl.ResourceBundleWrapper] (value [com.ibm.icu.impl.ResourceBundleWrapper@722c3fbb]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@370c488c]) and a value of type [com.ibm.icu.util.ULocale] (value [fr_FR]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.eclipse.emf.ecore.impl.EClassImpl$1] (value [org.eclipse.emf.ecore.impl.EClassImpl$1@745aec0]) and a value of type [java.util.HashSet] (value [[]]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@37a5e471]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@6c38d341]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil.CharArrayThreadLocal] (value [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil$CharArrayThreadLocal@f7f725]) and a value of type [char[]] (value [[C@17829ea2]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and a value of type [org.eclipse.birt.report.context.BirtContext] (value [org.eclipse.birt.report.context.BirtContext@786bb78a]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3e6755b6]) and a value of type [com.ibm.icu.impl.ResourceBundleWrapper] (value [com.ibm.icu.impl.ResourceBundleWrapper@722c3fbb]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1@67df02c9]) and a value of type [java.util.WeakHashMap] (value [{={2, 3, 4}, ={1, 2}, =null}]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@370c488c]) and a value of type [com.ibm.icu.util.ULocale] (value [fr_FR]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.eclipse.emf.ecore.impl.EClassImpl$1] (value [org.eclipse.emf.ecore.impl.EClassImpl$1@745aec0]) and a value of type [java.util.HashSet] (value [[]]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@37a5e471]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@3078d976]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil.CharArrayThreadLocal] (value [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil$CharArrayThreadLocal@f7f725]) and a value of type [char[]] (value [[C@4e0cead6]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and a value of type [org.eclipse.birt.report.context.BirtContext] (value [org.eclipse.birt.report.context.BirtContext@320dafa2]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2085ce5a]) and a value of type [com.ibm.icu.impl.ResourceBundleWrapper] (value [com.ibm.icu.impl.ResourceBundleWrapper@30ae8764]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and a value of type [org.eclipse.birt.report.context.BirtContext] (value [org.eclipse.birt.report.context.BirtContext@123acf34]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@37a5e471]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@52f96845]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and a value of type [org.eclipse.birt.report.context.BirtContext] (value [org.eclipse.birt.report.context.BirtContext@742cb491]) 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.
8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/birt] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2302d72d]) and a value of type [org.apache.derby.iapi.services.context.ContextManager] (value [org.apache.derby.iapi.services.context.ContextManager@225765b0]) 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.


Please note that the number of these messages may increase dramatically with the number of reports/libraries/executions/sessions involved, but it's very difficult to find a logic.

7- at this stage, in http://localhost:8080/manager/html, if you click on Diagnostics->find leaks:
The following web applications were stopped (reloaded, undeployed), but their
classes from previous runs are still loaded in memory, thus causing a memory
leak (use a profiler to confirm):
/birt


8- in http://localhost:8080/manager/html start again the webapp birt
9- try to run again the sample report: if you didn't change the default jvm option you get a permgen outOfMemory and tomcat must be stopped. Of course if we increase this permgen, we jut have to stop/start the webapp a few times to get the same result.

This last point is especially annoying in a production j2ee context, since we have to stop the application server to update/restart a birt webapp to avoid memory leaks.

Hope this will help to fix this tough issue.

[Updated on: Thu, 08 March 2012 12:26]

Report message to a moderator

Re: Severe tomcat error messages when stop/undeploy viewer [message #816514 is a reply to message #816093] Thu, 08 March 2012 23:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you open a bugzilla entry for this? I assume that you do not get an
error if the app is not shut down?

Jason

On 3/8/2012 7:16 AM, donino donino wrote:
> Hi,
> Indeed this issue still exists in 3.7.2 runtime. Here are the steps to
> reproduce it:
>
> 1- Download and install a fresh tomcat binary from Apache site (for this
> test i used tomcat 7.0.23), and setup conf/tomcat-users.xml
> 2- Install the WebViewer birt.war 3.7.2 through
> http://localhost:8080/manager/html
> 3- Copy a report in {Birt home}/report, i used for this test the eclipse
> sample TopSellingProducts.rptdesign
> 4- In a browser use
> http://localhost:8080/birt/frameset?__report=report/TopSellingProducts.rptdesign
>
> 5- Stop the birt webapp through http://localhost:8080/manager/html
> 6- open the catalina log, you should already see something like:
>
> GRAVE: The web application [/birt] registered the JDBC driver
> [org.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it
> when the web application was stopped. To prevent a memory leak, the JDBC
> Driver has been forcibly unregistered.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> GRAVE: The web application [/birt] appears to have started a thread
> named [Thread-3] but has failed to stop it. This is very likely to
> create a memory leak.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> clearReferencesThreads
> GRAVE: The web application [/birt] appears to have started a thread
> named [AWT-Windows] but has failed to stop it. This is very likely to
> create a memory leak.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3e6755b6])
> and a value of type [com.ibm.icu.impl.ResourceBundleWrapper] (value
> [com.ibm.icu.impl.ResourceBundleWrapper@722c3fbb]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@370c488c])
> and a value of type [com.ibm.icu.util.ULocale] (value [fr_FR]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [org.eclipse.emf.ecore.impl.EClassImpl$1] (value
> [org.eclipse.emf.ecore.impl.EClassImpl$1@745aec0]) and a value of type
> [java.util.HashSet] (value [[]]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value
> [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@37a5e471])
> and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value
> [org.apache.xerces.jaxp.DocumentBuilderImpl@6c38d341]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type
> [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil.CharArrayThreadLocal]
> (value
> [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil$CharArrayThreadLocal@f7f725])
> and a value of type [char[]] (value [[C@17829ea2]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and
> a value of type [org.eclipse.birt.report.context.BirtContext] (value
> [org.eclipse.birt.report.context.BirtContext@786bb78a]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3e6755b6])
> and a value of type [com.ibm.icu.impl.ResourceBundleWrapper] (value
> [com.ibm.icu.impl.ResourceBundleWrapper@722c3fbb]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1] (value
> [org.apache.derby.iapi.sql.dictionary.TableDescriptor$1@67df02c9]) and a
> value of type [java.util.WeakHashMap] (value [{={2, 3, 4}, ={1, 2},
> =null}]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@370c488c])
> and a value of type [com.ibm.icu.util.ULocale] (value [fr_FR]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [org.eclipse.emf.ecore.impl.EClassImpl$1] (value
> [org.eclipse.emf.ecore.impl.EClassImpl$1@745aec0]) and a value of type
> [java.util.HashSet] (value [[]]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value
> [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@37a5e471])
> and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value
> [org.apache.xerces.jaxp.DocumentBuilderImpl@3078d976]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type
> [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil.CharArrayThreadLocal]
> (value
> [org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil$CharArrayThreadLocal@f7f725])
> and a value of type [char[]] (value [[C@4e0cead6]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and
> a value of type [org.eclipse.birt.report.context.BirtContext] (value
> [org.eclipse.birt.report.context.BirtContext@320dafa2]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2085ce5a])
> and a value of type [com.ibm.icu.impl.ResourceBundleWrapper] (value
> [com.ibm.icu.impl.ResourceBundleWrapper@30ae8764]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and
> a value of type [org.eclipse.birt.report.context.BirtContext] (value
> [org.eclipse.birt.report.context.BirtContext@123acf34]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value
> [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@37a5e471])
> and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value
> [org.apache.xerces.jaxp.DocumentBuilderImpl@52f96845]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ca9bd]) and
> a value of type [org.eclipse.birt.report.context.BirtContext] (value
> [org.eclipse.birt.report.context.BirtContext@742cb491]) 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.
> 8 mars 2012 12:41:05 org.apache.catalina.loader.WebappClassLoader
> checkThreadLocalMapForLeaks
> GRAVE: The web application [/birt] created a ThreadLocal with key of
> type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2302d72d])
> and a value of type
> [org.apache.derby.iapi.services.context.ContextManager] (value
> [org.apache.derby.iapi.services.context.ContextManager@225765b0]) 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.
>
>
> Please note that the number of these messages may increase dramatically
> with the number of reports/libraries/executions/sessions involved, but
> it's very difficult to find a logic.
> 7- at this stage, in http://localhost:8080/manager/html, if you click on
> Diagnostics->find leaks:
> The following web applications were stopped (reloaded, undeployed), but
> their
> classes from previous runs are still loaded in memory, thus causing a
> memory
> leak (use a profiler to confirm):
> /birt
>
> 8- in http://localhost:8080/manager/html start again the webapp birt
> 9- try to run again the sample report: if you didn't change the default
> jvm option you get a permgen outOfMemory and tomcat must be stopped. Of
> course if we increase this permgen, we jut have to stop/start the webapp
> a few times to get the same result.
> This last point is especially annoying in a production j2ee context,
> since we have to stop the application server to update/restart a birt
> webapp to avoid memory leaks.
>
> Hope this will help to fix this tough issue.
Re: Severe tomcat error messages when stop/undeploy viewer [message #816860 is a reply to message #763237] Fri, 09 March 2012 10:56 Go to previous messageGo to next message
donino donino is currently offline donino doninoFriend
Messages: 183
Registered: July 2011
Senior Member
I have logged this issue as Bug 373761. Indeed Jason i don't get any error during runtime, they only happen when stop/undeploy a webapp. Currently i don't have any clue to know if all these "ThreadLocal" cause memory leaks or not during runtime. Furthermore, i should be able to check next week if it concerns Jboss & Glassfish too.

[Updated on: Fri, 09 March 2012 11:31]

Report message to a moderator

Re: Severe tomcat error messages when stop/undeploy viewer [message #817229 is a reply to message #816860] Fri, 09 March 2012 20:25 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Thanks for logging the bug.

Jason

On 3/9/2012 5:56 AM, donino donino wrote:
> This issue is logged as
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=373761. Indeed Jason i
> don't get any error during runtime, they only happen when stop/undeploy
> a webapp. Currently i don't have any clue to know if all these "local
> threads" cause memory leaks or not during runtime. Furthermore, i should
> be able to check next week if the issue concerns Jboss & Glassfish too.
Previous Topic:Rounded corners on a table via CSS in BIRT
Next Topic:can you update the derby core plugin version?
Goto Forum:
  


Current Time: Fri Apr 26 07:12:56 GMT 2024

Powered by FUDForum. Page generated in 0.04000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top