Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: 4.0
-
Fix Version/s: EE-4.0.0.GA
-
Component/s: Sample Apps
-
Labels:None
-
Environment:ICEfaces4 trunk r. 43281
Browsers: all
Server: Tomcat7.0.42
Description
INFO: Undeploying context [/showcase]
Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/showcase] appears to have started a thread named [Timer-6] but has failed to stop it. This is very likely to create a memory leak.
Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/showcase] appears to have started a thread named [Timer-9] but has failed to stop it. This is very likely to create a memory leak.
Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/showcase] appears to have started a thread named [Timer-10] but has failed to stop it. This is very likely to create a memory leak.
Oct 29, 2014 12:42:30 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/showcase] appears to have started a thread named [Timer-11] but has failed to stop it. This is very likely to create a memory leak.
Oct 29, 2014 12:44:15 PM org.apache.catalina.startup.SetAllPropertiesRule begin
-
Hide
- JAVASERVERFACES-3560.war
- 3.13 MB
- Mircea Toma
-
- JAVASERVERFACES-3560/.DS_Store 8 kB
- __MACOSX/.../._.DS_Store 0.1 kB
- JAVASERVERFACES-3560/.../MANIFEST.MF 0.1 kB
- JAVASERVERFACES-3560/WEB-INF/.DS_Store 6 kB
- __MACOSX/.../._.DS_Store 0.1 kB
- JAVASERVERFACES-3560/.../TestBean$1.class 0.8 kB
- JAVASERVERFACES-3560/.../TestBean.class 1.0 kB
- JAVASERVERFACES-3560/WEB-INF/.../.DS_Store 6 kB
- __MACOSX/.../._.DS_Store 0.1 kB
- JAVASERVERFACES-3560/.../javax.faces-2.2.8.jar 2.98 MB
- JAVASERVERFACES-3560/WEB-INF/.../jstl.jar 405 kB
- JAVASERVERFACES-3560/WEB-INF/.../.DS_Store 6 kB
- __MACOSX/.../._.DS_Store 0.1 kB
- JAVASERVERFACES-3560/WEB-INF/.../.DS_Store 6 kB
- __MACOSX/.../._.DS_Store 0.1 kB
- JAVASERVERFACES-3560/WEB-INF/.../.DS_Store 6 kB
- __MACOSX/.../._.DS_Store 0.1 kB
- JAVASERVERFACES-3560/WEB-INF/.../.DS_Store 6 kB
- __MACOSX/.../._.DS_Store 0.1 kB
- JAVASERVERFACES-3560/.../TestBean.java 1 kB
- JAVASERVERFACES-3560/WEB-INF/web.xml 2 kB
- JAVASERVERFACES-3560/test.xhtml 2 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
This issue seems to have been resolved by the fixes for ICE-10408 (rev. #43576).
There's still this SEVERE message shown when running with Mojarra:
Dec 2, 2014 11:23:33 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/showcase] created a ThreadLocal with key of type [com.sun.faces.application.ApplicationAssociate$1] (value [com.sun.faces.application.ApplicationAssociate$1@2ed7c530]) and a value of type [com.sun.faces.application.ApplicationAssociate] (value [com.sun.faces.application.ApplicationAssociate@57d2ea56]) 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.
After debugging it turns out that the ThreadLocal is created by Mojarra in com.sun.faces.application.ApplicationAssociate.
Attaching test app for https://java.net/jira/browse/JAVASERVERFACES-3560 .
Modified ICEpush bridge to shutdown blocking connection on beforeUnload. This aborts the blocking connection and unblocks the corresponding thread on the server.
Tested with ICEfaces 4 trunk r43821.
After using the cloud push demo (simple push, priority push), then undeploying showcase, the following server errors are seen:
INFO: Waiting for 1 instance(s) to be deallocated for Servlet [Faces Servlet]
Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/showcase] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/showcase] appears to have started a thread named [pool-1-thread-2] but has failed to stop it. This is very likely to create a memory leak.
Dec 15, 2014 12:31:08 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
SEVERE: The web application [/showcase] created a ThreadLocal with key of type [com.sun.faces.application.ApplicationAssociate$1] (value [com.sun.face
s.application.ApplicationAssociate$1@10d318f2]) and a value of type [com.sun.faces.application.ApplicationAssociate] (value [com.sun.faces.application
.ApplicationAssociate@130ac07f]) 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.
When using a few random demos in ACE showcase then undeploying .war file no server errors were seen.
When using the test application https://java.net/jira/browse/JAVASERVERFACES-3560 no server errors were seen.
Tested with r43281 using Myfaces JSF. Please note that mobile-showcase was also tested on an android device during this deployment.
Server error seen when un-installing showcase application:
Oct 30, 2014 12:58:18 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/showcase] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.
Oct 30, 2014 12:58:18 PM org.apache.catalina.startup.ExpandWar deleteDir
SEVERE: [C:\Servers\apache-tomcat-7.0.42\work\Catalina\localhost\showcase] could not be completely deleted. The presence of the remaining files may cause problems
Oct 30, 2014 12:58:18 PM org.apache.catalina.startup.ExpandWar delete
SEVERE: [C:\Servers\apache-tomcat-7.0.42\work\Catalina\localhost\showcase] could not be completely deleted. The presence of the remaining files may cause problems