Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-13962

Errors during shutdown of AM

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.5.0, 7.0.0
    • None
    • SDK
    • Rank:
      1|hzk4fb:
    • 2019.1 - Chariot
    • 0
    • Future
    • None

    Description

      Bug description

      During shutdown of AM, a number of threads are reported as not being stopped.

      How to reproduce the issue

      Issue the standard <path-to-tomcat>/bin/shutdown.sh command to Tomcat.
      Examine the contents of the <path-to-tomcat>/logs/catalina.out log file.

      Expected behaviour

      No errors are reported during shutdown.

      Current behaviour

      The following is reported:

      12-Nov-2018 16:10:26.932 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Client Selector(1) SelectorRunner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
       sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
       sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:198)
       sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:117)
       sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
       sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
       org.glassfish.grizzly.nio.DefaultSelectorHandler.select(DefaultSelectorHandler.java:115)
       org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:339)
       org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:279)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
       java.lang.Thread.run(Thread.java:745)
      12-Nov-2018 16:10:26.932 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Client Selector(2) SelectorRunner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
       sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
       sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:198)
       sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:117)
       sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
       sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
       org.glassfish.grizzly.nio.DefaultSelectorHandler.select(DefaultSelectorHandler.java:115)
       org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:339)
       org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:279)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
       java.lang.Thread.run(Thread.java:745)
      12-Nov-2018 16:10:26.933 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Client Selector(3) SelectorRunner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
       sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
       sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:198)
       sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:117)
       sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
       sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
       org.glassfish.grizzly.nio.DefaultSelectorHandler.select(DefaultSelectorHandler.java:115)
       org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:339)
       org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:279)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
       java.lang.Thread.run(Thread.java:745)
      12-Nov-2018 16:10:26.933 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Client Selector(4) SelectorRunner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
       sun.nio.ch.KQueueArrayWrapper.kevent0(Native Method)
       sun.nio.ch.KQueueArrayWrapper.poll(KQueueArrayWrapper.java:198)
       sun.nio.ch.KQueueSelectorImpl.doSelect(KQueueSelectorImpl.java:117)
       sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:86)
       sun.nio.ch.SelectorImpl.select(SelectorImpl.java:97)
       org.glassfish.grizzly.nio.DefaultSelectorHandler.select(DefaultSelectorHandler.java:115)
       org.glassfish.grizzly.nio.SelectorRunner.doSelect(SelectorRunner.java:339)
       org.glassfish.grizzly.nio.SelectorRunner.run(SelectorRunner.java:279)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
       org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
       java.lang.Thread.run(Thread.java:745)
      12-Nov-2018 16:10:26.934 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [RxSchedulerPurge-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)
      12-Nov-2018 16:10:26.934 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [RxCachedWorkerPoolEvictor-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)
      12-Nov-2018 16:10:26.934 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Client Worker(0)] 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.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
       java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362)
       java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
       java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       java.lang.Thread.run(Thread.java:745)
      12-Nov-2018 16:10:26.935 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Default Scheduler] 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)
      12-Nov-2018 16:10:26.936 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Client Worker(2)] 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.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
       java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362)
       java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
       java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       java.lang.Thread.run(Thread.java:745)
      12-Nov-2018 16:10:26.936 WARNING [localhost-startStop-2] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [openam] appears to have started a thread named [OpenDJ LDAP SDK Client Worker(3)] 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.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
       java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362)
       java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
       java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
       java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
       java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
       java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rwapshott Robert Wapshott
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: