You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bjørn T Johansen <bt...@havleik.no> on 2014/10/27 21:43:33 UTC

Parallel deployment and failed to stop a thread.

I am trying out parallell deployment but there seems to be a memory leak? when undeploying the old version.. I get the following message in the log..:

org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [##000002] appears to have started a thread named [Mojarra-WebResourceMonitor-1-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)
 java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1067)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 java.lang.Thread.run(Thread.java:745)

Is this a problem with Tomcat 8.0.14 or JSF 2.2.8?
What can I do to prevent this?


Regards,

BTJ

-- 
-----------------------------------------------------------------------------------------------
Bjørn T Johansen

btj@havleik.no
-----------------------------------------------------------------------------------------------
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
-----------------------------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Parallel deployment and failed to stop a thread.

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Bjørn T Johansen [mailto:btj@havleik.no] 
> Subject: Parallel deployment and failed to stop a thread.

> The web application [##000002] appears to have started a thread named 
> [Mojarra-WebResourceMonitor-1-thread-1] but has failed to stop it.

> Is this a problem with Tomcat 8.0.14 or JSF 2.2.8?

No, it's a problem with your web application, as the message states.

> What can I do to prevent this?

Fix your webapp to stop any and all threads it creates.  Given that the thread is from Mojarra, you will likely have to consult their documentation to determine how to properly shut down the monitor.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org