Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Tomcat Shutdown & TimerThread leak?(Tomcat Shutdown & TimerThread leak?)
Tomcat Shutdown & TimerThread leak? [message #1759550] Wed, 12 April 2017 21:40 Go to next message
Emily Gouge is currently offline Emily GougeFriend
Messages: 4
Registered: May 2013
Junior Member
Hi,

I am using BIRT (4.4.1) with Tomcat (8.0.27). When I undeploy my app (or shutdown tomcat) I get the following warning.

WARNING: The web application [server] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Unknown Source)
java.util.TimerThread.run(Unknown Source)

I am shutting down the BIRT engine when the context is destroyed as follows:
birtEngine.destroy();
Platform.shutdown();


I think I tracked the problem down to a Timer thread created in the org.eclipse.birt.data.engine.executor.CacheIDFetcher class:
private CacheIDFetcher ()
{
	this.activeCacheIDs = new java.util.concurrent.ConcurrentHashMap<String, Long>( );
	Timer timer = new Timer( true );
	TimerTask task = new CacheIDPurgeTimeTask( );
	timer.schedule( task, 0, idleTime );
}


There seems to be no way to access or cancel this timer thread. Thoughts?

Thanks,
Emily

Re: Tomcat Shutdown & TimerThread leak? [message #1769949 is a reply to message #1759550] Sun, 06 August 2017 23:24 Go to previous messageGo to next message
Roads Roads is currently offline Roads RoadsFriend
Messages: 2
Registered: August 2017
Junior Member
Hi Emily,

I'm facing the same issue. Did you manage to resolve it?

Thanks.
Re: Tomcat Shutdown & TimerThread leak? [message #1770281 is a reply to message #1769949] Wed, 09 August 2017 15:30 Go to previous message
Emily Gouge is currently offline Emily GougeFriend
Messages: 4
Registered: May 2013
Junior Member
No. We just ended up making it a policy to shutdown & restart tomcat.
Previous Topic:Tomcat deployment fails
Next Topic:connection profile
Goto Forum:
  


Current Time: Sat May 26 14:09:06 GMT 2018

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

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

Back to the top