Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2070

Crowd does not shutdown cleanly when stopped via the tomcat application manager

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Low Low
    • None
    • 2.0.7, 2.7, 2.8.4
    • User Console
    • Apache Tomcat 7.0.40

      Crowd does not shutdown cleanly when stopped via the tomcat application manager. Exception in the log:

      Nov 8, 2010 11:31:30 AM org.apache.coyote.http11.Http11Protocol pause
      INFO: Pausing Coyote HTTP/1.1 on http-8096
      Nov 8, 2010 11:31:31 AM org.apache.catalina.core.StandardService stop
      INFO: Stopping service Catalina
      log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
      Nov 8, 2010 11:31:32 AM org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
      SEVERE: A web application appears to have started a TimerThread named [Timer-4] via the java.util.Timer API but has failed to stop it. To prevent a me
      mory leak, the timer (and hence the associated thread) has been forcibly cancelled.
      Nov 8, 2010 11:31:32 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: A web application appears to have started a thread named [HSQLDB Timer @17afcff] but has failed to stop it. This is very likely to create a me
      mory leak.
      Nov 8, 2010 11:31:32 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@137c834]) and a value of type [
      org.dom4j.DocumentFactory] (value [org.dom4j.DocumentFactory@138fec2]) but failed to remove it when the web application was stopped. To prevent a memo
      ry leak, the ThreadLocal has been forcibly removed.
      log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
      2010-11-08 11:31:33,061 Thread-14 INFO [util.persistence.hibernate.ConfigurableLocalSessionFactoryBean] Closing Hibernate SessionFactory
      2010-11-08 11:31:33,078 Thread-14 WARN [net.sf.ehcache.CacheManager] CacheManager already shutdown
      2010-11-08 11:31:33,081 Thread-14 INFO [com.atlassian.crowd.startup] Stopping Crowd
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
      SEVERE: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prev
      ent a memory leak, the JDBC Driver has been forcibly unregistered.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: A web application appears to have started a thread named [MultiThreadedHttpConnectionManager cleanup] but has failed to stop it. This is very
      likely to create a memory leak.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: A web application appears to have started a thread named [Thread-19] but has failed to stop it. This is very likely to create a memory leak.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.apache.commons.lang.builder.ToStringStyle$1] (value [org.apache.commons.lang.bui
      lder.ToStringStyle$1@527035]) and a value of type [java.util.HashSet] (value [[]]) but failed to remove it when the web application was stopped. To pr
      event a memory leak, the ThreadLocal has been forcibly removed.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@44b0f8]) and a value of type [o
      rg.dom4j.DocumentFactory] (value [org.dom4j.DocumentFactory@1be9c2f]) but failed to remove it when the web application was stopped. To prevent a memor
      y leak, the ThreadLocal has been forcibly removed.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.apache.commons.lang.builder.ToStringStyle$1] (value [org.apache.commons.lang.bui
      lder.ToStringStyle$1@527035]) and a value of type [java.util.HashSet] (value [[]]) but failed to remove it when the web application was stopped. To pr
      event a memory leak, the ThreadLocal has been forcibly removed.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.apache.commons.lang.builder.ToStringStyle$1] (value [org.apache.commons.lang.bui
      lder.ToStringStyle$1@527035]) and a value of type [java.util.HashSet] (value [[]]) but failed to remove it when the web application was stopped. To pr
      event a memory leak, the ThreadLocal has been forcibly removed.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.apache.commons.lang.builder.ToStringStyle$1] (value [org.apache.commons.lang.bui
      lder.ToStringStyle$1@527035]) and a value of type [java.util.HashSet] (value [[]]) but failed to remove it when the web application was stopped. To pr
      event a memory leak, the ThreadLocal has been forcibly removed.
      Nov 8, 2010 11:31:33 AM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap
      SEVERE: A web application created a ThreadLocal with key of type [org.apache.commons.lang.builder.ToStringStyle$1] (value [org.apache.commons.lang.bui
      lder.ToStringStyle$1@527035]) and a value of type [java.util.HashSet] (value [[]]) but failed to remove it when the web application was stopped. To pr
      event a memory leak, the ThreadLocal has been forcibly removed.
      log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
      Nov 8, 2010 11:31:34 AM org.apache.coyote.http11.Http11Protocol destroy
      INFO: Stopping Coyote HTTP/1.1 on http-8096
      

      Similar issue in the forum thread:

            [CWD-2070] Crowd does not shutdown cleanly when stopped via the tomcat application manager

            Closing as "Cannot reproduce" according to ppetrowski comment.

            Mareusz (Inactive) added a comment - Closing as "Cannot reproduce" according to ppetrowski  comment.

            Patryk added a comment -

            Hi ,

            We couldn't reproduce that issue with Crowd 3.3. Could you please verify that you still experience the problem? If you do, please contact support so that we can investigate further.

            Best regards,
            Patryk

            Patryk added a comment - Hi , We couldn't reproduce that issue with Crowd 3.3. Could you please verify that you still experience the problem? If you do, please contact support so that we can investigate further. Best regards, Patryk

            We stumbled on this issue when we had installed a fresh copy of 2.8.4 on a new server and imported data from 2.7.2 into it. If we start off with a fresh DB with no entries then the issue does not appear. Has anyone tried to start a fresh version without importing data to see if that solves their issue as well?

            TorIX Operations added a comment - We stumbled on this issue when we had installed a fresh copy of 2.8.4 on a new server and imported data from 2.7.2 into it. If we start off with a fresh DB with no entries then the issue does not appear. Has anyone tried to start a fresh version without importing data to see if that solves their issue as well?

            Hi.

            Version 2.7.2 fixes this problem?

            Regards

            Cuenta Smartsoft added a comment - Hi. Version 2.7.2 fixes this problem? Regards

            This issue is 3 years old! Come on, would you plan to fix it?

            Alaattin Kahramanlar (Yonca Teknoloji) added a comment - This issue is 3 years old! Come on, would you plan to fix it?

            Hello,

            A quickfix for those in need :

            kill $(ps aux | grep '[/]opt/atlassian/crowd/' | awk '

            {print $2}

            ')

            Change your Path accordantly , leave the [/] as it limits the output of ps aux.

            Antonio

            Antonio Teixeira added a comment - Hello, A quickfix for those in need : kill $(ps aux | grep ' [/] opt/atlassian/crowd/' | awk ' {print $2} ') Change your Path accordantly , leave the [/] as it limits the output of ps aux. Antonio

              Unassigned Unassigned
              zyap Zed Yap [Atlassian]
              Affected customers:
              14 This affects my team
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: